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,234 @@
|
||||
---
|
||||
import { getCollection } from 'astro:content';
|
||||
import Base from '../layouts/Base.astro';
|
||||
import ProjectCard from '../components/ProjectCard.astro';
|
||||
import SectionHead from '../components/SectionHead.astro';
|
||||
import { SITE } from '../lib/site';
|
||||
import { DISCIPLINES } from '../content.config';
|
||||
|
||||
const work = (await getCollection('work')).sort((a, b) => +b.data.date - +a.data.date);
|
||||
const featured = work.find((p) => p.data.featured) ?? work[0];
|
||||
const rest = work.filter((p) => p !== featured).slice(0, 3);
|
||||
const posts = (await getCollection('log', ({ data }) => !data.draft))
|
||||
.sort((a, b) => +b.data.date - +a.data.date)
|
||||
.slice(0, 3);
|
||||
|
||||
const counts = Object.fromEntries(
|
||||
DISCIPLINES.map((d) => [d, work.filter((p) => p.data.disciplines.includes(d)).length]),
|
||||
);
|
||||
const disciplineLabels: Record<string, string> = {
|
||||
software: 'Software & tools',
|
||||
web: 'Web',
|
||||
game: 'Games',
|
||||
hardware: 'Hardware',
|
||||
'3d': '3D modeling',
|
||||
music: 'Music',
|
||||
};
|
||||
|
||||
const fmt = (d: Date) => d.toISOString().slice(0, 10).replaceAll('-', '.');
|
||||
---
|
||||
|
||||
<Base>
|
||||
<section class="hero wrap">
|
||||
<div class="boot label" aria-hidden="true">
|
||||
<span>SYS://YOYOS.SH</span>
|
||||
<span>BOOT OK</span>
|
||||
<span>{SITE.coords}</span>
|
||||
</div>
|
||||
|
||||
<h1 class="name">
|
||||
<span>Johan</span>
|
||||
<span class="outline">Sandoval</span>
|
||||
</h1>
|
||||
|
||||
<div class="intro">
|
||||
<p class="lede">
|
||||
Software engineer who builds the tools other teams run on. <span class="accent"
|
||||
>Dashboards, automation and web apps</span
|
||||
>, plus games, 3D models, hardware and music on the side.
|
||||
</p>
|
||||
|
||||
<dl class="readout panel" data-tab="Operator">
|
||||
<dt>Role</dt>
|
||||
<dd>{SITE.role}</dd>
|
||||
<dt>Base</dt>
|
||||
<dd>{SITE.location}</dd>
|
||||
<dt>Status</dt>
|
||||
<dd class:list={[SITE.availability.open ? 'accent' : 'signal']}>
|
||||
{SITE.availability.text}<span class="blink">_</span>
|
||||
</dd>
|
||||
<dt>Stack</dt>
|
||||
<dd>TypeScript · Python · PowerShell · React · SQL · Docker</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<div class="cluster cta">
|
||||
<a class="btn btn--primary" href="/work">View work</a>
|
||||
<a class="btn" href="/contact">Hire me</a>
|
||||
<a class="btn" href={SITE.resume}>Résumé (PDF)</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="wrap section">
|
||||
<SectionHead code="01" title="Case files" href="/work" linkLabel="All work" />
|
||||
{featured && <ProjectCard project={featured} index={1} large />}
|
||||
<div class="grid">
|
||||
{rest.map((p, i) => <ProjectCard project={p} index={i + 2} />)}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="wrap section">
|
||||
<SectionHead code="02" title="Disciplines" />
|
||||
<ul class="disciplines">
|
||||
{
|
||||
DISCIPLINES.map((d) => (
|
||||
<li>
|
||||
<a href={d === 'music' ? '/sound' : `/work?d=${d}`}>
|
||||
<span class="label">{String(counts[d]).padStart(2, '0')} files</span>
|
||||
<span class="dname">{disciplineLabels[d]}</span>
|
||||
</a>
|
||||
</li>
|
||||
))
|
||||
}
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="wrap section">
|
||||
<SectionHead code="03" title="Transmissions" href="/log" linkLabel="Full log" />
|
||||
<ol class="log">
|
||||
{
|
||||
posts.map((post) => (
|
||||
<li>
|
||||
<a href={`/log/${post.id}`}>
|
||||
<time class="label" datetime={post.data.date.toISOString()}>
|
||||
{fmt(post.data.date)}
|
||||
</time>
|
||||
<span class="ptitle">{post.data.title}</span>
|
||||
<span class="muted">{post.data.summary}</span>
|
||||
</a>
|
||||
</li>
|
||||
))
|
||||
}
|
||||
</ol>
|
||||
</section>
|
||||
</Base>
|
||||
|
||||
<style>
|
||||
.hero {
|
||||
display: grid;
|
||||
gap: var(--space-6);
|
||||
padding-block: var(--space-8) var(--space-7);
|
||||
}
|
||||
.boot {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-5);
|
||||
border-bottom: 1px dashed var(--line);
|
||||
padding-bottom: var(--space-3);
|
||||
}
|
||||
.boot span:nth-child(2) {
|
||||
color: var(--accent);
|
||||
}
|
||||
.name {
|
||||
display: grid;
|
||||
font-size: var(--step-5);
|
||||
line-height: 0.82;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
.outline {
|
||||
color: transparent;
|
||||
-webkit-text-stroke: 2px var(--fg);
|
||||
text-shadow: none;
|
||||
}
|
||||
.intro {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
|
||||
gap: var(--space-7);
|
||||
align-items: start;
|
||||
}
|
||||
.lede {
|
||||
font-size: var(--step-2);
|
||||
line-height: 1.25;
|
||||
max-width: 30ch;
|
||||
}
|
||||
.readout.panel {
|
||||
margin-top: var(--space-4);
|
||||
}
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
|
||||
gap: var(--space-5);
|
||||
margin-top: var(--space-5);
|
||||
}
|
||||
|
||||
.disciplines {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
border-top: var(--border-w) solid var(--line);
|
||||
border-left: var(--border-w) solid var(--line);
|
||||
}
|
||||
.disciplines a {
|
||||
display: grid;
|
||||
gap: var(--space-5);
|
||||
min-height: 9rem;
|
||||
align-content: space-between;
|
||||
padding: var(--space-4);
|
||||
border-right: var(--border-w) solid var(--line);
|
||||
border-bottom: var(--border-w) solid var(--line);
|
||||
color: var(--fg);
|
||||
text-decoration: none;
|
||||
transition: background 0.15s var(--ease);
|
||||
}
|
||||
.disciplines a:hover {
|
||||
background: var(--accent);
|
||||
color: var(--accent-fg);
|
||||
}
|
||||
.disciplines a:hover .label {
|
||||
color: inherit;
|
||||
}
|
||||
.dname {
|
||||
font-family: var(--font-display);
|
||||
font-size: var(--step-2);
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.log {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
.log a {
|
||||
display: grid;
|
||||
grid-template-columns: 8rem 1fr;
|
||||
gap: var(--space-1) var(--space-5);
|
||||
padding-block: var(--space-4);
|
||||
border-bottom: 1px solid var(--line);
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
.log a:hover .ptitle {
|
||||
color: var(--signal);
|
||||
}
|
||||
.log .muted {
|
||||
grid-column: 2;
|
||||
}
|
||||
.ptitle {
|
||||
font-family: var(--font-display);
|
||||
font-size: var(--step-2);
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
line-height: 1;
|
||||
}
|
||||
@media (max-width: 40rem) {
|
||||
.log a {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.log .muted {
|
||||
grid-column: 1;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user