Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 42 additions & 36 deletions src/components/SponsorLogo.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { getEntry } from "astro:content";
import { Image } from "astro:assets";
import { sponsorLogos } from "@data/sponsorLogos";

const { sponsor: sponsorId, special_event=false } = Astro.props;

const { sponsor: sponsorId, special_event = false } = Astro.props;

const sponsor = await getEntry("sponsors", sponsorId);

Expand All @@ -22,64 +21,71 @@ const {
} = sponsor.data;

const logo = sponsorLogos[sponsor.id];
const slug = (tier === "Diamond" || tier === "Platinum" || sponsor.data.page)
? `/sponsor/${sponsorId}`
: tier === "Partners"
? `/community-partners#sponsor-${sponsorId}`
: tier === "Media Partners"
? `/media-partners#sponsor-${sponsorId}`
: tier === "Startups"
? `/startups#sponsor-${sponsorId}`
: `/sponsors#sponsor-${sponsorId}`

const slug =
tier === "Diamond" || tier === "Platinum" || sponsor.data.page
? `/sponsor/${sponsorId}`
: tier === "Partners"
? `/community-partners#sponsor-${sponsorId}`
: tier === "Media Partners"
? `/media-partners#sponsor-${sponsorId}`
: tier === "Startups"
? `/startups#sponsor-${sponsorId}`
: `/sponsors#sponsor-${sponsorId}`;
---

<div
class="lg:max-w-[400px] flex flex-col p-6 bg-white"
>
<div class={`w-full grid text-center justify-center items-center md:items-center ${tier === "Platinum" ? "min-h-[140px]" : ""}`}>
<div class="lg:max-w-[400px] flex flex-col p-6 bg-white">
<div
class={`w-full grid text-center justify-center items-center md:items-center ${tier === "Platinum" ? "min-h-[140px]" : ""}`}
>
{
website && slug ? (

<a href={slug} aria-label={`Link to ${title}`}
>
<a href={slug} aria-label={`Link to ${title}`}>
<Image
src={logo}
alt={`${title} Logo`}
class={`max-w-full ${logo_max_width ? `lg:max-w-[${logo_max_width}]` : ""}`}
style={{
maxHeight: "120px",
minWidth:
tier === "Partners" || tier === "Media Partners"
? "140px"
: undefined,
objectFit: "contain",
padding: logo_padding ? logo_padding : undefined,
}}
/>

<h3 class="font-semibold text-gray-900 text-center text-sm">
{tier==="Partners" && title}
{tier === "Partners" && title}
</h3>
</a>
):
<Image
src={logo}
alt={`${title} Logo`}
class={`max-w-full ${logo_max_width ? `lg:max-w-[${logo_max_width}]` : ""}`}
style={{
maxHeight: "120px",
objectFit: "contain",
padding: logo_padding ? logo_padding : undefined,
}}
/>
) : (
<Image
src={logo}
alt={`${title} Logo`}
class={`max-w-full ${logo_max_width ? `lg:max-w-[${logo_max_width}]` : ""}`}
style={{
maxHeight: "120px",
minWidth:
tier === "Partners" || tier === "Media Partners"
? "140px"
: undefined,
objectFit: "contain",
padding: logo_padding ? logo_padding : undefined,
}}
/>
)
}
{ special_event && event_name &&
<span class="text-gray-900">{event_name}</span>
{
special_event && event_name && (
<span class="text-gray-900">{event_name}</span>
)
}
</div>
</div>

<style>

div {
justify-content: flex-end;
}

</style>
</style>
4 changes: 2 additions & 2 deletions src/components/sections/sponsors/sponsor-tier.astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const special_event = tier.name === "Special Event";
"grid-cols-1 md:grid-cols-2 m-10 [&>*]:scale-110": level === 0,
"grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:scale-90":
level > 0 && level < 6,
"grid-cols-2 md:grid-cols-3 lg:grid-cols-4 [&>*]:scale-70":
"grid-cols-1 md:grid-cols-3 lg:grid-cols-4 [&>*]:scale-70":
level >= 6 && level < 7,
"grid-cols-2 md:grid-cols-3 lg:grid-cols-4 [&>*]:scale-85": level >= 7,
"grid-cols-1 md:grid-cols-3 lg:grid-cols-4 [&>*]:scale-85": level >= 7,
},
]}
>
Expand Down
2 changes: 1 addition & 1 deletion src/content/sponsors/1password/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ socials:
youtube: "https://www.youtube.com/1PasswordVideos"
bluesky:
tier: Supporters
logo_padding: 35px
logo_padding: 15px
---
2 changes: 1 addition & 1 deletion src/content/sponsors/arjancodes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ socials:
github: "https://github.com/arjancodes"
facebook: "https://www.facebook.com/arjancodes"
discord: "https://discord.com/invite/K9CKfWrX4A"
logo_padding: 10px
logo_padding: 30px 0px
tier: Media Partners
---
2 changes: 1 addition & 1 deletion src/content/sponsors/devopsdays-krakow/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ socials:
discord: http://discord.gg/tQHaWgB
mastodon:
bluesky:
logo_padding: 0px 0px
logo_padding: 10px 0px
tier: Partners
---
1 change: 0 additions & 1 deletion src/content/sponsors/eps/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ socials:
bluesky: "https://bsky.app/profile/europython.eu"
tiktok: "https://www.tiktok.com/@europython"
tier: Financial Aid
logo_padding: 15px
---
2 changes: 1 addition & 1 deletion src/content/sponsors/hskrk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ socials:
mastodon: https://social.hackerspace.pl/@hskrk
facebook: https://www.facebook.com/HackerspaceKrakow
bluesky:
logo_padding: 0px
logo_padding: 20px 0
tier: Partners
---
2 changes: 1 addition & 1 deletion src/content/sponsors/paged-out/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ socials:
linkedin: "https://www.linkedin.com/company/paged-out"
twitter: "https://x.com/pagedout_zine"
bluesky: "https://bsky.app/profile/pagedout.bsky.social"
logo_padding: 10px
logo_padding: 30px 0px
tier: Media Partners
---
2 changes: 1 addition & 1 deletion src/content/sponsors/pycon-africa/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ socials:
instagram: "https://www.instagram.com/pyconafrica"
mastodon: "https://mastodon.social/@pyconafrica"
youtube: "https://www.youtube.com/@PyconAfrica"
logo_padding: 0px
logo_padding: 10px 0
tier: Partners
---
2 changes: 1 addition & 1 deletion src/content/sponsors/pykonik/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ socials:
discord: http://discord.pykonik.org
mastodon:
bluesky:
logo_padding: 0px 20px
logo_padding: 10px
tier: Partners
---
2 changes: 1 addition & 1 deletion src/content/sponsors/pyladiescon/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ socials:
mastodon: "https://fosstodon.org/@pyladiescon"
bluesky: "https://bsky.app/profile/pyladiescon.bsky.social"
youtube: "https://www.youtube.com/@PyLadiesGlobal"
logo_padding: 10px 10px
logo_padding: 30px 0
tier: Partners
---
2 changes: 1 addition & 1 deletion src/content/sponsors/pythonlodz/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ socials:
discord:
mastodon:
bluesky:
logo_padding: 10px 20px
logo_padding: 0px
tier: Partners
---
2 changes: 1 addition & 1 deletion src/content/sponsors/real-python-podcast/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ socials:
youtube: "https://www.youtube.com/@realpython"
github: "https://github.com/realpython"
facebook: "https://www.facebook.com/LearnRealPython"
logo_padding: 10px
logo_padding: 20px 10px
tier: Media Partners
---
2 changes: 1 addition & 1 deletion src/content/sponsors/serpapi/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ socials:
github: https://github.com/serpapi/

tier: Patron
logo_padding: 45px
logo_padding: 15px 45px
---
Loading