Astro + React islands + MDX with a theme system (terminal, concrete, nostromo, overgrowth), USMT Dash case study, work/log/sound/models/about/ contact pages, RSS, self-hosted contact form over SMTP, /media proxy to Nextcloud, Dockerfile for Coolify, and a GitHub Action that mirrors main to Gitea.
This commit is contained in:
64 files changed
+9066
No files matched your search
@@ -0,0 +1,53 @@
|
||||
---
|
||||
import { getCollection } from 'astro:content';
|
||||
import Base from '../layouts/Base.astro';
|
||||
import ModelViewer from '../components/ModelViewer.astro';
|
||||
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>
|
||||
|
||||
<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" />
|
||||
<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>}
|
||||
</figcaption>
|
||||
</figure>
|
||||
))
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
|
||||
<style>
|
||||
h1 {
|
||||
margin-block: var(--space-3);
|
||||
}
|
||||
.intro {
|
||||
margin-bottom: var(--space-7);
|
||||
}
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
|
||||
gap: var(--space-6);
|
||||
}
|
||||
figure :global(.viewer) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
h2 {
|
||||
font-size: var(--step-2);
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user