Skip to content

Commit 47d75c5

Browse files
committed
Update style.
1 parent 358751f commit 47d75c5

File tree

5 files changed

+30
-42
lines changed

5 files changed

+30
-42
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@
1616
"@astrojs/mdx": "^4.2.3",
1717
"@astrojs/react": "^4.2.3",
1818
"@astrojs/sitemap": "^3.3.0",
19-
"@astrojs/tailwind": "^5.1.4",
20-
"@fontsource-variable/inter": "^5.1.1",
19+
"@astrojs/tailwind": "^5.1.5",
20+
"@fontsource-variable/inter": "^5.2.5",
2121
"@fortawesome/fontawesome-free": "^6.7.2",
2222
"@tailwindcss/typography": "^0.5.16",
2323
"@types/react": "^19.1.0",
2424
"@types/react-dom": "^19.1.1",
25-
"astro": "^5.1.6",
25+
"astro": "^5.5.2",
2626
"astro-delete-unused-images": "^1.0.3",
2727
"astro-meta-tags": "^0.3.1",
28-
"astro-pagefind": "^1.8.1",
28+
"astro-pagefind": "^1.8.3",
2929
"astro-preload": "^1.1.2",
3030
"clsx": "^2.1.1",
3131
"date-fns": "^4.1.0",
3232
"date-fns-tz": "^3.2.0",
33-
"hastscript": "^9.0.0",
33+
"hastscript": "^9.0.1",
3434
"js-yaml": "^4.1.0",
3535
"marked": "^15.0.7",
3636
"pagefind": "^1.3.0",
@@ -45,7 +45,7 @@
4545
},
4646
"devDependencies": {
4747
"@types/js-yaml": "^4.0.9",
48-
"prettier": "^3.4.2",
48+
"prettier": "^3.5.3",
4949
"prettier-plugin-astro": "^0.14.1"
5050
},
5151
"prettier": {

pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/schedule/break.astro

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,27 @@ export interface Props {
88
const { time, title, style }: Props = Astro.props;
99
---
1010

11-
<div class="break" style={style}>
11+
<div class="break" style={style} aria-label=`${time} ${title}` >
1212
{time}{" "}
1313
{title}
14+
<span class="sr-only">{time} {title}</span>
1415
</div>
1516

1617
<style>
1718
.break {
18-
background: var(--color-session-neutral);
19-
color: var(--color-text);
19+
/*background: var(--color-session-neutral);*/
20+
/*color: var(--color-text);*/
2021
display: flex;
2122
align-items: center;
2223
text-align: center;
2324
justify-items: center;
2425
/*font-weight: bold;*/
2526
padding-left: 8px;
26-
font-size:1rem;
27+
font-size:2rem;
2728
background-color: #FCFBFA;
29+
color: #fff;
30+
text-shadow:
31+
1px 1px 0 #e3bd97,
32+
2px 2px 5px #613e1a90;
2833
}
2934
</style>

src/content/config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,15 @@ const sessions = defineCollection({
191191

192192
const days = defineCollection({
193193
loader: async (): Promise<any[]> => {
194-
const rawSchedule = await loadData(import.meta.env.EP_SCHEDULE_API);
195-
const schedule = rawSchedule.default ?? rawSchedule;
194+
const schedule = await loadData(import.meta.env.EP_SCHEDULE_API);
196195

197196
return Object.entries(schedule.days).map(([date, data]: [string, any]) => ({
198197
id: date,
199198
...data,
200199
}));
201200
},
202201
schema: z.object({
203-
id: z.string(), // the date, like "2024-07-08"
202+
id: z.string(),
204203
rooms: z.array(z.string()).optional(),
205204
events: z.array(
206205
z.object({

src/layouts/ScheduleLayout.astro

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
import Header from "../components/header/header.astro";
3-
import Footer from "../components/footer.astro";
4-
import BaseHead from "../components/BaseHead.astro";
2+
import Layout from "@layouts/Layout.astro";
53
64
export interface Props {
75
title: string;
@@ -11,36 +9,22 @@ export interface Props {
119
const { title, description } = Astro.props;
1210
---
1311

14-
<!doctype html>
15-
<html lang="en">
16-
<head>
17-
<BaseHead title={title} description={description} />
18-
12+
<Layout title="Schedule" description="Schedule" >
13+
<Fragment slot="head">
1914
<link rel="preconnect" href="https://fonts.googleapis.com">
2015
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2116

2217
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Sofia+Sans+Condensed:ital,wght@0,1..1000;1,1..1000&display=swap" rel="stylesheet">
2318

2419
<link href="https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Sofia+Sans+Condensed:ital,wght@0,1..1000;1,1..1000&display=swap" rel="stylesheet">
25-
2620
</head>
2721

28-
<div class="flex flex-col items-stretch min-h-screen">
29-
<a href="#main-content" class="sr-only"> Skip to main content</a>
30-
31-
<Header />
32-
33-
<main id="main-content" class="layout-wrapper2 overflow-x-clip">
34-
<slot />
35-
</main>
36-
37-
<div class="mt-auto">
38-
<Footer />
39-
</div>
22+
<div class="layout-wrapper2">
23+
<slot />
4024
</div>
41-
</html>
25+
</Layout>
4226

43-
<style>
27+
<style is:global>
4428
.layout-wrapper2 {
4529
max-width: 800px;
4630
margin:auto;

0 commit comments

Comments
 (0)