-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mainly sponsor page changes but getting ready to add leadership page
- Loading branch information
1 parent
e4090d0
commit f31eb3f
Showing
11 changed files
with
116 additions
and
416 deletions.
There are no files selected for viewing
File renamed without changes
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
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,36 @@ | ||
--- | ||
import getLeadershipData from "~/leadershipData"; | ||
import { Image } from "astro:assets"; | ||
import Socials from "./Socials.astro"; | ||
export interface Props { | ||
name: string; | ||
noSocials?: boolean; | ||
} | ||
const { name, noSocials } = Astro.props; | ||
let leadershipData = getLeadershipData(name); | ||
const images = import.meta.glob<{ default: ImageMetadata }>( | ||
"/src/assets/images/staff/*.{jpeg,jpg,png}", | ||
); | ||
const imagePath = "/src/assets/images/staff/" + name + ".png"; | ||
const image = images[imagePath](); | ||
--- | ||
|
||
<div class="inline-block"> | ||
<div class="border border-[#ffffff29] bg-page rounded-md p-4 flex flex-col gap-4 shadow-lg m-auto"> | ||
<Image class="rounded-sm" src={image} alt={name} width="400" /> | ||
<div> | ||
<p class="text-primary font-bold text-xl">{name}</p> | ||
<p class="font-bold">{leadershipData.title}</p> | ||
|
||
<div class="py-4"> | ||
{leadershipData.year && <p>{leadershipData.year}</p>} | ||
{leadershipData.major && <p>{leadershipData.major}</p>} | ||
</div> | ||
|
||
{!noSocials && <Socials {...getLeadershipData(name)} />} | ||
</div> | ||
</div> | ||
</div> |
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
Oops, something went wrong.