add Wayfarer & PlanMyMeal; WebStorm refactor

This commit is contained in:
Cayden Schwechten 2026-11-01 14:39:54 -06:00
parent 243527af9f
commit fe3021f0c2
11 changed files with 119 additions and 47 deletions

View file

@ -1,10 +1,10 @@
import { site } from '@/lib/site';
import {site} from '@/lib/site';
const Contact = () => (
<section id="contact" className="container-page pt-12 pb-24">
<div className="flex flex-col items-start justify-between gap-6 panel p-6 sm:flex-row sm:items-center md:p-9">
<div>
<h2 className="font-display text-2xl font-medium tracking-tight text-ink md:text-3xl">
<h2 className="font-display text-2xl font-normal tracking-tight text-ink md:text-3xl">
Get in touch
</h2>
<p className="mt-1.5 text-sm text-ink/70">

View file

@ -1,6 +1,6 @@
import Reveal from '@/components/ui/reveal';
import SectionHeading from '@/components/ui/section-heading';
import { feats } from '@/lib/site';
import {feats} from '@/lib/site';
const Feats = () => (
<section id="feats" className="container-page py-16">
@ -15,7 +15,7 @@ const Feats = () => (
className="border-white/12 p-6 transition-colors not-last:border-b hover:bg-white/[0.04] sm:odd:border-r sm:odd:nth-last-2:border-b-0 md:p-7"
>
<Reveal delay={i * 60}>
<h3 className="font-display text-base font-medium text-ink">
<h3 className="font-display text-base font-normal text-ink">
{feat.title}
</h3>
<p className="mt-1.5 text-sm leading-relaxed text-ink/70">

View file

@ -1,5 +1,5 @@
import Image from 'next/image';
import { about, site, stack } from '@/lib/site';
import {about, site, stack} from '@/lib/site';
const Hero = () => (
<section id="about" className="container-page py-20 md:pt-28 md:pb-24">
@ -8,8 +8,8 @@ const Hero = () => (
<span aria-hidden className="h-px w-6 bg-aurora" />
<span>{site.role}</span>
</p>
<h1 className="font-display text-5xl font-semibold tracking-[-0.035em] text-ink sm:text-6xl md:text-7xl">
Howdy, I&apos;m {site.name}.
<h1 className="font-display text-5xl font-normal tracking-[-0.035em] text-ink sm:text-6xl md:text-7xl">
Howdy, I&apos;m Cayden.
</h1>
<p className="mt-4 max-w-xl text-lg leading-relaxed text-ink/85 md:text-xl">
{site.tagline}
@ -32,7 +32,7 @@ const Hero = () => (
<div className="mt-16 grid panel md:mt-20 md:grid-cols-[14rem_1fr]">
<div className="border-b border-white/12 p-5 md:border-r md:border-b-0 md:p-6">
<div className="relative aspect-[8/7] overflow-hidden border border-white/12 bg-obsidian/60">
<div className="relative aspect-8/7 overflow-hidden border border-white/12 bg-obsidian/60">
<Image
src="/cayden-portrait.png"
alt="Cayden"

View file

@ -1,34 +1,79 @@
import Reveal from '@/components/ui/reveal';
import SectionHeading from '@/components/ui/section-heading';
import { projects } from '@/lib/site';
import {projects} from '@/lib/site';
const Projects = () => (
<section id="work" className="container-page py-16">
<SectionHeading title="Selected Work">
Instant-Response Web Applications
</SectionHeading>
const Projects = () => {
const rem = projects.length % 3;
const lastRowStart = projects.length - (rem || 3);
<div className="grid divide-y divide-white/12 panel md:grid-cols-3 md:divide-x md:divide-y-0">
{projects.map((project, i) => (
<Reveal key={project.title} delay={i * 60}>
<article className="flex h-full flex-col justify-between p-6 transition-colors hover:bg-white/4 md:p-7">
<div>
<h3 className="font-display text-lg font-medium tracking-tight text-ink">
{project.title}
</h3>
<p className="mt-2.5 text-sm leading-relaxed text-ink/70">
{project.blurb}
</p>
</div>
return (
<section id="work" className="container-page py-16">
<SectionHeading title="Selected Work">
Instant-Response Web Applications
</SectionHeading>
<p className="mt-8 border-t border-white/10 pt-3 font-mono text-xs text-aurora/90">
{project.stack}
</p>
</article>
</Reveal>
))}
</div>
</section>
);
<div className="grid panel md:grid-cols-6">
{projects.map((project, i) => {
const inLastRow = i >= lastRowStart;
const colSpan =
inLastRow && rem === 1
? 'md:col-span-6'
: inLastRow && rem === 2
? 'md:col-span-3'
: 'md:col-span-2';
const rightRule =
i !== projects.length - 1 && i % 3 !== 2
? 'md:border-r'
: '';
const bottomRule = inLastRow ? 'md:border-b-0' : '';
const className = `group grid border-white/12 p-6 transition-colors not-last:border-b hover:bg-white/4 md:p-7 ${colSpan} ${rightRule} ${bottomRule}`;
const content = (
<Reveal delay={i * 60}>
<div className="flex h-full flex-col justify-between">
<div>
<h3 className="flex items-baseline justify-between gap-2 font-display text-lg font-normal tracking-tight text-ink group-hover:text-crest">
<span>{project.title}</span>
{project.href && (
<span
aria-hidden
className="text-sm text-aurora transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5"
>
↗
</span>
)}
</h3>
<p className="mt-2.5 text-sm leading-relaxed text-ink/70">
{project.blurb}
</p>
</div>
<p className="mt-8 border-t border-white/10 pt-3 font-mono text-xs text-aurora/90">
{project.stack}
</p>
</div>
</Reveal>
);
return project.href ? (
<a
key={project.title}
href={project.href}
target="_blank"
rel="noreferrer"
className={className}
>
{content}
</a>
) : (
<article key={project.title} className={className}>
{content}
</article>
);
})}
</div>
</section>
);
};
export default Projects;

View file

@ -1,4 +1,4 @@
import type { ReactNode } from 'react';
import type {ReactNode} from 'react';
type Props = {
title: string;
@ -9,7 +9,7 @@ const SectionHeading = ({ title, children }: Props) => (
<div className="mb-6 flex flex-col justify-between gap-2 border-b border-white/15 pb-4 sm:flex-row sm:items-end">
<div className="flex items-center gap-3">
<span aria-hidden className="h-px w-5 bg-aurora" />
<h2 className="font-display text-2xl font-medium tracking-tight text-ink md:text-3xl">
<h2 className="font-display text-2xl font-normal tracking-tight text-ink md:text-3xl">
{title}
</h2>
</div>