Each page now has its own look drawn from print and retro-tech references: magazine-cover home, subway-map work index, technical-poster project pages, 90s-desktop blog, radio-flyer music page, 80s wireframe 3D page, garden about page and postcard contact form. A shared subway-line color system ties sections and project categories together. Replace themed copy with standard wording (Work, Blog, Music, 3D, About, Contact; Selected work, Experience, Get in touch). Rename /log to /blog and /sound to /music with redirects.
This commit is contained in:
61 files changed
+2770
-1108
No files matched your search
+201
-64
@@ -1,59 +1,86 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
import Stamp from '../components/deco/Stamp.astro';
|
||||
import { SITE } from '../lib/site';
|
||||
const year = new Date().getFullYear();
|
||||
---
|
||||
|
||||
<Base title="Contact" description="Hire Johan Sandoval or get in touch.">
|
||||
<Base title="Contact" description="Hire Johan Sandoval or get in touch." theme="postcard">
|
||||
<section class="wrap section layout">
|
||||
<div class="stack side">
|
||||
<p class="label label--accent">// 06 — Open channel</p>
|
||||
<h1>Contact</h1>
|
||||
<div class="side stack">
|
||||
<h1>Get in touch</h1>
|
||||
<p class="lead">
|
||||
Hiring, freelance, collaborations, or you just want to talk about a game, a model or a riff.
|
||||
I read everything.
|
||||
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.
|
||||
</p>
|
||||
<dl class="readout">
|
||||
<dt>Mail</dt>
|
||||
<dt>Email</dt>
|
||||
<dd><a href={`mailto:${SITE.email}`}>{SITE.email}</a></dd>
|
||||
<dt>Base</dt>
|
||||
<dt>Based in</dt>
|
||||
<dd>{SITE.location} · open to remote</dd>
|
||||
<dt>Status</dt>
|
||||
<dd class="accent">{SITE.availability.text}</dd>
|
||||
<dd>{SITE.availability.text}</dd>
|
||||
<dt>Résumé</dt>
|
||||
<dd><a href={SITE.resume}>PDF ↓</a></dd>
|
||||
<dd><a href={SITE.resume}>Download PDF</a></dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<form class="panel stack" data-tab="Transmit" method="post" action="/api/contact">
|
||||
<div class="status" role="status" aria-live="polite"></div>
|
||||
<form class="card" method="post" action="/api/contact">
|
||||
<div class="message">
|
||||
<p class="hello">Hi Johan,</p>
|
||||
<label class="msg">
|
||||
<span class="visually-hidden">Message</span>
|
||||
<textarea name="message" rows="9" required minlength="10" maxlength="5000" placeholder="Write your message here…"></textarea>
|
||||
</label>
|
||||
<div class="status" role="status" aria-live="polite"></div>
|
||||
</div>
|
||||
|
||||
<label>
|
||||
<span class="label">Name</span>
|
||||
<input name="name" autocomplete="name" required maxlength="120" />
|
||||
</label>
|
||||
<label>
|
||||
<span class="label">Email</span>
|
||||
<input name="email" type="email" autocomplete="email" required maxlength="200" />
|
||||
</label>
|
||||
<label>
|
||||
<span class="label">Reason</span>
|
||||
<select name="reason">
|
||||
<option value="hiring">Hiring / job opportunity</option>
|
||||
<option value="freelance">Freelance project</option>
|
||||
<option value="collab">Collaboration</option>
|
||||
<option value="music">Music</option>
|
||||
<option value="other">Something else</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
<span class="label">Message</span>
|
||||
<textarea name="message" rows="7" required minlength="10" maxlength="5000"></textarea>
|
||||
</label>
|
||||
<label class="hp" aria-hidden="true">
|
||||
Leave this empty <input name="website" tabindex="-1" autocomplete="off" />
|
||||
</label>
|
||||
<div class="address">
|
||||
<div class="top">
|
||||
<div class="postmark" aria-hidden="true">
|
||||
<span>Chicago IL</span>
|
||||
<b>{year}</b>
|
||||
<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>
|
||||
</Stamp>
|
||||
</div>
|
||||
|
||||
<button class="btn btn--primary" type="submit">Send transmission →</button>
|
||||
<label>
|
||||
<span>From</span>
|
||||
<input name="name" autocomplete="name" required maxlength="120" placeholder="Your name" />
|
||||
</label>
|
||||
<label>
|
||||
<span>Reply to</span>
|
||||
<input name="email" type="email" autocomplete="email" required maxlength="200" placeholder="you@company.com" />
|
||||
</label>
|
||||
<label>
|
||||
<span>About</span>
|
||||
<select name="reason">
|
||||
<option value="hiring">A job opportunity</option>
|
||||
<option value="freelance">A freelance project</option>
|
||||
<option value="collab">A collaboration</option>
|
||||
<option value="music">Music</option>
|
||||
<option value="other">Something else</option>
|
||||
</select>
|
||||
</label>
|
||||
<label class="hp" aria-hidden="true">
|
||||
Leave this empty <input name="website" tabindex="-1" autocomplete="off" />
|
||||
</label>
|
||||
|
||||
<button class="btn send" type="submit">Send message →</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</Base>
|
||||
@@ -61,43 +88,154 @@ import { SITE } from '../lib/site';
|
||||
<style>
|
||||
.layout {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
|
||||
grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
|
||||
gap: var(--space-8);
|
||||
align-items: start;
|
||||
}
|
||||
@media (max-width: 60rem) {
|
||||
.layout {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: var(--space-6);
|
||||
}
|
||||
}
|
||||
.side {
|
||||
--stack-gap: var(--space-5);
|
||||
}
|
||||
h1 {
|
||||
font-size: clamp(3.25rem, 8vw, 6rem);
|
||||
line-height: 0.9;
|
||||
}
|
||||
.lead {
|
||||
font-size: var(--step-1);
|
||||
}
|
||||
form {
|
||||
--stack-gap: var(--space-4);
|
||||
margin-top: var(--space-6);
|
||||
.readout a {
|
||||
text-decoration-color: var(--accent);
|
||||
}
|
||||
|
||||
.card {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
|
||||
background: #fbf5e4;
|
||||
color: #142033;
|
||||
border: 2px solid #142033;
|
||||
box-shadow: var(--shadow);
|
||||
rotate: -1deg;
|
||||
--fg: #142033;
|
||||
--fg-muted: #5b6577;
|
||||
--line: #c9bfa6;
|
||||
--line-strong: #142033;
|
||||
}
|
||||
@media (max-width: 40rem) {
|
||||
.card {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
rotate: 0deg;
|
||||
}
|
||||
}
|
||||
.message {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-5);
|
||||
border-right: 2px dashed #c9bfa6;
|
||||
}
|
||||
@media (max-width: 40rem) {
|
||||
.message {
|
||||
border-right: 0;
|
||||
border-bottom: 2px dashed #c9bfa6;
|
||||
}
|
||||
}
|
||||
.hello {
|
||||
font-family: var(--ff-grotesk);
|
||||
font-weight: 700;
|
||||
font-size: var(--step-1);
|
||||
}
|
||||
textarea {
|
||||
width: 100%;
|
||||
min-height: 16rem;
|
||||
border: 0;
|
||||
resize: vertical;
|
||||
background: repeating-linear-gradient(transparent 0 calc(1.9rem - 1px), #c9bfa6 calc(1.9rem - 1px) 1.9rem);
|
||||
line-height: 1.9rem;
|
||||
color: #142033;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
textarea:focus {
|
||||
outline: none;
|
||||
}
|
||||
.address {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-5);
|
||||
}
|
||||
.top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: start;
|
||||
gap: var(--space-3);
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
.postmark {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 6.5rem;
|
||||
height: 6.5rem;
|
||||
border: 3px double #b0302a;
|
||||
border-radius: 50%;
|
||||
color: #b0302a;
|
||||
font-family: var(--ff-mono);
|
||||
font-size: 0.62rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
rotate: -14deg;
|
||||
opacity: 0.85;
|
||||
padding-block: 0.8rem;
|
||||
}
|
||||
.postmark b {
|
||||
font-family: var(--ff-grotesk);
|
||||
font-size: 1.3rem;
|
||||
line-height: 1;
|
||||
}
|
||||
.address :global(.stamp) {
|
||||
width: 6.25rem;
|
||||
}
|
||||
label {
|
||||
display: grid;
|
||||
gap: var(--space-1);
|
||||
gap: 2px;
|
||||
}
|
||||
label > span {
|
||||
font-family: var(--ff-mono);
|
||||
font-size: 0.7rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: #5b6577;
|
||||
}
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
select {
|
||||
width: 100%;
|
||||
padding: 0.7em 0.8em;
|
||||
background: var(--bg-sunken);
|
||||
border: var(--border-w) solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
color: var(--fg);
|
||||
padding: 0.35rem 0;
|
||||
border: 0;
|
||||
border-bottom: 2px solid #142033;
|
||||
background: transparent;
|
||||
color: #142033;
|
||||
}
|
||||
input:focus,
|
||||
select:focus,
|
||||
textarea:focus {
|
||||
border-color: var(--accent);
|
||||
textarea:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: var(--glow);
|
||||
border-color: var(--cobalt);
|
||||
box-shadow: 0 2px 0 var(--cobalt);
|
||||
}
|
||||
textarea {
|
||||
resize: vertical;
|
||||
.send {
|
||||
justify-self: start;
|
||||
margin-top: var(--space-3);
|
||||
--btn-bg: #142033;
|
||||
--btn-fg: #fbf5e4;
|
||||
--btn-line: #142033;
|
||||
}
|
||||
.send:hover {
|
||||
--btn-bg: var(--yellow);
|
||||
--btn-fg: #142033;
|
||||
}
|
||||
.hp {
|
||||
position: absolute;
|
||||
@@ -107,16 +245,15 @@ import { SITE } from '../lib/site';
|
||||
display: none;
|
||||
}
|
||||
.status {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border: 1px solid currentColor;
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--step--1);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border: 2px solid currentColor;
|
||||
font-weight: 600;
|
||||
}
|
||||
.status.ok {
|
||||
color: var(--accent);
|
||||
color: var(--grass);
|
||||
}
|
||||
.status.err {
|
||||
color: var(--signal);
|
||||
color: #b0302a;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -128,7 +265,7 @@ import { SITE } from '../lib/site';
|
||||
const button = form.querySelector<HTMLButtonElement>('button[type=submit]')!;
|
||||
const show = (ok: boolean, msg: string) => {
|
||||
status.className = `status ${ok ? 'ok' : 'err'}`;
|
||||
status.textContent = `${ok ? '■ RECEIVED' : '■ ERROR'} — ${msg}`;
|
||||
status.textContent = msg;
|
||||
};
|
||||
|
||||
// Messages from the no-JS fallback redirect
|
||||
@@ -139,7 +276,7 @@ import { SITE } from '../lib/site';
|
||||
form.addEventListener('submit', async (e) => {
|
||||
e.preventDefault();
|
||||
button.disabled = true;
|
||||
button.textContent = 'Transmitting…';
|
||||
button.textContent = 'Sending…';
|
||||
try {
|
||||
const res = await fetch(form.action, {
|
||||
method: 'POST',
|
||||
@@ -153,7 +290,7 @@ import { SITE } from '../lib/site';
|
||||
show(false, 'Network error. Please email me directly.');
|
||||
} finally {
|
||||
button.disabled = false;
|
||||
button.textContent = 'Send transmission →';
|
||||
button.textContent = 'Send message →';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user