Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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
8 changes: 7 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ export default defineConfig({
},
resolve: {
alias: {
$: path.resolve(__dirname, "./src"),
"@components": path.resolve("./src/components"),
"@sections": path.resolve("./src/components/sections"),
"@layouts": path.resolve("./src/layouts"),
"@ui": path.resolve("./src/components/ui"),
"@assets": path.resolve("./src/assets"),
"@i18n": path.resolve("./src/i18n"),
"@src": path.resolve("./src"),
},
},
},
Expand Down
6 changes: 3 additions & 3 deletions src/components/card/card.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ const { title, subtitle, url, image } = Astro.props;
class="block min-w-[250px] w-full md:w-[40%] lg:w-[30%] p-4 bg-[#D5D6E6] rounded-2xl text-center flex flex-col"
>
<a href={url} class="block">
<div class="relative w-full mb-4">
<div class="relative w-full">
<Image
src={image}
width={600}
height={375}
alt=""
class="rounded-xl aspect-[3/2] w-full"
class="not-prose rounded-xl aspect-[3/2] w-full"
loading="lazy"
/>
</div>
</a>
<div class="flex items-center flex-col flex-grow mb-2">
<a href={url} class="block hover:underline">
<h3 class="text-2xl text-primary">{title}</h3>
<h3 >{title}</h3>
</a>
<slot />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/keynoters/keynoter.astro
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Placeholder =
<>
<p class="text-body-inverted font-bold">{name}</p>
{tagline ? (
<p class="text-body-light font-bold text-sm italic">{tagline}</p>
<p class="text-body-light font-bold text-lg italic">{tagline}</p>
) : null}
</>
)
Expand Down
10 changes: 4 additions & 6 deletions src/components/keynoters/keynoters.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import ButtonLink from "../button-link/button-link.astro";
import { Title } from "../typography/title";
import Keynoter from "./keynoter.astro";
import Headline from "@ui/Headline.astro"

import { getCollection } from "astro:content";

Expand All @@ -10,7 +10,7 @@ const keynoters = await getCollection("keynoters");
const placeholders = Math.max(0, 6 - keynoters.length);
---

<section class="relative my-12 px-6">
<section class="prose-xl relative my-12 px-6">
<svg viewBox="0 0 729 704" class="absolute top-0 left-0 w-full h-full -z-10">
<g
stroke="none"
Expand Down Expand Up @@ -79,11 +79,9 @@ const placeholders = Math.max(0, 6 - keynoters.length);
</g>
</svg>

<Title className="text-primary">
<a href="/keynoters">Keynote Speakers</a>
</Title>
<Headline id="keynoters" title="Keynote Speakers" />

<ul class="mt-12 mb-24 flex gap-6 flex-wrap">
<ul class="p-0 mt-12 flex gap-6 flex-wrap">
{
keynoters.map((keynoter, index) => (
<Keynoter
Expand Down
9 changes: 9 additions & 0 deletions src/components/sections/prague.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
import PragueComponent from "@components/hero-section/prague.astro";
import * as venue from "../../data/home/prague.mdx";
---
<div class="mt-2 px-6 pb-40 overflow-visible">
<PragueComponent title={venue.frontmatter.title}>
<venue.Content />
</PragueComponent>
</div>
21 changes: 21 additions & 0 deletions src/components/sections/updates.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---

import { CardContainer } from "@components/card/card-container";
import { Title } from "@components/typography/title";
import DeadlineCard from "@components/deadline-card.astro";
import Headline from "@ui/Headline.astro"
import { getCollection } from "astro:content";

let deadlines = await getCollection("deadlines");
deadlines = deadlines
.sort((a, b) => a.slug.localeCompare(b.slug))
.reverse()
.slice(0, 3);

---
<section class="prose-xl m-0 p-0">
<Headline id="updates" title="Updates" />
<CardContainer>
{deadlines.map((deadline) => <DeadlineCard id={deadline.slug} />)}
</CardContainer>
</section>
14 changes: 5 additions & 9 deletions src/components/sponsors/sponsors.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { getCollection } from "astro:content";
import { Separator } from "../separator/separator";
import { Fragment } from "react";
import { Fullbleed } from "../layout/fullbleed";
import Headline from "@ui/Headline.astro"

import ButtonLink from "../button-link/button-link.astro";
import { Title } from "../typography/title";

import SponsorTier from "./sponsor-tier.astro";

Expand Down Expand Up @@ -48,19 +48,17 @@ const topTier = sponsorTiers.find((tier) => tier.name === "Keystone");

<Fullbleed className="bg-white py-24 px-6">
<section class="max-w-4xl lg:max-w-6xl mx-auto mb-16">
<Headline id="sponsors" title="Sponsors" />
<div>
<div class="flex gap-6">
<div class="max-w-[1000px]">
<Title level={2}>Sponsors</Title>
{
hasSponsors ? (
<p>
<p class="text-center">
EuroPython wouldn't be such an affordable event without the help
of the sponsors. We'd like to thank all of them for their
support.
</p>
) : (
<p>
<p class="text-center">
Sponsoring EuroPython guarantees you highly targeted visibility
and the opportunity to present yourself and your company to one
of the largest and most diverse Python communities in Europe and
Expand All @@ -69,10 +67,8 @@ const topTier = sponsorTiers.find((tier) => tier.name === "Keystone");
)
}

<div class="mt-4">
<div class="mt-4 text-center">
<ButtonLink url="/sponsor">Become a sponsor</ButtonLink>
</div>
</div>
</div>
{
topTier && topTier.sponsors.length > 0 && (
Expand Down
16 changes: 16 additions & 0 deletions src/components/ui/Headline.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
const { as = "h2", id, title, href} = Astro.props;
const Tag = as;
const Title = title;
const isAnchor = !!id;
const isLink = !!href;
---

<Tag id={isAnchor ? id : undefined} class={`m-5 py-2 text-center font-bold text-6xl`}>
{isAnchor && (
<a href={`#${id}`} aria-label={`Jump to ${id}`}>
{Title}
</a>
)}
{isLink && <a aria-label="Read more about {Title}" href={href} class="hover:underline">{Title}</a> }
</Tag>
Binary file added src/content/keynoters/anna.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/content/keynoters/anna.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: Anna Přistoupilová
image: ./anna.jpg
slug: anna-pristoupilova
tagline: Primary colours
---
5 changes: 5 additions & 0 deletions src/content/keynoters/armin-ronacher.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: Armin Ronacher
image: ./armin.jpg
slug: armin-ronacher
---
Binary file added src/content/keynoters/armin.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/content/keynoters/carol-willing.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: Carol Willing
image: ./carol.jpg
slug: carol-willing
tagline: A writer codes? Eeek!
---
Binary file added src/content/keynoters/carol.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/content/keynoters/lukasz-langa.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: Łukasz Langa
image: ./lukasz.jpg
slug: lukasz-langa
tagline: Lorem Lorem Lorem
---
Binary file added src/content/keynoters/lukasz.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/content/keynoters/mai-gimenez.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: Mai Giménez
image: ./mai.jpg
slug: mai-gimenez
---
Binary file added src/content/keynoters/mai.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/content/keynoters/tereza-iofciu.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: Tereza Iofciu
image: ./tereza.jpg
slug: tereza-iofciu
---
Binary file added src/content/keynoters/tereza.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/layouts/HomePageLayout.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import "../styles/global.css";
import Header from "../components/header/header.astro";
import Footer from "../components/footer.astro";
import BaseHead from "../components/BaseHead.astro";
Expand Down
1 change: 0 additions & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import "../styles/global.css";
import Header from "../components/header/header.astro";
import Footer from "../components/footer.astro";
import BaseHead from "../components/BaseHead.astro";
Expand Down
35 changes: 8 additions & 27 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
---
import { CardContainer } from "../components/card/card-container";
import Hero from "../components/hero2/hero.astro";
import HeroWithCTA from "../components/hero-section/hero-with-cta.astro";
import { Fullbleed } from "../components/layout/fullbleed";
import Prose from "../components/prose/prose.astro";
import { Title } from "../components/typography/title";
import Layout from "../layouts/HomePageLayout.astro";
import DeadlineCard from "../components/deadline-card.astro";
import { getCollection } from "astro:content";
import Accent from "../components/accent/accent.astro";
import Prague from "../components/hero-section/prague.astro";
import Sponsors from "../components/sponsors/sponsors.astro";

import * as intro from "../data/home/intro.md";
import * as venue from "../data/home/prague.mdx";

let deadlines = await getCollection("deadlines");
deadlines = deadlines
.sort((a, b) => a.slug.localeCompare(b.slug))
.reverse()
.slice(0, 3);
import KeynotersComponent from "../components/keynoters/keynoters.astro";
import Updates from "@sections/updates.astro";
import Prague from "@sections/prague.astro";
---

<Layout
Expand All @@ -28,15 +13,11 @@ deadlines = deadlines
>
<Hero />

<h2 class="text-7xl text-center m-16">Updates</h2>
<CardContainer>
{deadlines.map((deadline) => <DeadlineCard id={deadline.slug} />)}
</CardContainer>
<Updates />

<KeynotersComponent />

<Prague />

<div class="mt-40 px-6 pb-40 overflow-visible">
<Prague title={venue.frontmatter.title}>
<venue.Content />
</Prague>
</div>
<Sponsors />
</Layout>
4 changes: 2 additions & 2 deletions src/pages/schedule/[day].astro
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const slots = Object.entries(sessionsByTime)
};
});

const gridRows = [];
const gridRows: string[] = [];

let row = 1;

Expand All @@ -201,7 +201,7 @@ for (let i = 0; i < slots.length; i++) {

const currentTime = timeToNumber(current.startTime);

let nextTime;
let nextTime: number;

if (next) {
nextTime = timeToNumber(next.startTime);
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"jsxImportSource": "react",
"paths": {
"@components/*": ["src/components/*"],
"@layouts/*": ["src/layouts/*"],
"@sections/*": ["src/components/sections/*"],
"@ui/*": ["src/components/ui/*"],
"@layouts/*": ["src/layouts/*"],
"@assets/*": ["src/assets/*"],
"@i18n/*": ["src/i18n/*"],
"@src/*": ["src/*"]
Expand Down