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 @@
- + -
diff --git a/public/about/index.html b/public/about/index.html index 35eff70..22c9b25 100644 --- a/public/about/index.html +++ b/public/about/index.html @@ -89,37 +89,12 @@ Hello, I'm Hazel. Nice to meet you! I love IT infrastructure! I believe that
- + -
diff --git a/public/categories/index.html b/public/categories/index.html index 26df527..7592ea4 100644 --- a/public/categories/index.html +++ b/public/categories/index.html @@ -85,37 +85,12 @@
- + -
diff --git a/public/css/ascii-banner.bundle.92c7f8ce126004ee33a69e73022e060fc678eb18f6dfa9276ebea7927e2aaae3.css b/public/css/ascii-banner.bundle.92c7f8ce126004ee33a69e73022e060fc678eb18f6dfa9276ebea7927e2aaae3.css new file mode 100644 index 0000000..ebcafbc --- /dev/null +++ b/public/css/ascii-banner.bundle.92c7f8ce126004ee33a69e73022e060fc678eb18f6dfa9276ebea7927e2aaae3.css @@ -0,0 +1,95 @@ +/* Static ASCII art banner for re-terminal. + Characters scale so the full width of the art fits the page column. + Per-banner size and colours are in css/ascii-banners/NAME.css (generated); + the JS refines the size to the exact pixel. */ + +.ascii-banner { + --ab-lh: 1.2; + --ab-hi: var(--accent, #ff6266); + + container-type: inline-size; + width: 100%; + margin: 0 0 20px; + overflow: hidden; +} + +/* the theme styles
 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 @@
- + -