Use real public-domain photos throughout (Chicago skyline, CTA signage, Marina City, Union Station, guitars, synths, cassette, Game Boy and floppy stickers, daisies, clouds, flowers, a vintage postcard and stamp), credited on a new /credits page. Lean into Chicago: CTA 'L' line colors for sections and categories, a Chicago star logo, flag footer, a CTA platform work page with split-flap board and arrival rows, and a Greetings from Chicago postcard on contact. Add GSAP + Lenis scroll motion and React Bits components (split-flap, ticker, circular badge, count-up, sticker peel, scrambled text, halftone reveal, CRT terminal, staggered mobile menu). Rebuild pages mobile-first, drop the katakana, and lazy-load the 3D viewer.
This commit is contained in:
72 files changed
+5729
-506
No files matched your search
+81
-14
@@ -2,12 +2,22 @@
|
||||
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 back from '../assets/photos/postcard-back.jpg';
|
||||
const year = new Date().getFullYear();
|
||||
const aerialBg = await getImage({ src: aerial, width: 900, format: 'webp' });
|
||||
const backBg = await getImage({ src: back, width: 1200, format: 'webp' });
|
||||
---
|
||||
|
||||
<Base title="Contact" description="Hire Johan Sandoval or get in touch." theme="postcard">
|
||||
<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>
|
||||
</div>
|
||||
<h1>Get in touch</h1>
|
||||
<p class="lead">
|
||||
Hiring, freelance work, collaborations, or you want to talk about a game, a 3D model or a
|
||||
@@ -25,7 +35,7 @@ const year = new Date().getFullYear();
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<form class="card" method="post" action="/api/contact">
|
||||
<form class="card" method="post" action="/api/contact" style={`--back:url(${backBg.src})`}>
|
||||
<div class="message">
|
||||
<p class="hello">Hi Johan,</p>
|
||||
<label class="msg">
|
||||
@@ -43,17 +53,10 @@ const year = new Date().getFullYear();
|
||||
<span>yoyos.sh</span>
|
||||
</div>
|
||||
<Stamp color="#fbf5e4" rotate={3} class="stamp">
|
||||
<svg viewBox="0 0 80 96" aria-hidden="true">
|
||||
<rect width="80" height="96" fill="#3f78b8" />
|
||||
<path d="M10 90 C 30 60, 26 40, 52 18" stroke="#3a2a1c" stroke-width="3" fill="none" />
|
||||
<path d="M34 52 C 44 50, 52 54, 62 46" stroke="#3a2a1c" stroke-width="2" fill="none" />
|
||||
<g fill="#f2a0b8" stroke="#fbf5e4" stroke-width="1">
|
||||
<circle cx="52" cy="18" r="7" /><circle cx="30" cy="44" r="6" /><circle cx="62" cy="46" r="6" />
|
||||
<circle cx="22" cy="66" r="5" /><circle cx="44" cy="31" r="5" />
|
||||
</g>
|
||||
<g fill="#ffd31a"><circle cx="52" cy="18" r="2" /><circle cx="30" cy="44" r="2" /><circle cx="62" cy="46" r="2" /></g>
|
||||
<text x="6" y="90" fill="#fbf5e4" font-family="Archivo Variable, sans-serif" font-weight="800" font-size="13">26¢</text>
|
||||
</svg>
|
||||
<div class="stamp-art">
|
||||
<Image src={botanical} alt="" widths={[160, 240]} sizes="7rem" />
|
||||
<span>26¢</span>
|
||||
</div>
|
||||
</Stamp>
|
||||
</div>
|
||||
|
||||
@@ -101,6 +104,44 @@ const year = new Date().getFullYear();
|
||||
.side {
|
||||
--stack-gap: var(--space-5);
|
||||
}
|
||||
.greetings {
|
||||
position: relative;
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
padding: 1rem 0.75rem 1.1rem;
|
||||
background: #fbf5e4;
|
||||
border: 2px solid #142033;
|
||||
box-shadow: var(--shadow);
|
||||
rotate: -2deg;
|
||||
color: #142033;
|
||||
overflow: hidden;
|
||||
}
|
||||
.from {
|
||||
font-family: var(--ff-grotesk);
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-size: clamp(1rem, 4vw, 1.3rem);
|
||||
padding: 0.05rem 0.6rem;
|
||||
background: var(--yellow);
|
||||
border: 2px solid #142033;
|
||||
rotate: -3deg;
|
||||
z-index: 1;
|
||||
}
|
||||
.city {
|
||||
font-family: var(--ff-mag);
|
||||
font-size: clamp(2.5rem, 13.5vw, 6.4rem);
|
||||
line-height: 0.9;
|
||||
letter-spacing: -0.04em;
|
||||
max-width: 100%;
|
||||
text-transform: uppercase;
|
||||
color: transparent;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-stroke: 2px #142033;
|
||||
filter: drop-shadow(3px 3px 0 #e2321f);
|
||||
}
|
||||
h1 {
|
||||
font-size: clamp(3.25rem, 8vw, 6rem);
|
||||
line-height: 0.9;
|
||||
@@ -115,7 +156,10 @@ const year = new Date().getFullYear();
|
||||
.card {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
|
||||
background: #fbf5e4;
|
||||
background:
|
||||
linear-gradient(color-mix(in oklab, #fbf5e4 72%, transparent), color-mix(in oklab, #fbf5e4 72%, transparent)),
|
||||
var(--back) center / cover,
|
||||
#fbf5e4;
|
||||
color: #142033;
|
||||
border: 2px solid #142033;
|
||||
box-shadow: var(--shadow);
|
||||
@@ -199,6 +243,25 @@ const year = new Date().getFullYear();
|
||||
.address :global(.stamp) {
|
||||
width: 6.25rem;
|
||||
}
|
||||
.stamp-art {
|
||||
position: relative;
|
||||
background: #fbf5e4;
|
||||
}
|
||||
.stamp-art :global(img) {
|
||||
width: 100%;
|
||||
aspect-ratio: 4 / 5;
|
||||
object-fit: cover;
|
||||
object-position: center 30%;
|
||||
}
|
||||
.stamp-art span {
|
||||
position: absolute;
|
||||
left: 4px;
|
||||
bottom: 2px;
|
||||
font-family: var(--ff-grotesk);
|
||||
font-weight: 800;
|
||||
font-size: 0.9rem;
|
||||
color: #b0302a;
|
||||
}
|
||||
label {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
@@ -213,6 +276,8 @@ const year = new Date().getFullYear();
|
||||
input,
|
||||
select {
|
||||
width: 100%;
|
||||
min-height: 44px;
|
||||
font-size: 1rem;
|
||||
padding: 0.35rem 0;
|
||||
border: 0;
|
||||
border-bottom: 2px solid #142033;
|
||||
@@ -227,7 +292,9 @@ const year = new Date().getFullYear();
|
||||
box-shadow: 0 2px 0 var(--cobalt);
|
||||
}
|
||||
.send {
|
||||
justify-self: start;
|
||||
justify-self: stretch;
|
||||
justify-content: center;
|
||||
min-height: 48px;
|
||||
margin-top: var(--space-3);
|
||||
--btn-bg: #142033;
|
||||
--btn-fg: #fbf5e4;
|
||||
|
||||
Reference in new issue
Block a user