From 1ede517210cd592d943f6baa7b5c089e7a53909f Mon Sep 17 00:00:00 2001 From: dylanbenzi Date: Sun, 1 Nov 2026 14:04:44 -0500 Subject: [PATCH] tailwind rebuild --- src/components/Button.astro | 12 + src/components/Captures.astro | 24 +- src/components/Channels.astro | 11 +- src/components/ContactPanel.astro | 11 +- src/components/FlapBoard.astro | 26 +- src/components/Label.astro | 6 + src/components/Nav.astro | 9 +- src/components/ProjectStrip.astro | 21 +- src/components/SectionHeader.astro | 7 +- src/components/Timeline.astro | 30 +- src/layouts/Base.astro | 10 +- src/pages/404.astro | 10 +- src/pages/index.astro | 27 +- src/pages/projects/[slug].astro | 32 +- src/styles/global.css | 863 ++--------------------------- 15 files changed, 196 insertions(+), 903 deletions(-) create mode 100644 src/components/Button.astro create mode 100644 src/components/Label.astro diff --git a/src/components/Button.astro b/src/components/Button.astro new file mode 100644 index 0000000..cff9e76 --- /dev/null +++ b/src/components/Button.astro @@ -0,0 +1,12 @@ +--- +interface Props { href: string; primary?: boolean; } +const { href, primary } = Astro.props; +--- + + diff --git a/src/components/Captures.astro b/src/components/Captures.astro index e137e4a..51ca1c8 100644 --- a/src/components/Captures.astro +++ b/src/components/Captures.astro @@ -10,19 +10,27 @@ const photos = Object.entries(found) caption: (path.split('/').pop() ?? '').replace(/\.[^.]+$/, '').replace(/[-_]+/g, ' ').toUpperCase(), })); const slots = [0, 1, 2].map((i) => photos[i] ?? null); + +const corner = "before:absolute before:size-[22px] before:border-accent before:content-[''] after:absolute after:size-[22px] after:border-accent after:content-['']"; +const shot = (photo: boolean) => [ + 'relative m-0 overflow-hidden border border-line bg-panel', + !photo && `${corner} before:top-2.5 before:left-2.5 before:border-t-2 before:border-l-2 after:right-2.5 after:bottom-2.5 after:border-r-2 after:border-b-2`, +]; +const caption = 'absolute inset-x-0 bottom-0 px-5 pt-[18px] pb-3 font-mono text-[12px]'; +const captionPhoto = 'bg-[linear-gradient(transparent,rgba(5,8,7,0.85))] text-fg'; --- -
-
- {slots[0] ? {slots[0].caption} : null} -
{slots[0] ? slots[0].caption : '[PHOTO 1 · FEATURED]'}
+
+
+ {slots[0] ? {slots[0].caption} : null} +
{slots[0] ? slots[0].caption : '[PHOTO 1 · FEATURED]'}
-
+
{ [1, 2].map((i) => ( -
- {slots[i] ? {slots[i]!.caption} : null} -
{slots[i] ? slots[i]!.caption : `[PHOTO ${i + 1}]`}
+
+ {slots[i] ? {slots[i]!.caption} : null} +
{slots[i] ? slots[i]!.caption : `[PHOTO ${i + 1}]`}
)) } diff --git a/src/components/Channels.astro b/src/components/Channels.astro index bab4a9b..5860121 100644 --- a/src/components/Channels.astro +++ b/src/components/Channels.astro @@ -1,15 +1,16 @@ --- import { skills } from '../data/skills'; +import Label from './Label.astro'; --- -