Skip to content

Commit 71e7edc

Browse files
committed
fix: css var 復活
1 parent eec7271 commit 71e7edc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: 2025/src/pages/[lang]/index.astro

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
import AnnouncementSlides from '@/components/AnnouncementSlides.astro';
33
import VenueMap from '@/components/VenueMap.astro';
4+
import { MAIN_BACKGROUND_COLOR } from '@/consts';
45
import { LANGUAGES, useTranslate } from '@/i18n';
6+
57
import Layout from '@/layouts/Layout.astro';
68
79
export function getStaticPaths() {
@@ -165,7 +167,7 @@ const t = useTranslate(lang);
165167
</section>
166168
</Layout>
167169

168-
<style>
170+
<style define:vars={{ mainBackgroundColor: MAIN_BACKGROUND_COLOR }}>
169171
h3 {
170172
font-size: 1.2rem;
171173
}

0 commit comments

Comments
 (0)