Skip to content

Add program overview #1127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed
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
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ dmypy.json
.pyre/

.vscode/
.idea/
out/
.next/
.DS_Store
Expand All @@ -138,3 +139,11 @@ storybook-static/
# Sentry Auth Token
.sentryclirc
.astro

# EuroPython website
src/content/speakers
src/content/sessions
src/content/days
src/data/speakers.json
src/data/sessions.json
src/data/schedule.json
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
# Replace "/" and other non-alphanumeric characters with "-"
SAFE_BRANCH := $(shell echo "$(BRANCH)" | sed 's/[^A-Za-z0-9-]/-/g')
FORCE_DEPLOY ?= false
SITE_URL ?= "https://$(SAFE_BRANCH).ep-preview.click"

.PHONY: build deploy dev clean install


safe_branch:
@echo $(SAFE_BRANCH)

Expand All @@ -47,6 +47,7 @@ build:
preview: RELEASES_DIR = $(VPS_PREVIEW_PATH)/$(SAFE_BRANCH)/releases
preview: TARGET = $(RELEASES_DIR)/$(TIMESTAMP)
preview:
@echo "Preview site URL: $(SITE_URL)" # Output preview URL
echo $(TARGET)
@echo "\n\n**** Deploying preview of a branch '$(BRANCH)' (safe: $(SAFE_BRANCH)) to $(TARGET)...\n\n"
$(REMOTE_CMD) "mkdir -p $(TARGET)"
Expand Down
8 changes: 6 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import path from "path";
import path, { dirname } from "path";
import { fileURLToPath } from "url";
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
Expand Down Expand Up @@ -59,7 +60,6 @@ export default defineConfig({
"/sponsor/": "/sponsorship/sponsor/",
"/voting/": "/programme/voting/",
"/wasm-summit/": "/programme/wasm-summit/",
"/sessions/": "/programme/sessions/",
},
integrations: [
mdx(),
Expand All @@ -76,7 +76,11 @@ export default defineConfig({
build: {
minify: true,
},
image: {
experimentalLayout: "responsive",
},
experimental: {
responsiveImages: true,
svg: true,
},
});
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"date-fns": "^4.1.0",
"date-fns-tz": "^3.2.0",
"hastscript": "^9.0.0",
"js-yaml": "^4.1.0",
"marked": "^15.0.7",
"pagefind": "^1.3.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
Expand All @@ -40,6 +42,7 @@
"typescript": "^5.8.3"
},
"devDependencies": {
"@types/js-yaml": "^4.0.9",
"prettier": "^3.4.2",
"prettier-plugin-astro": "^0.14.1"
},
Expand Down
21 changes: 21 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/favicon.ico
Binary file not shown.
79 changes: 0 additions & 79 deletions scripts/download-data.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/schedule/speakers.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const speakers = Astro.props.speakers

{
speakers.map((speaker, index) => (
<a href={`/speaker/${speaker.slug}`} class="inline">
<a href={`/speaker/${speaker.id}`} class="inline">
{speaker.data.name}
{index < speakers.length - 1 ? ", " : ""}
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/components/session-speakers.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const speakers = await getEntries(
{
speakers.map((speaker, index) => (
<span class="inline">
<a href={`/speaker/${speaker.slug}`} class="underline">
<a href={`/speaker/${speaker.id}`} class="underline">
{speaker.data.name}
</a>
{index < speakers.length - 1 ? ", " : ""}
Expand Down
28 changes: 27 additions & 1 deletion src/components/ui/Headline.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,37 @@ const isAnchor = !!id;
const isLink = !!href;
---

<Tag id={isAnchor ? id : undefined} class={`m-5 py-2 text-center font-bold text-6xl`}>
<Tag id={isAnchor ? id : undefined} class={`m-5 py-2 text-center font-bold max-w-[90vw]`}>
{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>

<style>
h1 {
font-size: calc(1.9rem + 1.5vw + 0.8vh);
}

h2 {
font-size: calc(1.75rem + 1.5vw + 0.8vh);
}

h3 {
font-size: calc(1.5rem + 1.2vw + 0.6vh);
}

h4 {
font-size: calc(1.25rem + 1vw + 0.4vh);
}

h5 {
font-size: calc(1rem + 0.8vw + 0.3vh);
}

h6 {
font-size: calc(0.875rem + 0.6vw + 0.2vh);
}
</style>
14 changes: 14 additions & 0 deletions src/components/ui/Markdown.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
import { marked } from 'marked';

interface Props {
content: string;
}

const { content } = Astro.props;
const html = marked.parse(content);
---

<div class="prose prose-xl max-w-none" >
<article set:html={html} />
</div>
Loading