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
+113
-19
@@ -7,23 +7,43 @@ import { media } from '../lib/media';
|
||||
const models = (await getCollection('models')).sort((a, b) => +b.data.date - +a.data.date);
|
||||
---
|
||||
|
||||
<Base title="Models" description="3D models by Johan Sandoval, viewable in the browser." theme="overgrowth">
|
||||
<section class="wrap section">
|
||||
<p class="label label--accent">// 04 — Specimens</p>
|
||||
<h1>Models</h1>
|
||||
<p class="muted intro">Blender work you can spin around. Drag to orbit, scroll to zoom.</p>
|
||||
<Base title="3D Models" description="3D models by Johan Sandoval, viewable in the browser." theme="vector">
|
||||
<section class="hero">
|
||||
<div class="floor" aria-hidden="true"></div>
|
||||
<div class="wrap intro">
|
||||
<p class="sys">Blender · glTF · real-time in the browser</p>
|
||||
<h1 class="glow">3D Models</h1>
|
||||
<p class="sub">Models I've built in Blender. Drag to rotate, scroll to zoom.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="wrap section">
|
||||
<div class="grid">
|
||||
{
|
||||
models.map((m) => (
|
||||
<figure class="stack">
|
||||
<ModelViewer src={media(m.data.file)} poster={m.data.poster && media(m.data.poster)} alt={m.data.title} ratio="1 / 1" />
|
||||
models.map((m, i) => (
|
||||
<figure class="item">
|
||||
<ModelViewer
|
||||
src={media(m.data.file)}
|
||||
poster={m.data.poster && media(m.data.poster)}
|
||||
alt={m.data.title}
|
||||
ratio="1 / 1"
|
||||
/>
|
||||
<figcaption>
|
||||
<h2>{m.data.title}</h2>
|
||||
<p class="label">
|
||||
{m.data.date.toISOString().slice(0, 10)} · {m.data.tools.join(' · ')}
|
||||
</p>
|
||||
{m.data.notes && <p class="muted">{m.data.notes}</p>}
|
||||
<div class="row">
|
||||
<h2>{m.data.title}</h2>
|
||||
<span class="idx">#{String(i + 1).padStart(3, '0')}</span>
|
||||
</div>
|
||||
<dl class="readout">
|
||||
<dt>Date</dt>
|
||||
<dd>{m.data.date.toISOString().slice(0, 10)}</dd>
|
||||
{m.data.tools.length > 0 && (
|
||||
<>
|
||||
<dt>Tools</dt>
|
||||
<dd>{m.data.tools.join(' · ')}</dd>
|
||||
</>
|
||||
)}
|
||||
</dl>
|
||||
{m.data.notes && <p class="notes">{m.data.notes}</p>}
|
||||
</figcaption>
|
||||
</figure>
|
||||
))
|
||||
@@ -33,21 +53,95 @@ const models = (await getCollection('models')).sort((a, b) => +b.data.date - +a.
|
||||
</Base>
|
||||
|
||||
<style>
|
||||
h1 {
|
||||
margin-block: var(--space-3);
|
||||
.hero {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-height: 26rem;
|
||||
display: grid;
|
||||
align-items: end;
|
||||
border-bottom: 1px solid var(--line-strong);
|
||||
perspective: 420px;
|
||||
}
|
||||
.floor {
|
||||
position: absolute;
|
||||
left: -50%;
|
||||
right: -50%;
|
||||
bottom: -40%;
|
||||
height: 120%;
|
||||
background:
|
||||
linear-gradient(var(--cyan) 1px, transparent 1px) 0 0 / 60px 60px,
|
||||
linear-gradient(90deg, var(--cyan) 1px, transparent 1px) 0 0 / 60px 60px;
|
||||
transform: rotateX(68deg);
|
||||
transform-origin: bottom;
|
||||
mask: linear-gradient(to top, #000 10%, transparent 75%);
|
||||
opacity: 0.55;
|
||||
animation: travel 6s linear infinite;
|
||||
}
|
||||
@keyframes travel {
|
||||
to {
|
||||
background-position:
|
||||
0 60px,
|
||||
0 0;
|
||||
}
|
||||
}
|
||||
.intro {
|
||||
margin-bottom: var(--space-7);
|
||||
position: relative;
|
||||
padding-block: var(--space-8) var(--space-7);
|
||||
}
|
||||
.sys {
|
||||
font-family: var(--ff-crt);
|
||||
font-size: 1.3rem;
|
||||
color: var(--signal);
|
||||
}
|
||||
h1 {
|
||||
font-size: clamp(4.5rem, 16vw, 12rem);
|
||||
line-height: 0.85;
|
||||
color: var(--accent);
|
||||
}
|
||||
.sub {
|
||||
max-width: 44ch;
|
||||
color: var(--fg-muted);
|
||||
}
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
|
||||
gap: var(--space-6);
|
||||
gap: var(--space-7);
|
||||
}
|
||||
figure :global(.viewer) {
|
||||
.item {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
.item :global(.viewer) {
|
||||
margin-bottom: 0;
|
||||
border-color: var(--cyan);
|
||||
background:
|
||||
linear-gradient(color-mix(in oklab, var(--cyan) 14%, transparent) 1px, transparent 1px) 0 0 / 24px 24px,
|
||||
linear-gradient(90deg, color-mix(in oklab, var(--cyan) 14%, transparent) 1px, transparent 1px) 0 0 / 24px 24px,
|
||||
#000;
|
||||
}
|
||||
.row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
h2 {
|
||||
font-size: var(--step-2);
|
||||
font-size: var(--step-3);
|
||||
color: var(--fg);
|
||||
}
|
||||
.idx {
|
||||
font-family: var(--ff-crt);
|
||||
font-size: 1.3rem;
|
||||
color: var(--signal);
|
||||
}
|
||||
.readout {
|
||||
margin-block: var(--space-2);
|
||||
}
|
||||
.readout dd {
|
||||
color: var(--accent);
|
||||
}
|
||||
.notes {
|
||||
color: var(--fg-muted);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user