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
19 changes: 14 additions & 5 deletions src/components/Button.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ interface Props {
variant?: "solid" | "outline" | "inverted";
class?: string;
id?: string;
disabled?: boolean;
}

const variantClass = {
Expand All @@ -12,16 +13,24 @@ const variantClass = {
inverted: "btn-inverted",
};

const { href, variant = "solid", class: cls, id } = Astro.props;
const {
href,
variant = "solid",
class: cls,
id,
disabled = false,
} = Astro.props;
const external = href.startsWith("http");
---

<a
id={id}
href={href}
target={external ? "_blank" : undefined}
rel={external ? "noopener noreferrer" : undefined}
class:list={["btn", variantClass[variant], cls]}
href={disabled ? undefined : href}
target={!disabled && external ? "_blank" : undefined}
rel={!disabled && external ? "noopener noreferrer" : undefined}
aria-disabled={disabled ? "true" : undefined}
tabindex={disabled ? -1 : undefined}
class:list={["btn", variantClass[variant], disabled && "btn-disabled", cls]}
>
<slot />
</a>
4 changes: 2 additions & 2 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const optimizedCityBg = await getImage({

<nav class="hidden lg:flex items-center gap-1">
{menuItems.map(({ href, label }) => (
<a href={href} class="nav-link text-center whitespace-nowrap">
<a href={href} class="nav-link text-center whitespace-nowrap font-normal">
{label}
</a>
))}
Expand All @@ -58,7 +58,7 @@ const optimizedCityBg = await getImage({
<li>
<a
href={href}
class="mobile-nav-link text-white text-2xl leading-tight py-2 block text-center hover:underline underline-offset-4"
class="mobile-nav-link text-white text-2xl leading-tight font-normal py-2 block text-center hover:underline underline-offset-4"
>
{label}
</a>
Expand Down
6 changes: 3 additions & 3 deletions src/content/prose/cfp-details.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { event } from "@data/event";
import Button from "@components/Button.astro";

<div class="prose-banner">
<p class="m-0">Deadline extended!</p>
<p class="m-0">Submissions now close <span class="line-through opacity-70">25 August 2026</span> {event.cfp.deadlineDisplay}.</p>
<Button href={event.cfp.url} variant="inverted" class="mt-6 no-underline">Submit your talk →</Button>
<p class="m-0">The CFP is now closed.</p>
<p class="m-0">Submissions closed on {event.cfp.deadlineDisplay}.</p>
<Button href={event.cfp.url} variant="inverted" class="mt-6 no-underline" disabled>Submissions closed</Button>
</div>

## Everyone is welcome here
Expand Down
4 changes: 2 additions & 2 deletions src/content/prose/cfp.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { event } from "@data/event";

The CFP is open! Got a Python project, story, or hard-won lesson to share? We want to hear it - all experience levels welcome, first-time speakers especially.
The CFP is now closed. Thanks to everyone who shared a Python project, story, or hard-won lesson with us - across all experience levels, including first-time speakers.

Talks are 10 minutes, mostly in English, with a few Turkish slots for this first edition. Submissions close <span class="deadline-old">25 August 2026</span>{" "}<strong>{event.cfp.deadlineDisplay}</strong>.
Talks are 10 minutes, mostly in English, with a few Turkish slots for this first edition. Submissions closed on <span class="deadline-old">25 August 2026</span>{" "}<strong>{event.cfp.deadlineDisplay}</strong>.
11 changes: 2 additions & 9 deletions src/data/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,12 @@ export const event = {
},
// shown together in the hero; ctas with floating: true also get a floating button once scrolled past
ctas: [
{
id: "cfp",
label: "Submit a talk! 🎤",
href: cfpUrl,
variant: "outline" as const,
floating: true,
},
{
id: "tickets",
label: "Get your ticket! 🎟️",
href: ticketsUrl,
variant: "inverted" as const,
floating: false,
variant: "outline" as const,
floating: true,
},
],
};
2 changes: 1 addition & 1 deletion src/data/navigation.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const menuItems = [
{ href: "/#about", label: "About 🍕" },
{ href: "/#cfp", label: "CFP 🙋🏻‍♀️" },
{ href: "/#venue", label: "Venue 🏰" },
{ href: "/#sponsors", label: "Sponsors 💛" },
{ href: "/#cfp", label: "CFP 🙋🏻‍♀️" },
// { href: "/#schedule", label: "Program 📅" },
// { href: "/compact-agenda/", label: "Compact agenda 🔗" },
{ href: "/#organizers", label: "Organizers 👩🏻" },
Expand Down
2 changes: 1 addition & 1 deletion src/pages/cfp.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Content from "@prose/cfp-details.mdx";
<Content />
</Prose>
<div class="text-center mt-8">
<Button href={event.cfp.url}>Submit your talk</Button>
<Button href={event.cfp.url} disabled>CFP closed</Button>
</div>
</main>
<Footer />
Expand Down
8 changes: 4 additions & 4 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ const twitter = socials.find((s) => s.handle);
<Section id="about" title={`Python Pizza is Coming to ${event.city}!`}>
<Prose><AboutContent /></Prose>
</Section>
<Section id="cfp" title="Call for Proposals: Deadline Extended! 🎤">
<Venue />
<Sponsors />
<Section id="cfp" title="Call for Proposals: Closed 🎤">
<Prose><CfpContent /></Prose>
<div class="mt-8 flex flex-col sm:flex-row items-center justify-center gap-4">
<Button href={event.cfp.url}>Submit a talk! 🎤</Button>
<Button href={event.cfp.url} disabled>CFP closed</Button>
<Button href="/cfp/">Read the full CFP →</Button>
</div>
</Section>
<Venue />
<Sponsors />
{/* <Schedule /> */}
<Organizers />
<Section id="coc" title="Code of Conduct">
Expand Down
3 changes: 3 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@
.btn-inverted {
@apply bg-white text-primary;
}
.btn-disabled {
@apply opacity-50 pointer-events-none cursor-not-allowed hover:translate-y-0;
}

.cta-hidden {
opacity: 0;
Expand Down
Loading