Bake grungy treatments into photos (toon/cel shading with ink outlines, dithered pixel art, photocopy, riso misprint, faded vintage with dust and scratches) via tools/fx.py, and add a live WebGL shader (CRT, VHS, pixel-resolve, toon) used on hero images. Add glitch and RGB-split type, camcorder OSD, manga speed lines, sparkles, speech bubbles, checker strips, TV test-pattern placeholders and a CRT power-off/on page transition. Keep the L-train menu and line colors but drop the other Chicago references (star logo, skyline hero, flag footer, Chicago postcard). Fix menu lag: grain overlay no longer uses a blend mode, the header drops its backdrop blur, menu layers are GPU-promoted, and background effects pause while the menu is open.
This commit is contained in:
41 files changed
+1119
-185
No files matched your search
+20
-7
@@ -3,11 +3,11 @@ import Base from '../layouts/Base.astro';
|
||||
import Stamp from '../components/deco/Stamp.astro';
|
||||
import { SITE } from '../lib/site';
|
||||
import { Image, getImage } from 'astro:assets';
|
||||
import aerial from '../assets/photos/chicago-aerial.jpg';
|
||||
import botanical from '../assets/photos/botanical.jpg';
|
||||
import hibiscus from '../assets/fx/hibiscus-toon.webp';
|
||||
import botanical from '../assets/fx/botanical-riso.webp';
|
||||
import back from '../assets/photos/postcard-back.jpg';
|
||||
const year = new Date().getFullYear();
|
||||
const aerialBg = await getImage({ src: aerial, width: 900, format: 'webp' });
|
||||
const fillBg = await getImage({ src: hibiscus, width: 900, format: 'webp' });
|
||||
const backBg = await getImage({ src: back, width: 1200, format: 'webp' });
|
||||
---
|
||||
|
||||
@@ -15,10 +15,12 @@ const backBg = await getImage({ src: back, width: 1200, format: 'webp' });
|
||||
<section class="wrap section layout">
|
||||
<div class="side stack">
|
||||
<div class="greetings" aria-hidden="true" data-reveal="tilt">
|
||||
<span class="from">Greetings from</span>
|
||||
<span class="city" style={`background-image:url(${aerialBg.src})`}>Chicago</span>
|
||||
<span class="from">Say hello!</span>
|
||||
<span class="city" style={`background-image:url(${fillBg.src})`}>Hi there</span>
|
||||
<span class="sparkle sp1" style="--s:1.4rem;--c:var(--yellow)"></span>
|
||||
<span class="sparkle sp2" style="--s:1rem;--c:var(--red);--d:1.9s"></span>
|
||||
</div>
|
||||
<h1>Get in touch</h1>
|
||||
<h1 class="glitch" data-text="Get in touch">Get in touch</h1>
|
||||
<p class="lead">
|
||||
Hiring, freelance work, collaborations, or you want to talk about a game, a 3D model or a
|
||||
riff. I read everything and usually reply within a couple of days.
|
||||
@@ -48,7 +50,7 @@ const backBg = await getImage({ src: back, width: 1200, format: 'webp' });
|
||||
<div class="address">
|
||||
<div class="top">
|
||||
<div class="postmark" aria-hidden="true">
|
||||
<span>Chicago IL</span>
|
||||
<span>Air mail</span>
|
||||
<b>{year}</b>
|
||||
<span>yoyos.sh</span>
|
||||
</div>
|
||||
@@ -127,6 +129,17 @@ const backBg = await getImage({ src: back, width: 1200, format: 'webp' });
|
||||
rotate: -3deg;
|
||||
z-index: 1;
|
||||
}
|
||||
.greetings .sparkle {
|
||||
position: absolute;
|
||||
}
|
||||
.sp1 {
|
||||
top: 0.6rem;
|
||||
right: 1rem;
|
||||
}
|
||||
.sp2 {
|
||||
bottom: 0.7rem;
|
||||
left: 1.2rem;
|
||||
}
|
||||
.city {
|
||||
font-family: var(--ff-mag);
|
||||
font-size: clamp(2.5rem, 13.5vw, 6.4rem);
|
||||
|
||||
Reference in new issue
Block a user