Skip to content

Commit e4c299e

Browse files
committed
Adjust the theme to the EPS one
- Using Libre Baskerville and Fira Sans - Getting primary color to #D95736 - Add EPS logo
1 parent d70f340 commit e4c299e

5 files changed

Lines changed: 29 additions & 6 deletions

File tree

public/img/eps-logo.png

17.1 KB
Loading

scripts/templates/base.html

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,32 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>ConferenceStats{% if title %} · {{ title }}{% endif %}</title>
7+
<!-- EuroPython Society brand fonts: Fira Sans (body) + Libre Baskerville (headings) -->
8+
<link rel="preconnect" href="https://fonts.googleapis.com" />
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
10+
<link
11+
href="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;700&family=Libre+Baskerville:wght@400;700&display=swap"
12+
rel="stylesheet"
13+
/>
714
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
815
<style type="text/tailwindcss">
916
/* Class based dark mode */
1017
@variant dark (&:where(.dark, .dark *));
18+
19+
/* EuroPython Society brand: primary accent color (used for links/URLs)
20+
and font pairing, matching https://www.europython-society.org/ */
21+
@theme {
22+
--color-brand: #D95736;
23+
--color-brand-active: #BF4526;
24+
}
25+
26+
body {
27+
font-family: 'Fira Sans', ui-sans-serif, system-ui, sans-serif;
28+
}
29+
30+
h1, h2 {
31+
font-family: 'Libre Baskerville', Georgia, serif;
32+
}
1133
</style>
1234
<script>
1335
if (localStorage.getItem('dark-mode') === 'true' || (!('dark-mode' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
@@ -107,8 +129,9 @@
107129
<!-- navbar -->
108130
<header class="sticky top-0 inset-x-0 flex flex-wrap md:justify-start md:flex-nowrap z-50 w-full text-sm">
109131
<nav x-data="{ mobileMenuOpen: false }" class="mt-4 relative max-w-6xl w-full bg-white/80 backdrop-blur border border-gray-200 rounded-[14px] mx-2 px-5 flex flex-wrap md:flex-nowrap items-center justify-between p-1 ps-4 md:py-0 sm:mx-auto dark:bg-neutral-900/80 dark:border-neutral-700 shadow-sm">
110-
<a href="index.html" class="text-black dark:text-white text-xl">
111-
Conference<span class="text-yellow-600 dark:text-yellow-400">Stats</span>
132+
<a href="index.html" class="flex items-center gap-2 text-black dark:text-white text-xl">
133+
<img src="img/eps-logo.png" alt="EuroPython Society logo" class="size-8 rounded-full" />
134+
Conference<span class="text-brand">Stats</span>
112135
</a>
113136

114137
<div class="flex items-center md:order-last">

scripts/templates/base_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h2 class="block font-medium text-black dark:text-gray-200 text-xl sm:text-2xl p
3939
up.
4040
</p>
4141
<p>
42-
<a href="{{ repo_url }}" target="_blank" rel="noopener" class="text-blue-700 dark:text-yellow-400 hover:underline">
42+
<a href="{{ repo_url }}" target="_blank" rel="noopener" class="text-brand hover:text-brand-active hover:underline">
4343
Read the full contribution guide and open an issue or pull request on GitHub →
4444
</a>
4545
</p>

scripts/templates/base_speakers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h2 class="block font-medium text-black dark:text-gray-200 text-xl sm:text-2xl m
2626
<td class="border border-gray-200 dark:border-neutral-700 p-3" x-text="speaker.conference"></td>
2727
<td class="border border-gray-200 dark:border-neutral-700 p-3">
2828
<template x-if="speaker.url">
29-
<a :href="speaker.url" target="_blank" rel="noopener" class="text-blue-700 dark:text-yellow-400 hover:underline" x-text="speaker.fullname"></a>
29+
<a :href="speaker.url" target="_blank" rel="noopener" class="text-brand hover:text-brand-active hover:underline" x-text="speaker.fullname"></a>
3030
</template>
3131
<template x-if="!speaker.url">
3232
<span x-text="speaker.fullname"></span>

scripts/templates/base_sponsors.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h2 class="block font-medium text-black dark:text-gray-200 text-xl sm:text-2xl m
3333
<template x-for="(sponsor, i) in paginated" :key="i">
3434
<tr class="odd:bg-white even:bg-gray-50 dark:odd:bg-neutral-900 dark:even:bg-neutral-800/50 hover:bg-yellow-50 dark:hover:bg-neutral-800 transition-colors">
3535
<td class="border border-gray-200 dark:border-neutral-700 p-3">
36-
<a :href="sponsor.website" target="_blank" rel="noopener" class="text-blue-700 dark:text-yellow-400 hover:underline" x-text="sponsor.name"></a>
36+
<a :href="sponsor.website" target="_blank" rel="noopener" class="text-brand hover:text-brand-active hover:underline" x-text="sponsor.name"></a>
3737
</td>
3838
<td class="border border-gray-200 dark:border-neutral-700 p-3 text-right tabular-nums" x-text="formatAmount(sponsor.total)"></td>
3939
</tr>
@@ -69,7 +69,7 @@ <h2 class="block font-medium text-black dark:text-gray-200 text-xl sm:text-2xl m
6969
<td class="border border-gray-200 dark:border-neutral-700 p-3" x-text="sponsor.year"></td>
7070
<td class="border border-gray-200 dark:border-neutral-700 p-3" x-text="sponsor.conference"></td>
7171
<td class="border border-gray-200 dark:border-neutral-700 p-3">
72-
<a :href="sponsor.website" target="_blank" rel="noopener" class="text-blue-700 dark:text-yellow-400 hover:underline" x-text="sponsor.name"></a>
72+
<a :href="sponsor.website" target="_blank" rel="noopener" class="text-brand hover:text-brand-active hover:underline" x-text="sponsor.name"></a>
7373
</td>
7474
<td class="border border-gray-200 dark:border-neutral-700 p-3 text-right tabular-nums" x-text="formatAmount(sponsor.amount)"></td>
7575
</tr>

0 commit comments

Comments
 (0)