Skip to content

Commit fed6962

Browse files
committed
teto improvements
1 parent fb4ddf2 commit fed6962

2 files changed

Lines changed: 66 additions & 4 deletions

File tree

index.html

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,8 +1407,39 @@ <h2 class="text-2xl font-bold font-mono text-zinc-900 dark:text-zinc-100">aerpaw
14071407
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⡇⢸⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
14081408
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⡇⢸⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
14091409
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠀⠘⠛⠛⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀`;
1410-
console.log("%c" + tetoAscii, "color: #FF3366; font-family: monospace; font-size: 8px; line-height: 1.1; font-weight: bold;");
1411-
console.log("%cI ❤️ teto", "color: #FF3366; font-family: monospace; font-size: 12px; font-weight: bold;");
1410+
1411+
const blankStyle = "color: rgba(255, 51, 102, 0.08); font-family: monospace; font-size: 8px; line-height: 1.15;";
1412+
const dotStyle = "color: rgb(255, 51, 102); font-family: monospace; font-size: 8px; line-height: 1.15; font-weight: bold;";
1413+
1414+
tetoAscii.split("\n").forEach((line) => {
1415+
const parts = [];
1416+
const styles = [];
1417+
let currentType = null;
1418+
let currentStr = "";
1419+
1420+
for (const char of line) {
1421+
const isBlank = char === "⠀" || char === " ";
1422+
const type = isBlank ? "blank" : "dots";
1423+
1424+
if (type !== currentType) {
1425+
if (currentStr) {
1426+
parts.push("%c" + currentStr);
1427+
styles.push(currentType === "blank" ? blankStyle : dotStyle);
1428+
}
1429+
currentStr = char;
1430+
currentType = type;
1431+
} else {
1432+
currentStr += char;
1433+
}
1434+
}
1435+
if (currentStr) {
1436+
parts.push("%c" + currentStr);
1437+
styles.push(currentType === "blank" ? blankStyle : dotStyle);
1438+
}
1439+
console.log(parts.join(""), ...styles);
1440+
});
1441+
1442+
console.log("%cChimera Kasane Teto is watching your console! 🥖", "color: #FF3366; font-family: monospace; font-size: 12px; font-weight: bold;");
14121443

14131444

14141445
const style = document.createElement("style");

templates/index.html

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,39 @@ <h2 class="title group flex items-center gap-2 font-bold font-mono tracking-tigh
655655
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⡇⢸⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
656656
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⡇⢸⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
657657
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠀⠘⠛⠛⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀`;
658-
console.log("%c" + tetoAscii, "color: #FF3366; font-family: monospace; font-size: 8px; line-height: 1.1; font-weight: bold;");
659-
console.log("%cI ❤️ teto", "color: #FF3366; font-family: monospace; font-size: 12px; font-weight: bold;");
658+
659+
const blankStyle = "color: rgba(255, 51, 102, 0.08); font-family: monospace; font-size: 8px; line-height: 1.15;";
660+
const dotStyle = "color: rgb(255, 51, 102); font-family: monospace; font-size: 8px; line-height: 1.15; font-weight: bold;";
661+
662+
tetoAscii.split("\n").forEach((line) => {
663+
const parts = [];
664+
const styles = [];
665+
let currentType = null;
666+
let currentStr = "";
667+
668+
for (const char of line) {
669+
const isBlank = char === "⠀" || char === " ";
670+
const type = isBlank ? "blank" : "dots";
671+
672+
if (type !== currentType) {
673+
if (currentStr) {
674+
parts.push("%c" + currentStr);
675+
styles.push(currentType === "blank" ? blankStyle : dotStyle);
676+
}
677+
currentStr = char;
678+
currentType = type;
679+
} else {
680+
currentStr += char;
681+
}
682+
}
683+
if (currentStr) {
684+
parts.push("%c" + currentStr);
685+
styles.push(currentType === "blank" ? blankStyle : dotStyle);
686+
}
687+
console.log(parts.join(""), ...styles);
688+
});
689+
690+
console.log("%cChimera Kasane Teto is watching your console! 🥖", "color: #FF3366; font-family: monospace; font-size: 12px; font-weight: bold;");
660691

661692

662693
const style = document.createElement("style");

0 commit comments

Comments
 (0)