File tree Expand file tree Collapse file tree 4 files changed +14
-22
lines changed Expand file tree Collapse file tree 4 files changed +14
-22
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
import LanguagePicker from ' ../components/LanguagePicker.astro'
3
+
4
+ import { MAIN_BACKGROUND_COLOR } from ' @/consts' ;
3
5
---
4
6
5
7
<header class =" hero" >
@@ -9,10 +11,10 @@ import LanguagePicker from '../components/LanguagePicker.astro'
9
11
</div >
10
12
</header >
11
13
12
- <style >
14
+ <style define:vars = { { mainBackgroundColor: MAIN_BACKGROUND_COLOR } } >
13
15
/* Hero Section */
14
16
.hero {
15
- background: linear-gradient(110deg, #9ebd13 0%, #069700 100%);
17
+ background: linear-gradient(110deg, #9ebd13 0%, var(--mainBackgroundColor) 100%);
16
18
color: #fff;
17
19
text-align: center;
18
20
Original file line number Diff line number Diff line change @@ -3,5 +3,6 @@ import { base } from "astro:config/client"
3
3
4
4
import { DOMAIN } from "./_domain.js" with { type : "macro" }
5
5
6
-
7
6
export const BASE_URL = ufo . joinURL ( DOMAIN , base )
7
+
8
+ export const MAIN_BACKGROUND_COLOR = `#069700` ;
Original file line number Diff line number Diff line change 2
2
import Layout from ' ../layouts/Layout.astro' ;
3
3
import VenueMap from ' ../components/VenueMap.astro' ;
4
4
import AnnouncementSlides from ' ../components/AnnouncementSlides.astro' ;
5
+
6
+ import { MAIN_BACKGROUND_COLOR } from ' @/consts' ;
5
7
---
6
8
7
9
<Layout lang =" en" >
@@ -80,7 +82,7 @@ import AnnouncementSlides from '../components/AnnouncementSlides.astro';
80
82
</section >
81
83
</Layout >
82
84
83
- <style >
85
+ <style define:vars = { { mainBackgroundColor: MAIN_BACKGROUND_COLOR } } >
84
86
h3 {
85
87
font-size: 1.2rem;
86
88
}
@@ -122,7 +124,7 @@ section + section {
122
124
/* Contact Button */
123
125
.btn {
124
126
display: inline-block;
125
- background-color: #069700 ;
127
+ background-color: var(--mainBackgroundColor) ;
126
128
color: #fff;
127
129
padding: 12px 20px;
128
130
border-radius: 4px;
Original file line number Diff line number Diff line change 2
2
import Layout from ' ../layouts/Layout.astro' ;
3
3
import VenueMap from ' ../components/VenueMap.astro' ;
4
4
import AnnouncementSlides from ' ../components/AnnouncementSlides.astro' ;
5
+
6
+ import { MAIN_BACKGROUND_COLOR } from ' @/consts' ;
5
7
---
6
8
7
9
<Layout >
@@ -83,7 +85,7 @@ import AnnouncementSlides from '../components/AnnouncementSlides.astro';
83
85
</section >
84
86
</Layout >
85
87
86
- <style >
88
+ <style define:vars = { { mainBackgroundColor: MAIN_BACKGROUND_COLOR } } >
87
89
h3 {
88
90
font-size: 1.2rem;
89
91
}
96
98
padding: 24px 0;
97
99
}
98
100
99
- /* Hero Section */
100
- .hero {
101
- background: linear-gradient(110deg, #9ebd13 0%, #069700 100%);
102
- color: #fff;
103
- text-align: center;
104
-
105
- h1 {
106
- font-size: 4rem;
107
- margin-bottom: 16px;
108
- font-family: "Cardo", serif;
109
- font-weight: 400;
110
- font-style: italic;
111
- }
112
- }
113
-
114
101
/* Section Title */
115
102
.section-title {
116
103
font-size: 2.4rem;
@@ -139,7 +126,7 @@ section + section {
139
126
/* Contact Button */
140
127
.btn {
141
128
display: inline-block;
142
- background-color: #069700 ;
129
+ background-color: var(--mainBackgroundColor) ;
143
130
color: #fff;
144
131
padding: 12px 20px;
145
132
border-radius: 4px;
You can’t perform that action at this time.
0 commit comments