Skip to content

Commit a1a4940

Browse files
committed
fix cta dark mode
1 parent 7524fde commit a1a4940

2 files changed

Lines changed: 29 additions & 17 deletions

File tree

src/components/CallToAction/index.tsx

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,11 @@ export default function CallToAction(): React.JSX.Element {
1111
<div className="col col--6 d-flex align-items-center">
1212
<div>
1313
<h2 className={styles.header}>When Your Project Demands More</h2>
14-
<p
15-
style={{
16-
fontSize: "1.1rem",
17-
lineHeight: "1.6",
18-
marginBottom: "1rem",
19-
color: "#666",
20-
}}
21-
>
14+
<p className={`${styles.description} ${styles.first}`}>
2215
Postcodes.io is our free and reliable tool for UK postcode
2316
lookup and geocoding.
2417
</p>
25-
<p
26-
style={{
27-
fontSize: "1.1rem",
28-
lineHeight: "1.6",
29-
marginBottom: "2rem",
30-
color: "#666",
31-
}}
32-
>
18+
<p className={`${styles.description} ${styles.second}`}>
3319
When you need broader coverage, fresher and more detailed
3420
address data, and expert support, Ideal Postcodes is built for
3521
high-demand applications.

src/components/CallToAction/styles.module.css

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142

143143
[data-theme='dark'] .card {
144144
background-color: rgba(66, 133, 244, 0.15);
145-
color: #ffffff;
145+
color: #e0e0e0;
146146
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
147147
}
148148

@@ -156,4 +156,30 @@
156156

157157
[data-theme='dark'] .tickList li::before {
158158
color: #5c9eff;
159+
}
160+
161+
[data-theme='dark'] .tickList li {
162+
color: #b8b8b8;
163+
}
164+
165+
[data-theme='dark'] .cardTitle {
166+
color: #e0e0e0;
167+
}
168+
169+
.description {
170+
font-size: 1.1rem;
171+
line-height: 1.6;
172+
color: #666;
173+
}
174+
175+
.description.first {
176+
margin-bottom: 1rem;
177+
}
178+
179+
.description.second {
180+
margin-bottom: 2rem;
181+
}
182+
183+
[data-theme='dark'] .description {
184+
color: #b8b8b8;
159185
}

0 commit comments

Comments
 (0)