Skip to content

Commit dd8ce59

Browse files
committed
dark theme for pages
1 parent 3ffc5d3 commit dd8ce59

6 files changed

Lines changed: 31 additions & 31 deletions

File tree

src/components/sessions/filter.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Select from "@ui/Select.astro";
1717
type="text"
1818
id="sessionSearch"
1919
name="search"
20-
class="block w-full bg-transparent text-lg h-16 py-2 pr-16 pl-4 border-[3px] border-primary appearance-none focus:outline-hidden focus:border-black focus-visible:bg-white"
20+
class="block w-full bg-transparent text-lg text-white h-16 py-2 pr-16 pl-4 border-[3px] border-white/20 focus:border-accent appearance-none focus:outline-hidden focus:border-accent focus-visible:bg-white/5"
2121
placeholder="Search sessions..."
2222
/>
2323
</div>

src/components/ui/Label.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { htmlFor } = Astro.props;
99

1010
<label
1111
for={htmlFor}
12-
class="block text-primary font-bold mb-4 pl-3 text-lg"
12+
class="block text-white/80 font-medium mb-2 text-sm"
1313
>
1414
<slot />
1515
</label>

src/components/ui/Select.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ interface Props {
88
const { id, name, defaultValue } = Astro.props;
99
1010
const selectClasses = [
11-
"block w-full bg-transparent text-lg h-16 py-2 pr-16 pl-4 border-[3px] border-primary appearance-none",
12-
"focus:outline-hidden focus:border-black focus-visible:bg-white"
11+
"block w-full bg-transparent text-lg text-white h-16 py-2 pr-16 pl-4 border-[3px] border-white/20 appearance-none",
12+
"focus:outline-hidden focus:border-accent focus-visible:bg-white/5"
1313
].join(" ");
1414
1515
const svgClasses = [
16-
"absolute top-1/2 -translate-y-1/2 w-6 h-6 pointer-events-none text-primary right-4"
16+
"absolute top-1/2 -translate-y-1/2 w-6 h-6 pointer-events-none text-white/40 right-4"
1717
].join(" ");
1818
---
1919

src/components/ui/Tag.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ interface Props {
77
const { className = "", href } = Astro.props;
88
99
const baseClasses = [
10-
"inline-block bg-secondary-light text-white px-4 py-2 rounded-xl font-bold",
11-
"hover:bg-secondary hover:text-white transition-colors",
10+
"inline-block bg-white/10 text-white/80 px-3 py-1 rounded font-medium text-sm",
11+
"hover:bg-accent hover:text-section-bg transition-colors",
1212
"duration-200 ease-in-out cursor-pointer"
1313
];
1414

src/pages/sessions.astro

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
import { getCollection } from "astro:content";
33
import Layout from "@layouts/Layout.astro";
44
import Prose from "@ui/Prose.astro";
5-
import Headline from "@ui/Headline.astro"
5+
import Title from "@ui/Title.astro";
6+
import Section2 from "@ui/Section2.astro";
67
import Filter from "@components/sessions/filter.astro";
78
import ListSessions from "@components/sessions/list-sessions.astro";
8-
import Section from "@ui/Section.astro";
99
1010
const sessions = await getCollection("sessions");
1111
@@ -26,18 +26,18 @@ const description = "A list of all the sessions at the conference";
2626
---
2727

2828
<Layout title={title} description={description}>
29-
<Section>
30-
<Headline id="sessions" as="h1" title="List of Sessions" />
29+
<Section2 id="sessions">
30+
<Title id="sessions">List of Sessions</Title>
3131
<Prose full>
3232
<p>Here you can find a list of all the sessions at the conference.</p>
3333
<p>You can filter the sessions by track, type, and level.</p>
3434
</Prose>
35-
<Headline id="filters" title="Filters" />
35+
<h2 class="text-xl font-semibold mb-4" id="filters">Filters</h2>
3636

3737
<Filter allTracks={allTracks} allTypes={allTypes} allLevels={allLevels} />
3838

39-
<Headline id="results" as="h2" title="Search results" />
39+
<h2 class="text-xl font-semibold mb-4" id="results">Search results</h2>
4040

4141
<ListSessions sessions={sessions} />
42-
</Section>
42+
</Section2>
4343
</Layout>

src/pages/speaker/[slug].astro

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import Layout from "@layouts/Layout.astro";
44
import Prose from "@ui/Prose.astro";
55
import { Image } from "astro:assets";
66
import Markdown from "@ui/Markdown.astro";
7-
import Headline from "@ui/Headline.astro";
8-
import Section from "@ui/Section.astro"
7+
import Title from "@ui/Title.astro";
8+
import Section2 from "@ui/Section2.astro"
99
import CodeHeart from "@components/island/CodeHeart.svelte";
1010
1111
@@ -85,14 +85,14 @@ function getGitHosting(url: string): string | undefined {
8585
---
8686

8787
<Layout title={entry.data.name} description={`Profile of ${entry.data.name}`}>
88-
<Section>
89-
<Headline as="h1" id="speaker" title={entry.data.name} />
88+
<Section2 variant="dark" id="speaker-page">
89+
<Title id="speaker">{entry.data.name}</Title>
9090

9191
<div class="md:grid grid-cols-[460px_1fr] md:gap-6">
9292
{
9393
( entry.data.avatar &&
9494
<div class="flex items-start">
95-
<div class="border-4 border-white rounded-lg shadow-lg inline-block mb-10">
95+
<div class="border border-white/10 rounded-lg inline-block mb-10">
9696
<Image
9797
src={entry.data.avatar}
9898
alt={entry.data.name}
@@ -109,7 +109,7 @@ function getGitHosting(url: string): string | undefined {
109109
{
110110
entry.data.biography ? (
111111
<>
112-
<h2 class="relative font-title text-primary font-bold mb-[0.6em] [&>a]:border-0 [&>a]:text-inherit text-5xl">
112+
<h2 class="relative font-heading text-white font-bold mb-[0.6em] [&>a]:border-0 [&>a]:text-inherit text-5xl">
113113
Biography
114114
</h2>
115115
<Prose full>
@@ -128,7 +128,7 @@ function getGitHosting(url: string): string | undefined {
128128
entry.data.mastodon_url ||
129129
entry.data.twitter_url ? (
130130
<div class="mb-4">
131-
<h2 class="relative font-title text-primary font-bold mb-[0.6em] [&>a]:border-0 [&>a]:text-inherit text-5xl">
131+
<h2 class="relative font-heading text-white font-bold mb-[0.6em] [&>a]:border-0 [&>a]:text-inherit text-5xl">
132132
More about the speaker
133133
</h2>
134134
<dl>
@@ -146,7 +146,7 @@ function getGitHosting(url: string): string | undefined {
146146
{isUrl(entry.data.homepage) ? (
147147
<a
148148
href={ensureHttps(entry.data.homepage)}
149-
class="text-primary underline hover:text-primary-hover"
149+
class="text-white/80 underline hover:text-accent"
150150
target="_blank"
151151
>
152152
{entry.data.homepage}
@@ -166,7 +166,7 @@ function getGitHosting(url: string): string | undefined {
166166
<dd>
167167
<a
168168
href={ensureHttps(entry.data.gitx_url)}
169-
class="text-primary underline hover:text-primary-hover"
169+
class="text-white/80 underline hover:text-accent"
170170
target="_blank"
171171
>
172172
{entry.data.gitx_url}
@@ -181,7 +181,7 @@ function getGitHosting(url: string): string | undefined {
181181
<dd>
182182
<a
183183
href={entry.data.linkedin_url}
184-
class="text-primary underline hover:text-primary-hover"
184+
class="text-white/80 underline hover:text-accent"
185185
target="_blank"
186186
>
187187
{getLinkedInUsername(entry.data.linkedin_url)}
@@ -196,7 +196,7 @@ function getGitHosting(url: string): string | undefined {
196196
<dd>
197197
<a
198198
href={entry.data.mastodon_url}
199-
class="text-primary underline hover:text-primary-hover"
199+
class="text-white/80 underline hover:text-accent"
200200
target="_blank"
201201
>
202202
{getMastodonUsername(entry.data.mastodon_url)}
@@ -211,7 +211,7 @@ function getGitHosting(url: string): string | undefined {
211211
<dd>
212212
<a
213213
href={entry.data.twitter_url}
214-
class="text-primary underline hover:text-primary-hover"
214+
class="text-white/80 underline hover:text-accent"
215215
target="_blank"
216216
>
217217
{getTwitterUsername(entry.data.twitter_url)}
@@ -225,7 +225,7 @@ function getGitHosting(url: string): string | undefined {
225225
<dd>
226226
<a
227227
href={getBlueskyProfileLink(getBlueskyUsername(entry.data.bluesky_url) as string)}
228-
class="text-primary underline hover:text-primary-hover"
228+
class="text-white/80 underline hover:text-accent"
229229
target="_blank"
230230
>
231231
{getBlueskyUsername(entry.data.bluesky_url)}
@@ -242,7 +242,7 @@ function getGitHosting(url: string): string | undefined {
242242
<br />
243243

244244
<h2
245-
class="relative font-title text-primary font-bold mb-[0.6em] [&>a]:border-0 [&>a]:text-inherit text-5xl"
245+
class="relative font-heading text-white font-bold mb-[0.6em] [&>a]:border-0 [&>a]:text-inherit text-5xl"
246246
>
247247
Session{sessions.length > 1 ? "s" : ""}
248248
</h2>
@@ -251,7 +251,7 @@ function getGitHosting(url: string): string | undefined {
251251
sessions.map((session) => (
252252
<li class="mb-2 text-xl leading-snug">
253253
<a
254-
class="text-primary hover:text-primary-hover font-title underline font-semibold"
254+
class="text-white/80 hover:text-accent underline font-semibold"
255255
href={`/session/${session.id}`}
256256
>
257257
{session.data.title}
@@ -267,15 +267,15 @@ function getGitHosting(url: string): string | undefined {
267267
))
268268
}
269269
</ul>
270-
</Section>
270+
</Section2>
271271
</Layout>
272272

273273
<style>
274274

275275
dl,
276276
dd, dt {
277277
font-size: 1.1rem;
278-
color: var(--color-text);
278+
color: var(--color-text-primary-dark, rgba(255,255,255,0.93));
279279
}
280280

281281
</style>

0 commit comments

Comments
 (0)