-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
500 additions
and
546 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
interface Props { | ||
class: string | ||
} | ||
const { class: className } = Astro.props | ||
--- | ||
|
||
<svg viewBox="0 0 24 24" class=`${className ? className : "size-4"}`> | ||
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" | ||
d="M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path> | ||
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
interface Props { | ||
gapless?: boolean | ||
} | ||
const { gapless } = Astro.props | ||
--- | ||
|
||
<main class:list={["flex flex-col relative", {"gap-8 md:gap-16 lg:gap-32 my-8 md:my-16 lg:my-32": !gapless}]}> | ||
<slot /> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
import Card from "#/components/Card.astro" | ||
interface Props { | ||
person: { | ||
twitterHandle: string | ||
name: string | ||
profilePicture: unknown | ||
title: string | ||
} | ||
} | ||
const { person } = Astro.props | ||
--- | ||
|
||
<Card class="border-none group"> | ||
<a | ||
href={`https://x.com/${person.twitterHandle}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
class="gap-4 flex flex-col" | ||
> | ||
<div class="object-cover overflow-hidden"> | ||
<!-- We don't have a picture for every person !--> | ||
{person?.profilePicture?.fields?.file?.url ? | ||
<img | ||
class="w-full h-auto group-hover:scale-110 transition" | ||
src={person?.profilePicture?.fields?.file?.url} | ||
alt={`${person.name} - Union worker`} | ||
/> | ||
: | ||
<div class="bg-neutral-900 aspect-1 w-full"></div> | ||
} | ||
</div> | ||
<div class="leading-tight uppercase font-mono"> | ||
<h1 class="text-2xl font-bold font-supermolot uppercase">{person.name}</h1> | ||
<div class="text-gray-400 -mt-1 text-lg">{person.title}</div> | ||
<div class="text-accent text-lg -mt-1 block">@{person.twitterHandle}</div> | ||
</div> | ||
</a> | ||
</Card> |
Oops, something went wrong.