Replace Openverse images, fix blank space and spacing on mobile
Mirror to Gitea / mirror (push) Skipped

- Swap every photo for Unsplash photos and Pixabay stickers/clipart,
  credited in IMAGE_CREDITS.md and /credits; regenerate effect images
- Reveal animations never hide on-screen content and have a failsafe, so
  sections can no longer stay blank on phones
- Tighter section and footer spacing on mobile; drop the unlabeled status
  dot on mobile and the blog's fake loading bar
- Cover moves from the all-green poster to the board's mixed palette
- New boombox, spray can and headphones stickers
This commit is contained in:
Johan Sandoval committed 2026-10-08 19:08:34 +00:00
1 parent 48dcaaac25
commit 38b5213138
96 files changed
+293 -277

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
# Image credits
| File | Source | Creator | Original | License | Alt text |
|---|---|---|---|---|---|
| `src/assets/photos/handheld-sticker.png` | Pixabay (illustration) | [bricketh](https://pixabay.com/users/bricketh-1005143/) | https://pixabay.com/illustrations/game-video-game-gameboy-handheld-5357587/ | Pixabay Content License | Red retro handheld game console |
| `src/assets/photos/floppy-sticker.png` | Pixabay (photo) | [elmekki](https://pixabay.com/users/elmekki-2184851/) | https://pixabay.com/photos/floppy-disk-computer-1383996/ | Pixabay Content License | Yellow floppy disk |
| `src/assets/photos/boombox-sticker.png` | Pixabay (vector) | [Juhele](https://pixabay.com/users/Juhele-3094317/) | https://pixabay.com/vectors/casette-radio-am-fm-antenna-4397896/ | Pixabay Content License | Silver boombox |
| `src/assets/photos/spraycan-sticker.png` | Pixabay (vector) | [OpenClipart-Vectors](https://pixabay.com/users/OpenClipart-Vectors-30363/) | https://pixabay.com/vectors/aerosol-can-can-spray-brush-160052/ | Pixabay Content License | Green spray paint can |
| `src/assets/photos/headphones-sticker.png` | Pixabay (photo) | [Alexas_Fotos](https://pixabay.com/users/Alexas_Fotos-686414/) | https://pixabay.com/photos/headphones-music-sony-stereo-2919314/ | Pixabay Content License | Over-ear headphones |
| `src/assets/photos/botanical.png` | Pixabay (illustration) | [ArtsyBee](https://pixabay.com/users/ArtsyBee-462611/) | https://pixabay.com/illustrations/roses-collage-vintage-antique-1770165/ | Pixabay Content License | Vintage rose illustrations |
| `src/assets/photos/motorcycle.webp` | Unsplash | Anne Nygård | https://unsplash.com/photos/black-and-red-motorcycle-on-road-during-daytime-CY_iSV-tES8 | Unsplash License | Black and red motorcycle on road during daytime |
| `src/assets/photos/cassette.webp` | Unsplash | Daniel Schludi | https://unsplash.com/photos/white-cassette-tape-close-up-photography-mbGxz7pt0jM | Unsplash License | White cassette tape close-up photography |
| `src/assets/photos/tv.webp` | Unsplash | Diego González | https://unsplash.com/photos/grey-and-orange-crt-tv--I8lDurtfAo | Unsplash License | Grey and orange crt tv |
| `src/assets/photos/guitar-strat.webp` | Unsplash | Mikkel Bech | https://unsplash.com/photos/closeup-photography-of-electric-guitar-OwMIhcZu_X8 | Unsplash License | Closeup photography of electric guitar |
| `src/assets/photos/guitar-hollow.webp` | Unsplash | Adrian Ordonez | https://unsplash.com/photos/white-and-red-electric-guitar-Jd6eJ-zOE1k | Unsplash License | White and red electric guitar |
| `src/assets/photos/synth.webp` | Unsplash | Adi Goldstein | https://unsplash.com/photos/black-and-gray-audio-mixer-u0BVH8IOTUk | Unsplash License | Black and gray audio mixer |
| `src/assets/photos/computers-pile.webp` | Unsplash | Lorenzo Herrera | https://unsplash.com/photos/vintage-gray-game-console-and-joystick-p0j-mE6mGo4 | Unsplash License | Vintage gray game console and joystick |
| `src/assets/photos/computers-room.webp` | Unsplash | Dan Counsell | https://unsplash.com/photos/a-computer-on-a-desk-BTYss0CHM2w | Unsplash License | A computer on a desk |
| `src/assets/photos/server-rack.webp` | Unsplash | Yuriy Vertikov | https://unsplash.com/photos/a-rack-of-servers-with-wires-and-wires-attached-to-them-c-lSQecD9oI | Unsplash License | A rack of servers with wires and wires attached to them |
| `src/assets/photos/pedalboard.webp` | Unsplash | YEH CHE WEI | https://unsplash.com/photos/brown-and-black-audio-mixer-IK9RX8nFSWE | Unsplash License | Brown and black audio mixer |
| `src/assets/photos/daisies.webp` | Unsplash | Stefan Kostić | https://unsplash.com/photos/white-and-yellow-daisy-flowers-W2vd7NzvhSc | Unsplash License | White and yellow daisy flowers |
| `src/assets/photos/grass-top.webp` | Unsplash | Ivan Lopatin | https://unsplash.com/photos/a-close-up-of-a-field-of-green-grass-jChEOq6k2gI | Unsplash License | A close up of a field of green grass |
| `src/assets/photos/hibiscus.webp` | Unsplash | Sujay Paul | https://unsplash.com/photos/a-close-up-of-a-red-flower-with-green-leaves-KG34Yhi6ey8 | Unsplash License | A close up of a red flower with green leaves |
| `src/assets/photos/lily.webp` | Unsplash | Pedro Vit | https://unsplash.com/photos/a-single-yellow-lily-on-a-black-background-lKGNlIqjxY4 | Unsplash License | A single yellow lily on a black background |
| `src/assets/photos/cloud.webp` | Unsplash | engin akyurt | https://unsplash.com/photos/white-clouds-and-blue-sky-during-daytime-A9_IsUtjHm4 | Unsplash License | White clouds and blue sky during daytime |
| `src/assets/photos/subway-platform.webp` | Unsplash | Ronny Rondon | https://unsplash.com/photos/time-lapse-photo-of-a-train-station-koe_YyHaO3E | Unsplash License | Time lapse photo of a train station |
| `src/assets/photos/forest.webp` | Unsplash | Andrew A | https://unsplash.com/photos/a-forest-filled-with-lots-of-trees-covered-in-fog-XNZjueEeLO8 | Unsplash License | A forest filled with lots of trees covered in fog |
| `src/assets/photos/paper-crumpled.webp` | Unsplash | Marjan Blan | https://unsplash.com/photos/white-textile-on-brown-wooden-table-_kUxT8WkoeY | Unsplash License | White textile on brown wooden table |
Effect versions in `src/assets/fx/` are generated from these sources by `tools/fx.py`.
+2 -2
View File
@@ -56,8 +56,8 @@ Chicago: every section and project category rides a CTA 'L' line color (`src/lib
- Pick a theme: `<Base theme="radio">`, or `theme: vector` in a project/post's frontmatter.
- Mixed media: `src/components/deco/` — `Clipping` (real photo with tape / tilt / duotone / riso /
halftone / torn edge), `Starburst`, `Barcode`, `Window`, `Stamp`; plus `ChicagoStar`, `LineBadge`.
- Photos: `src/assets/photos/` — all CC0 / public domain via Openverse, listed in
`src/data/photo-credits.json` and shown at `/credits`. Add new ones there too.
- Photos: `src/assets/photos/` — Unsplash photos and Pixabay stickers/clipart, credited in `IMAGE_CREDITS.md`
and shown at `/credits`. Run `python3 tools/fx.py` after changing a source photo to rebuild `src/assets/fx/`.
### Motion
Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 KiB

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 421 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 KiB

After

Width:  |  Height:  |  Size: 402 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 KiB

After

Width:  |  Height:  |  Size: 453 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 KiB

After

Width:  |  Height:  |  Size: 463 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 193 KiB

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1014 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 224 KiB

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 340 KiB

After

Width:  |  Height:  |  Size: 352 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 897 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 707 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 525 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 502 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 330 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 675 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 KiB

+1 -1
View File
@@ -48,7 +48,7 @@ const lines = ['--cta-red', '--cta-blue', '--cta-brown', '--cta-green', '--cta-o
<style>
footer {
margin-top: var(--space-9);
margin-top: var(--space-6);
background: var(--ink);
color: var(--paper);
padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
+1 -5
View File
@@ -156,12 +156,8 @@ const isActive = (href: string) => path === href || path.startsWith(href + '/');
padding-right: 6.5rem; /* room for the fixed menu button */
}
.status {
margin-inline-start: auto;
}
}
@media (max-width: 26rem) {
.status-text {
display: none;
}
}
</style>
+144 -192
View File
@@ -1,242 +1,194 @@
[
{
"file": "botanical",
"title": "Japanese cherry blossom branch C.J",
"creator": "rijksmuseum",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/503781/free-illustration-image-sakura-cherry-blossoms-background"
"file": "handheld-sticker.png",
"title": "handheld-sticker.png",
"creator": "bricketh",
"license": "Pixabay Content License",
"source": "Pixabay (illustration)",
"url": "https://pixabay.com/illustrations/game-video-game-gameboy-handheld-5357587/"
},
{
"file": "cassette",
"title": "Free vintage cassette tape image",
"creator": "Unknown",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/5907587/photo-image-tape-public-domain-black"
"file": "floppy-sticker.png",
"title": "floppy-sticker.png",
"creator": "elmekki",
"license": "Pixabay Content License",
"source": "Pixabay (photo)",
"url": "https://pixabay.com/photos/floppy-disk-computer-1383996/"
},
{
"file": "chicago-aerial",
"title": "Chicago Skyline lakefront. Original image",
"creator": "Carol M Highsmith",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/433891/free-photo-image-chicago-city-illinois-lakes"
"file": "boombox-sticker.png",
"title": "boombox-sticker.png",
"creator": "Juhele",
"license": "Pixabay Content License",
"source": "Pixabay (vector)",
"url": "https://pixabay.com/vectors/casette-radio-am-fm-antenna-4397896/"
},
{
"file": "chicago-skyline-red",
"title": "Chicago's skyline appears silhouette sunset",
"creator": "Carol M Highsmith",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/3094116/free-photo-image-night-sunset-background-chicago"
"file": "spraycan-sticker.png",
"title": "spraycan-sticker.png",
"creator": "OpenClipart-Vectors",
"license": "Pixabay Content License",
"source": "Pixabay (vector)",
"url": "https://pixabay.com/vectors/aerosol-can-can-spray-brush-160052/"
},
{
"file": "cloud",
"title": "Cumulus Clouds",
"creator": "Free Nature Stock",
"license": "CC0 1.0 (public domain dedication)",
"source": "stocksnap",
"url": "https://stocksnap.io/photo/cumulus-clouds-RNUVHVEM6Q"
"file": "headphones-sticker.png",
"title": "headphones-sticker.png",
"creator": "Alexas_Fotos",
"license": "Pixabay Content License",
"source": "Pixabay (photo)",
"url": "https://pixabay.com/photos/headphones-music-sony-stereo-2919314/"
},
{
"file": "computers-pile",
"title": "Free pile old computers",
"creator": "Unknown",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/5906713/photo-image-aesthetic-public-domain-computer"
"file": "botanical.png",
"title": "botanical.png",
"creator": "ArtsyBee",
"license": "Pixabay Content License",
"source": "Pixabay (illustration)",
"url": "https://pixabay.com/illustrations/roses-collage-vintage-antique-1770165/"
},
{
"file": "computers-room",
"title": "Free bunch old computers image",
"creator": "Unknown",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/5905997/photo-image-public-domain-shadow-technology"
"file": "motorcycle.webp",
"title": "motorcycle.webp",
"creator": "Anne Nyg\u00e5rd",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/black-and-red-motorcycle-on-road-during-daytime-CY_iSV-tES8"
},
{
"file": "cta-sign",
"title": "Scratched sign for the Chicago El Red Line to 95/Dan Ryan at North/Clybourne on a white pillar with a train moving in the background.",
"creator": "Aaron Jorbin",
"license": "CC0 1.0 (public domain dedication)",
"source": "wordpress",
"url": "https://wordpress.org/photos/photo/97765b5444/"
"file": "cassette.webp",
"title": "cassette.webp",
"creator": "Daniel Schludi",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/white-cassette-tape-close-up-photography-mbGxz7pt0jM"
},
{
"file": "daisies",
"title": "Daisies Flower",
"creator": "Bob Richards",
"license": "CC0 1.0 (public domain dedication)",
"source": "stocksnap",
"url": "https://stocksnap.io/photo/daisies-flower-M5XV7XMR6W"
"file": "tv.webp",
"title": "tv.webp",
"creator": "Diego Gonz\u00e1lez",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/grey-and-orange-crt-tv--I8lDurtfAo"
},
{
"file": "floppies-sticker",
"title": "Old computer disk",
"creator": "Unknown",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/6040633/old-computer-disk-free-public-domain-cc0-photo"
"file": "guitar-strat.webp",
"title": "guitar-strat.webp",
"creator": "Mikkel Bech",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/closeup-photography-of-electric-guitar-OwMIhcZu_X8"
},
{
"file": "forest",
"title": "Forest Mountain",
"creator": "Matt Bango",
"license": "CC0 1.0 (public domain dedication)",
"source": "stocksnap",
"url": "https://stocksnap.io/photo/forest-mountain-NXXYL23EIL"
"file": "guitar-hollow.webp",
"title": "guitar-hollow.webp",
"creator": "Adrian Ordonez",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/white-and-red-electric-guitar-Jd6eJ-zOE1k"
},
{
"file": "gba-sticker",
"title": "Nintendo-Game-Boy-Advance-Purple-FL",
"creator": "Evan-Amos",
"license": "CC0 1.0 (public domain dedication)",
"source": "wikimedia",
"url": "https://commons.wikimedia.org/w/index.php?curid=122403889"
"file": "synth.webp",
"title": "synth.webp",
"creator": "Adi Goldstein",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/black-and-gray-audio-mixer-u0BVH8IOTUk"
},
{
"file": "grass-top",
"title": "Grass Daisies",
"creator": "Eric Lagergren",
"license": "CC0 1.0 (public domain dedication)",
"source": "stocksnap",
"url": "https://stocksnap.io/photo/grass-daisies-6ADE4054B3"
"file": "computers-pile.webp",
"title": "computers-pile.webp",
"creator": "Lorenzo Herrera",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/vintage-gray-game-console-and-joystick-p0j-mE6mGo4"
},
{
"file": "guitar-hollow",
"title": "Electric Guitar",
"creator": "Thomas Kelley",
"license": "CC0 1.0 (public domain dedication)",
"source": "stocksnap",
"url": "https://stocksnap.io/photo/electric-guitar-SQ2DL1GFQF"
"file": "computers-room.webp",
"title": "computers-room.webp",
"creator": "Dan Counsell",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/a-computer-on-a-desk-BTYss0CHM2w"
},
{
"file": "guitar-strat",
"title": "Electric Guitar",
"creator": "Markus Spiske",
"license": "CC0 1.0 (public domain dedication)",
"source": "stocksnap",
"url": "https://stocksnap.io/photo/electric-guitar-UIT62UUU5X"
"file": "server-rack.webp",
"title": "server-rack.webp",
"creator": "Yuriy Vertikov",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/a-rack-of-servers-with-wires-and-wires-attached-to-them-c-lSQecD9oI"
},
{
"file": "hibiscus",
"title": "Hibiscus flower",
"creator": "U.S. National Archives",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/8799471/photo-image-flower-plant-vintage"
"file": "pedalboard.webp",
"title": "pedalboard.webp",
"creator": "YEH CHE WEI",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/brown-and-black-audio-mixer-IK9RX8nFSWE"
},
{
"file": "lily",
"title": "Isolated Flower Black Background",
"creator": "Unknown",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/5967321/isolated-flower-black-background"
"file": "daisies.webp",
"title": "daisies.webp",
"creator": "Stefan Kosti\u0107",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/white-and-yellow-daisy-flowers-W2vd7NzvhSc"
},
{
"file": "marina-city",
"title": "Chicago-river-st-patricks-day-pd-pictures",
"creator": "Dave Zab",
"license": "CC0 1.0 (public domain dedication)",
"source": "wikimedia",
"url": "https://commons.wikimedia.org/w/index.php?curid=79847237"
"file": "grass-top.webp",
"title": "grass-top.webp",
"creator": "Ivan Lopatin",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/a-close-up-of-a-field-of-green-grass-jChEOq6k2gI"
},
{
"file": "marina-city-river",
"title": "Chicago River downtown Chicago",
"creator": "Carol M Highsmith",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/433928/free-photo-image-chicago-architecture-building"
"file": "hibiscus.webp",
"title": "hibiscus.webp",
"creator": "Sujay Paul",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/a-close-up-of-a-red-flower-with-green-leaves-KG34Yhi6ey8"
},
{
"file": "motorcycle",
"title": "Motorcycle Honda",
"creator": "Andrew James Kovalsky",
"license": "CC0 1.0 (public domain dedication)",
"source": "stocksnap",
"url": "https://stocksnap.io/photo/motorcycle-honda-DWKVL4HHDU"
"file": "lily.webp",
"title": "lily.webp",
"creator": "Pedro Vit",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/a-single-yellow-lily-on-a-black-background-lKGNlIqjxY4"
},
{
"file": "paper-crumpled",
"title": "Free crumpled paper texture background",
"creator": "Unknown",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/5904241/photo-image-background-texture-public-domain"
"file": "cloud.webp",
"title": "cloud.webp",
"creator": "engin akyurt",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/white-clouds-and-blue-sky-during-daytime-A9_IsUtjHm4"
},
{
"file": "paper-kraft",
"title": "Free old paper texture image",
"creator": "Unknown",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/5913072/image-paper-texture-old"
"file": "subway-platform.webp",
"title": "subway-platform.webp",
"creator": "Ronny Rondon",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/time-lapse-photo-of-a-train-station-koe_YyHaO3E"
},
{
"file": "pedalboard",
"title": "Telecaster Thinline type guitar with pedalboard (SecretPreamp,MXR10BandEQ,Supa-Trem,POG2,SP Comp,Tuner,BigSky,SeaMachine,GigaDelay,TimmyOverdrive,Broadcast,VolumPedal) - The Smith Center, Las Vegas (2017-04-29 10.28.27 piqsels.com en)",
"creator": "Unknown authorUnknown author",
"license": "CC0 1.0 (public domain dedication)",
"source": "wikimedia",
"url": "https://commons.wikimedia.org/w/index.php?curid=116006535"
"file": "forest.webp",
"title": "forest.webp",
"creator": "Andrew A",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/a-forest-filled-with-lots-of-trees-covered-in-fog-XNZjueEeLO8"
},
{
"file": "postcard-back",
"title": "Postcard - South East Facade, Exhibition Building, JW Lindt, Melbourne, circa 1905",
"creator": "Unknown",
"license": "Public Domain Mark",
"source": "museumsvictoria",
"url": "https://collections.museumsvictoria.com.au/items/255268"
},
{
"file": "railroad-postcard",
"title": "Chicago- Railroad center world",
"creator": "Unknown",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/8906028/image-texture-arts-vintage"
},
{
"file": "server-rack",
"title": "File:Rear of rack at NERSC data center - closeup.jpg",
"creator": "Derrick Coetzee from Berkeley, CA, USA",
"license": "CC0 1.0 (public domain dedication)",
"source": "wikimedia",
"url": "https://commons.wikimedia.org/w/index.php?curid=17460421"
},
{
"file": "subway-map",
"title": "Plate 80 Plan Chicago, 1909:",
"creator": "artinstitutechicago",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/8937739/image-roads-map-plate"
},
{
"file": "synth",
"title": "Synthesizer Keyboard",
"creator": "Skitter Photo",
"license": "CC0 1.0 (public domain dedication)",
"source": "stocksnap",
"url": "https://stocksnap.io/photo/synthesizer-keyboard-QVZN44GAXB"
},
{
"file": "tv",
"title": "Vintage television",
"creator": "Unknown",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/5904973/vintage-television-free-public-domain-cc0-photo"
},
{
"file": "union-station",
"title": "Chicago, Illinois. waiting room Union",
"creator": "Unknown",
"license": "CC0 1.0 (public domain dedication)",
"source": "rawpixel",
"url": "https://www.rawpixel.com/image/8718166/photo-image-vintage-public-domain-person"
"file": "paper-crumpled.webp",
"title": "paper-crumpled.webp",
"creator": "Marjan Blan",
"license": "Unsplash License",
"source": "Unsplash",
"url": "https://unsplash.com/photos/white-textile-on-brown-wooden-table-_kUxT8WkoeY"
}
]
+3 -7
View File
@@ -5,9 +5,9 @@ import Base from '../../layouts/Base.astro';
import Window from '../../components/deco/Window.astro';
import Clipping from '../../components/deco/Clipping.astro';
import ScrambledText from '../../components/bits/ScrambledText';
import forest from '../../assets/photos/forest.jpg';
import forest from '../../assets/photos/forest.webp';
import tv from '../../assets/fx/tv-vintage.webp';
import floppies from '../../assets/photos/floppies-sticker.png';
import floppies from '../../assets/photos/floppy-sticker.png';
// Tiny version of a real photo, scaled up with crisp pixels = instant pixel art.
const pixelForest = await getImage({ src: forest, width: 128, format: 'png' });
@@ -24,10 +24,6 @@ const fmt = (d: Date) => d.toLocaleDateString('en-US', { month: 'short', day: 'n
<div class="hero">
<Window title="yoyos.sh — Blog" class="wall-win">
<div class="wall crt-overlay" style={`background-image:url(${pixelForest.src})`}>
<div class="loading" aria-hidden="true">
<span class="bar"><i></i></span>
<span>Loading…</span>
</div>
<h1 class="glitch" data-text="Blog">Blog</h1>
<div class="note">
<p class="note-title">Note</p>
@@ -91,7 +87,7 @@ const fmt = (d: Date) => d.toLocaleDateString('en-US', { month: 'short', day: 'n
display: grid;
align-content: end;
gap: var(--space-4);
min-height: clamp(22rem, 95vw, 32rem);
min-height: clamp(17rem, 72vw, 28rem);
padding: var(--space-4);
background-size: cover;
background-position: center 30%;
+1 -1
View File
@@ -5,7 +5,7 @@ import { SITE } from '../lib/site';
import { Image, getImage } from 'astro:assets';
import hibiscus from '../assets/fx/hibiscus-toon.webp';
import botanical from '../assets/fx/botanical-riso.webp';
import back from '../assets/photos/postcard-back.jpg';
import back from '../assets/photos/paper-crumpled.webp';
const year = new Date().getFullYear();
const fillBg = await getImage({ src: hibiscus, width: 900, format: 'webp' });
const backBg = await getImage({ src: back, width: 1200, format: 'webp' });
+4 -4
View File
@@ -7,15 +7,15 @@ import credits from '../data/photo-credits.json';
<section class="wrap section">
<h1>Photo credits</h1>
<p class="muted intro">
The photos and textures on this site are public domain (CC0 or Public Domain Mark), found
through <a href="https://openverse.org">Openverse</a>. No attribution is required, but
credit where it's due.
Photos come from <a href="https://unsplash.com">Unsplash</a> and stickers and illustrations
from <a href="https://pixabay.com">Pixabay</a>, used under their licenses. Many appear on
the site with print and retro effects applied. Credit where it's due:
</p>
<ul class="list">
{
credits.map((c) => (
<li>
<a href={c.url} rel="noopener">{c.title.replace(/^File:/, '').replace(/\.\w+$/, '')}</a>
<a href={c.url} rel="noopener">{c.title.replace(/\.\w+$/, '').replaceAll('-', ' ')}</a>
<span>
{c.creator} · {c.source} · {c.license}
</span>
+48 -28
View File
@@ -19,16 +19,18 @@ import StickerPeel from '../components/bits/StickerPeel';
import { SITE } from '../lib/site';
import { DISCIPLINES, LINES } from '../lib/disciplines';
import motoJsr from '../assets/fx/motorcycle-jsr.webp';
import motoToon from '../assets/fx/motorcycle-toon.webp';
import guitarPop from '../assets/fx/guitar-strat-popart.webp';
import cassettePhoto from '../assets/photos/cassette.jpg';
import cassettePhoto from '../assets/photos/cassette.webp';
import motoPixel from '../assets/fx/motorcycle-pixel.webp';
import cassette from '../assets/fx/cassette-vintage.webp';
import tv from '../assets/fx/tv-vintage.webp';
import pile from '../assets/fx/computers-pile-pixel.webp';
import guitar from '../assets/fx/guitar-strat-riso.webp';
import gba from '../assets/photos/gba-sticker.png';
import floppies from '../assets/photos/floppies-sticker.png';
import gba from '../assets/photos/handheld-sticker.png';
import floppies from '../assets/photos/floppy-sticker.png';
import boombox from '../assets/photos/boombox-sticker.png';
import spraycan from '../assets/photos/spraycan-sticker.png';
const gbaSticker = await getImage({ src: gba, width: 360, format: 'webp' });
const floppySticker = await getImage({ src: floppies, width: 320, format: 'webp' });
@@ -56,16 +58,16 @@ const issue = String(now.getMonth() + 1).padStart(2, '0');
<div class="speedlines" aria-hidden="true"></div>
<div class="wrap cover-in">
<div class="poster">
<PosterBand word="YOYOS" captions={['TOOLS', 'WEB', 'GAMES', '3D', 'MUSIC']} />
<PosterBand word="YOYOS" captions={['TOOLS', 'WEB', 'GAMES', '3D', 'MUSIC']} ink="var(--cta-red)" paper="#fffdf7" />
<div class="panels">
<p class="plabel top">Software engineer ✦ Vol.{issue} {season} {now.getFullYear()}</p>
<figure class="p p1 hover-glitch">
<Image src={motoJsr} alt="Cafe racer motorcycle printed as a two-tone street poster" widths={[400, 700, 960]} sizes="(min-width: 60rem) 40vw, 72vw" loading="eager" />
<Image src={motoToon} alt="Cafe racer motorcycle, cel-shaded" widths={[400, 700, 960]} sizes="(min-width: 60rem) 40vw, 72vw" loading="eager" />
</figure>
<figure class="p p2">
<AsciiCanvas client:visible src={asciiSrc.src} cols={34} fg="#e2e996" bg="#16261a" />
<AsciiCanvas client:visible src={asciiSrc.src} cols={34} fg="#f9e300" bg="#141412" />
<span class="plabel in">ASCII.EXE</span>
</figure>
<figure class="p p3 hover-glitch">
@@ -73,8 +75,8 @@ const issue = String(now.getMonth() + 1).padStart(2, '0');
</figure>
<h1 class="tags">
<Tag text="Johan" size="clamp(2.8rem, 14.5vw, 7.5rem)" color="var(--jsr-paper)" shadow="var(--cta-red)" rotate={-8} />
<Tag text="Sandoval" font="drip" size="clamp(1.9rem, 9.6vw, 4.8rem)" color="var(--cta-yellow)" shadow="var(--jsr-ink)" rotate={-3} />
<Tag text="Johan" size="clamp(2.8rem, 14.5vw, 7.5rem)" color="#fffdf7" shadow="var(--cta-blue)" rotate={-8} />
<Tag text="Sandoval" font="drip" size="clamp(1.9rem, 9.6vw, 4.8rem)" color="var(--cta-yellow)" shadow="var(--cta-red)" rotate={-3} />
</h1>
<p class="bubble say" aria-hidden="true">I build the tools teams run on!</p>
@@ -86,7 +88,7 @@ const issue = String(now.getMonth() + 1).padStart(2, '0');
</div>
<div class="sticker sticker-gba" aria-hidden="true">
<StickerPeel client:visible imageSrc={gbaSticker.src} width={120} rotate={-10} peelDirection={20} shadowIntensity={0.45} lightingIntensity={0.08} />
<StickerPeel client:visible imageSrc={gbaSticker.src} width={84} rotate={-10} peelDirection={20} shadowIntensity={0.45} lightingIntensity={0.08} />
</div>
<span class="sparkle s1" style="--s:1.5rem;--c:#fff;--d:1.8s" aria-hidden="true"></span>
<span class="sparkle s2" style="--s:1.1rem;--c:var(--cta-pink);--d:2.6s" aria-hidden="true"></span>
@@ -163,6 +165,7 @@ const issue = String(now.getMonth() + 1).padStart(2, '0');
<StickerPeel client:visible imageSrc={floppySticker.src} width={130} rotate={12} peelDirection={-30} shadowIntensity={0.4} lightingIntensity={0.06} />
</div>
<p class="bubble pow">Pow!</p>
<Image class="boombox sticker-pop" src={boombox} alt="" widths={[200, 320]} sizes="9rem" />
</div>
<div class="stats" data-reveal data-reveal-stagger>
@@ -199,6 +202,7 @@ const issue = String(now.getMonth() + 1).padStart(2, '0');
<section class="wrap section">
<div class="head" data-reveal>
<h2><span class="hl" style="--c: var(--cta-yellow)">What I work on</span></h2>
<Image class="spraycan sticker-pop" src={spraycan} alt="" widths={[120, 200]} sizes="4.5rem" />
</div>
<div class="what">
<ul class="lines" data-reveal data-reveal-stagger>
@@ -253,12 +257,12 @@ const issue = String(now.getMonth() + 1).padStart(2, '0');
padding-block: var(--space-4) var(--space-7);
color: var(--ink);
background:
radial-gradient(circle, color-mix(in oklab, var(--jsr-ink) 25%, transparent) 1.2px, transparent 1.6px) 0 0 / 9px 9px,
radial-gradient(circle, color-mix(in oklab, var(--cta-red) 22%, transparent) 1.2px, transparent 1.6px) 0 0 / 9px 9px,
var(--paper);
border-bottom: 3px solid var(--ink);
}
.cover > .speedlines {
color: var(--jsr-ink);
color: var(--ink);
}
.cover-in {
position: relative;
@@ -272,8 +276,8 @@ const issue = String(now.getMonth() + 1).padStart(2, '0');
display: grid;
grid-template-columns: auto minmax(0, 1fr);
border: 3px solid var(--ink);
background: var(--jsr-paper);
box-shadow: 7px 7px 0 var(--ink);
background: #fffdf7;
box-shadow: 7px 7px 0 var(--cta-blue);
/* fold creases across the whole poster */
background-image:
linear-gradient(90deg, transparent calc(50% - 1px), rgb(255 255 255 / 0.35) calc(50% - 1px) 50%, rgb(0 0 0 / 0.12) 50% calc(50% + 2px), transparent calc(50% + 2px)),
@@ -304,7 +308,7 @@ const issue = String(now.getMonth() + 1).padStart(2, '0');
font-size: clamp(0.55rem, 2.4vw, 0.85rem);
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--jsr-ink);
color: var(--ink);
}
.plabel.top {
grid-area: top;
@@ -317,8 +321,8 @@ const issue = String(now.getMonth() + 1).padStart(2, '0');
position: relative;
margin: 0;
overflow: hidden;
border: 3px solid var(--jsr-ink);
background: var(--jsr-ink);
border: 3px solid var(--ink);
background: var(--ink);
}
.p :global(img) {
width: 100%;
@@ -345,8 +349,8 @@ const issue = String(now.getMonth() + 1).padStart(2, '0');
left: 4px;
bottom: 3px;
padding: 0 4px;
background: var(--jsr-ink);
color: var(--jsr-paper);
background: var(--cta-yellow);
color: var(--ink);
font-size: 0.55rem;
}
.tags {
@@ -422,10 +426,10 @@ const issue = String(now.getMonth() + 1).padStart(2, '0');
z-index: 4;
}
.sticker-gba {
left: 34%;
top: 46%;
width: 120px;
height: 90px;
right: -0.8rem;
top: 40%;
width: 84px;
height: 110px;
}
.panels > .sparkle {
position: absolute;
@@ -512,18 +516,18 @@ const issue = String(now.getMonth() + 1).padStart(2, '0');
rotate: -1.2deg;
}
.cl-2 {
background: var(--jsr-paper);
background: #fffdf7;
rotate: 0.8deg;
}
.cl-3 {
background: var(--jsr-ink);
color: var(--jsr-paper);
background: var(--cta-blue);
color: #fff;
rotate: -0.6deg;
}
.strip {
border: 2px solid var(--ink);
--a: var(--jsr-ink);
--b: var(--jsr-paper);
--a: var(--ink);
--b: var(--cta-yellow);
}
.cover :global(.burst) {
position: absolute;
@@ -685,6 +689,22 @@ const issue = String(now.getMonth() + 1).padStart(2, '0');
.pow::after {
background: var(--cta-yellow);
}
.collage :global(.boombox) {
position: absolute;
z-index: 3;
left: -0.5rem;
bottom: 3.5rem;
width: 7.5rem;
height: auto;
rotate: -9deg;
}
.spraycan,
.head :global(.spraycan) {
width: 3.6rem;
height: auto;
rotate: 18deg;
margin-left: auto;
}
.stats {
display: grid;
gap: var(--space-4);
+1 -1
View File
@@ -5,7 +5,7 @@ import Base from '../layouts/Base.astro';
import ModelViewer from '../components/ModelViewer.astro';
import FaultyTerminal from '../components/bits/FaultyTerminal';
import { media } from '../lib/media';
import cloud from '../assets/photos/cloud.jpg';
import cloud from '../assets/photos/cloud.webp';
import hibiscus from '../assets/fx/hibiscus-toon.webp';
import lily from '../assets/fx/lily-pixel.webp';
import FxImage from '../components/FxImage.astro';
+13 -2
View File
@@ -3,13 +3,14 @@ import { getCollection } from 'astro:content';
import Base from '../layouts/Base.astro';
import AudioPlayer from '../components/AudioPlayer';
import { media } from '../lib/media';
import { getImage } from 'astro:assets';
import { Image, getImage } from 'astro:assets';
import HalftoneReveal from '../components/bits/HalftoneReveal';
import Clipping from '../components/deco/Clipping.astro';
import pedalboard from '../assets/photos/pedalboard.jpg';
import pedalboard from '../assets/photos/pedalboard.webp';
import hollow from '../assets/fx/guitar-hollow-toon.webp';
import synth from '../assets/fx/synth-vintage.webp';
import cassette from '../assets/fx/cassette-vintage.webp';
import headphones from '../assets/photos/headphones-sticker.png';
const board = await getImage({ src: pedalboard, width: 1280, format: 'webp' });
@@ -51,6 +52,7 @@ const cable = ['var(--red)', 'var(--yellow)', 'var(--cobalt)', 'var(--grass)', '
</section>
<section class="wrap collage" aria-hidden="true">
<Image class="phones sticker-pop" src={headphones} alt="" widths={[160, 260]} sizes="7rem" />
<Clipping src={hollow} ratio="4 / 5" rotate={-5} tape="top" widths={[300, 500]} sizes="34vw" class="c1 hover-glitch" />
<Clipping src={synth} ratio="1 / 1" rotate={4} tape="corners" widths={[300, 500]} sizes="34vw" class="c2 hover-glitch" />
<Clipping src={cassette} ratio="16 / 10" rotate={-2} border={false} widths={[300, 500]} sizes="34vw" class="c3" />
@@ -198,6 +200,15 @@ const cable = ['var(--red)', 'var(--yellow)', 'var(--cobalt)', 'var(--grass)', '
}
}
.collage :global(.phones) {
position: absolute;
z-index: 4;
right: 0;
top: -2.5rem;
width: 6rem;
height: auto;
rotate: 14deg;
}
.collage {
position: relative;
display: grid;
+1 -18
View File
@@ -7,8 +7,7 @@ import LineBadge from '../../components/LineBadge.astro';
import SplitFlapText from '../../components/bits/SplitFlapText';
import { DISCIPLINES, LINES } from '../../lib/disciplines';
import FxImage from '../../components/FxImage.astro';
import sign from '../../assets/fx/cta-sign-vintage.webp';
import map from '../../assets/photos/subway-map.jpg';
import sign from '../../assets/fx/subway-platform-vintage.webp';
const work = (await getCollection('work')).sort(
(a, b) => Number(b.data.featured) - Number(a.data.featured) || +b.data.date - +a.data.date,
@@ -84,9 +83,6 @@ const statusLabel = { live: 'Live', shipped: 'Shipped', 'in-progress': 'Building
<p class="empty" hidden>Nothing on this line yet. Check back soon.</p>
</section>
<div class="map-bg" aria-hidden="true">
<Image src={map} alt="" widths={[800, 1200]} sizes="100vw" />
</div>
</Base>
<style>
@@ -268,19 +264,6 @@ const statusLabel = { live: 'Live', shipped: 'Shipped', 'in-progress': 'Building
font-family: var(--ff-grotesk);
font-weight: 600;
}
.map-bg {
position: fixed;
inset: 0;
z-index: -1;
opacity: 0.12;
pointer-events: none;
mix-blend-mode: multiply;
}
.map-bg :global(img) {
width: 100%;
height: 100%;
object-fit: cover;
}
@media (min-width: 60rem) {
.filters {
flex-wrap: wrap;
+27 -9
View File
@@ -19,6 +19,7 @@ gsap.registerPlugin(ScrollTrigger);
const reduce = window.matchMedia('(prefers-reduced-motion: reduce)');
let lenis: Lenis | null = null;
let ctx: gsap.Context | null = null;
let stopReveal: () => void = () => {};
function startLenis() {
if (lenis || reduce.matches) return;
@@ -29,22 +30,38 @@ function startLenis() {
}
function setup() {
stopReveal();
ctx?.revert();
ctx = gsap.context(() => {
if (reduce.matches) return;
// Reveal on scroll. Content is never hidden up front: only elements that are
// still below the fold get a starting offset, an IntersectionObserver plays them
// in, and a timer releases anything left over so nothing can stay blank.
const pending = new Set<Element>();
const play = (el: Element) => {
if (!pending.delete(el)) return;
const host = el as HTMLElement;
const targets = host.hasAttribute('data-reveal-stagger') ? Array.from(host.children) : [host];
gsap.to(targets, { y: 0, rotate: 0, opacity: 1, duration: 0.7, ease: 'power3.out', stagger: 0.06, clearProps: 'transform,opacity' });
};
const io = new IntersectionObserver(
(entries) => entries.forEach((e) => e.isIntersecting && (play(e.target), io.unobserve(e.target))),
{ rootMargin: '0px 0px -8% 0px' },
);
gsap.utils.toArray<HTMLElement>('[data-reveal]').forEach((el) => {
if (el.getBoundingClientRect().top < innerHeight) return; // already visible: leave it alone
const targets = el.hasAttribute('data-reveal-stagger') ? Array.from(el.children) : [el];
gsap.from(targets, {
y: 36,
autoAlpha: 0,
rotate: el.dataset.reveal === 'tilt' ? -2.5 : 0,
duration: 0.85,
ease: 'power3.out',
stagger: 0.07,
scrollTrigger: { trigger: el, start: 'top 90%', once: true },
});
gsap.set(targets, { y: 32, opacity: 0.001, rotate: el.dataset.reveal === 'tilt' ? -2 : 0 });
pending.add(el);
io.observe(el);
});
const failsafe = setTimeout(() => [...pending].forEach(play), 4000);
stopReveal = () => {
io.disconnect();
clearTimeout(failsafe);
pending.clear();
};
const mm = gsap.matchMedia();
mm.add('(min-width: 52rem)', () => {
@@ -67,6 +84,7 @@ document.addEventListener('astro:page-load', () => {
setup();
});
document.addEventListener('astro:before-swap', () => {
stopReveal();
ctx?.revert();
ctx = null;
});
+6 -1
View File
@@ -214,7 +214,12 @@
align-items: center;
}
.section {
padding-block: var(--space-8);
padding-block: var(--space-6);
}
@media (min-width: 52rem) {
.section {
padding-block: var(--space-8);
}
}
.prose {
max-width: var(--prose-w);
+11 -6
View File
@@ -32,10 +32,15 @@ BAYER4 = (np.array([[0, 8, 2, 10], [12, 4, 14, 6], [3, 11, 1, 9], [15, 7, 13, 5]
def load(name: str) -> Image.Image:
for ext in ('.jpg', '.png'):
for ext in ('.webp', '.jpg', '.png'):
p = SRC / f'{name}{ext}'
if p.exists():
return Image.open(p).convert('RGB')
im = Image.open(p)
if im.mode in ('RGBA', 'LA', 'P'): # transparent art: flatten onto white paper
im = im.convert('RGBA')
bg = Image.new('RGBA', im.size, (255, 255, 255, 255))
return Image.alpha_composite(bg, im).convert('RGB')
return im.convert('RGB')
raise FileNotFoundError(name)
@@ -81,7 +86,7 @@ def vignette(img: Image.Image, strength=0.55) -> Image.Image:
def paper(img: Image.Image, tint=(243, 236, 217), mix=0.12) -> Image.Image:
tex = Image.open(SRC / 'paper-crumpled.jpg').convert('L').resize(img.size)
tex = Image.open(SRC / 'paper-crumpled.webp').convert('L').resize(img.size)
tex = ImageOps.autocontrast(tex).convert('RGB')
out = ImageChops.multiply(img, tex)
return Image.blend(out, Image.new('RGB', img.size, tint), mix)
@@ -229,7 +234,7 @@ def jsr(img, ink=(46, 92, 44), paper=(226, 233, 150), cell=6, outline=True):
def paper_tex(img, amount=0.5):
tex = Image.open(SRC / 'paper-crumpled.jpg').convert('L').resize(img.size)
tex = Image.open(SRC / 'paper-crumpled.webp').convert('L').resize(img.size)
tex = ImageOps.autocontrast(tex)
t = np.asarray(tex, dtype=np.float32) / 255
t = 1 - (1 - t) * amount
@@ -310,13 +315,13 @@ RECIPES = [
('botanical', 'riso', 700, {'ink_a': (240, 90, 40), 'ink_b': (0, 155, 58)}),
('lily', 'pixel', 800, {'width': 110}),
('hibiscus', 'toon', 1000, {}),
('cta-sign', 'vintage', 1400, {}),
('subway-platform', 'vintage', 1000, {}),
('pedalboard', 'riso', 1000, {'ink_a': (226, 126, 166), 'ink_b': (20, 20, 18)}),
('cloud', 'xerox', 700, {}),
# street-poster set (stand-ins until the new stock photos are sourced)
('motorcycle', 'jsr', 1100, {}),
('guitar-strat', 'jsr', 900, {'ink': (30, 60, 140), 'paper': (240, 228, 200)}),
('cta-sign', 'popart', 900, {}),
('subway-platform', 'popart', 900, {}),
('guitar-strat', 'popart', 900, {}),
('synth', 'jsr', 900, {'ink': (150, 30, 40), 'paper': (245, 222, 180)}),
('cassette', 'ascii', 900, {}),