diff --git a/hugo.toml b/hugo.toml index 07420c9..5a53da7 100644 --- a/hugo.toml +++ b/hugo.toml @@ -122,4 +122,5 @@ pagination.pagerSize = 5 [params.asciiBanner] enable = true - palette = "red" # or "red" \ No newline at end of file + palette = "red" # or "red" + banners = ["hardclear-2"] \ No newline at end of file diff --git a/public/404.html b/public/404.html index b2564d0..905aba5 100644 --- a/public/404.html +++ b/public/404.html @@ -83,37 +83,12 @@
as a code block; undo all of that here */
+.ascii-banner pre.ascii-banner__art {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ background: none;
+ box-shadow: none;
+ overflow: visible;
+ white-space: pre;
+ font-family: "Fira Code", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
+ font-variant-ligatures: none; /* Fira Code would otherwise join some letter pairs */
+ font-feature-settings: "liga" 0, "calt" 0;
+ /* font-size comes from css/ascii-banners/NAME.css (generated) */
+ line-height: 1.2 !important;
+ letter-spacing: 0;
+ color: color-mix(in srgb, var(--ab-hi) 70%, transparent); /* only used if the generated colours are missing */
+ cursor: crosshair;
+ user-select: text;
+}
+
+.ascii-banner pre.ascii-banner__art::selection,
+.ascii-banner pre.ascii-banner__art *::selection {
+ background: var(--ab-hi);
+ color: var(--background, #1d1e28);
+}
+
+@media print {
+ .ascii-banner { display: none; }
+}
+/* generated by tools/build-banner.py; do not edit */
+/* hardclear-2: size so all 140 columns fit. Plain values only (no var()), so each line
+ either works or is skipped by the browser in favour of the line above it.
+ !important wins over any theme rule for ; the JS sets an exact inline size. */
+.ascii-banner pre[data-banner="hardclear-2"] {
+ font-size: 8px !important;
+ font-size: min(calc((100vw - 48px) / 84.7), 16px) !important;
+ font-size: min(calc(100cqi / 84.7), 16px) !important;
+}
+/* hardclear-2: colours picked from the reference image */
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-a { color: #121015 !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-b { color: #1b171f !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-c { color: #2c1a21 !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-d { color: #27222d !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-e { color: #3f222c !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-f { color: #342e3d !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-g { color: #4e2a3a !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-h { color: #663044 !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-i { color: #464148 !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-j { color: #793d58 !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-k { color: #585559 !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-l { color: #9b4d71 !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-m { color: #6a686b !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-n { color: #7b7a7b !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-o { color: #8d8c8d !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-p { color: #9e9e9e !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-q { color: #b0afb0 !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-r { color: #c0bfc0 !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-s { color: #cdcdcd !important; }
+.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-t { color: #d8d8d8 !important; }
+/* hardclear-2: same brightness per character, in the hue of --ab-hi (built for #ff6266) */
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-a { color: color-mix(in srgb, var(--ab-hi) 16%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-b { color: color-mix(in srgb, var(--ab-hi) 20%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-c { color: color-mix(in srgb, var(--ab-hi) 24%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-d { color: color-mix(in srgb, var(--ab-hi) 27%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-e { color: color-mix(in srgb, var(--ab-hi) 31%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-f { color: color-mix(in srgb, var(--ab-hi) 35%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-g { color: color-mix(in srgb, var(--ab-hi) 38%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-h { color: color-mix(in srgb, var(--ab-hi) 45%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-i { color: color-mix(in srgb, var(--ab-hi) 46%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-j { color: color-mix(in srgb, var(--ab-hi) 54%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-k { color: color-mix(in srgb, var(--ab-hi) 58%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-l { color: color-mix(in srgb, var(--ab-hi) 68%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-m { color: color-mix(in srgb, var(--ab-hi) 70%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-n { color: color-mix(in srgb, var(--ab-hi) 81%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-o { color: color-mix(in srgb, var(--ab-hi) 93%, #000) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-p { color: color-mix(in srgb, var(--ab-hi), #fff 25%) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-q { color: color-mix(in srgb, var(--ab-hi), #fff 45%) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-r { color: color-mix(in srgb, var(--ab-hi), #fff 59%) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-s { color: color-mix(in srgb, var(--ab-hi), #fff 69%) !important; }
+.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-t { color: color-mix(in srgb, var(--ab-hi), #fff 76%) !important; }
diff --git a/public/index.html b/public/index.html
index 824bbb3..f151332 100644
--- a/public/index.html
+++ b/public/index.html
@@ -86,37 +86,12 @@
-
+
-
diff --git a/public/posts/identity/index.html b/public/posts/identity/index.html
index 5e4aef1..dd3ac09 100644
--- a/public/posts/identity/index.html
+++ b/public/posts/identity/index.html
@@ -89,37 +89,12 @@ It’s always felt like sketching to me in the same way that people will doodle
-
+
-
diff --git a/public/posts/index.html b/public/posts/index.html
index b696c58..9d74f45 100644
--- a/public/posts/index.html
+++ b/public/posts/index.html
@@ -85,37 +85,12 @@
-
+
-
diff --git a/public/tags/index.html b/public/tags/index.html
index 4c0a74e..7b1b570 100644
--- a/public/tags/index.html
+++ b/public/tags/index.html
@@ -85,37 +85,12 @@
-
+
-