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'; --- -