diff --git a/components/home/Preloader.jsx b/components/home/Preloader.jsx index ab5a871..dd45ced 100644 --- a/components/home/Preloader.jsx +++ b/components/home/Preloader.jsx @@ -330,131 +330,133 @@ export default function Preloader({ onEnter }) { autoDraw() } }} - className="gutter group fixed inset-0 z-[100] touch-none select-none bg-ink text-paper outline-none" + className="group fixed inset-0 z-[100] touch-none select-none bg-ink text-paper outline-none" style={phase === "leaving" ? { WebkitMaskImage: mask, maskImage: mask } : undefined} > - {/* the ghost enso: traces itself while loading, brightens as the visitor's circle comes round */} -
-
- - - {phase === "loading" && ( - - {String(count).padStart(3, "0")} - - )} - -
-
- - {/* the ink */} - - + {/* + * One column, so nothing can overlap at any size: the middle holds the words and the ring, + * the bottom holds the quote and the corner marks. Phones and upright tablets stack the words + * above and below the ring; laptops and phones held sideways put them either side of it. + */} - {/* the words: Draw the circle on the left of the ring, the hint on its right */} - - {ready && ( - +
+ -
- {/* "Draw the circle": above the ring on narrow screens, to its left on wide or short ones */} -

- Draw the circle -

- {/* the hint: below the ring on narrow screens, to its right on wide or short ones */} -
- + + {/* the ghost enso: traces itself while loading, brightens as the visitor's circle comes round */} +
+ + + {phase === "loading" && ( + - {hint} - -
-
- - )} - - - {/* the quote at the bottom: above the bottom row on phones, centred in it on wide screens */} - -
- “Nature is an infinite sphere whose center is everywhere and whose circumference is nowhere.” -
-
Blaise Pascal
-
- - {/* bottom: the mark, and the sound state */} -
-
- - + {String(count).padStart(3, "0")} + + )} + +
+ +
+ {ready && ( + + {hint} + + )} +
+
+
+ + {/* the bottom: quote above the corner marks on narrow screens, centred between them on wide ones */} +
+ +
+ “Nature is an infinite sphere whose center is everywhere and whose circumference is nowhere.” +
+
Blaise Pascal
+
+ +
+
+ {/* the blend sits on the spinning wrapper: a transformed element only blends with what is inside it */} + + + + Existence +
+ + + {soundOn ? "Sound on" : "Sound off"} - Existence
- - - {soundOn ? "Sound on" : "Sound off"} -
+ + {/* the ink, above everything else on the screen */} + {/* the ring on the iris edge; outside the mask so the mask cannot hide it */}