Skip to content

Commit 09a5ff1

Browse files
author
Dominique Chuo
committed
dark mode: suppoprt page icons
1 parent 3e4c17d commit 09a5ff1

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

src/pages/support.module.css

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
}
6464

6565
.cardIcon {
66-
width: 64px;
67-
height: 64px;
66+
width: 80px;
67+
height: 80px;
6868
margin: 0 auto 1.5rem;
6969
display: flex;
7070
align-items: center;
@@ -131,8 +131,8 @@
131131
}
132132

133133
.reifydbIcon img {
134-
width: 32px;
135-
height: 32px;
134+
width: 48px;
135+
height: 48px;
136136
object-fit: contain;
137137
}
138138

@@ -258,10 +258,14 @@
258258

259259
[data-theme='dark'] .cardIcon {
260260
background: #F8F8F7;
261-
color: #2A2A2A;
261+
color: #1A1A1A !important;
262262
border-color: #F8F8F7;
263263
}
264264

265+
[data-theme='dark'] .cardIcon svg {
266+
fill: #1A1A1A !important;
267+
}
268+
265269
[data-theme='dark'] .resourceItem {
266270
background: #2A2A2A;
267271
border-color: #F8F8F7;
@@ -280,7 +284,11 @@
280284
[data-theme='dark'] .commercialCard .cardIcon,
281285
[data-theme='dark'] .reifydbIcon {
282286
background: #F8F8F7;
283-
color: #2A2A2A;
287+
color: #1A1A1A !important;
288+
}
289+
290+
[data-theme='dark'] .reifydbIcon img {
291+
filter: brightness(0) saturate(100%);
284292
}
285293

286294
[data-theme='dark'] .additionalResources {

src/pages/support.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function Support(): JSX.Element {
1616
<div className={styles.supportGrid}>
1717
<div className={styles.supportCard + ' ' + styles.commercialCard}>
1818
<div className={styles.cardIcon + ' ' + styles.reifydbIcon}>
19-
<img src="/img/logo.png" alt="ReifyDB" width="32" height="32" />
19+
<img src="/img/logo.png" alt="ReifyDB" width="48" height="48" />
2020
</div>
2121
<h2 className={styles.cardTitle}>Commercial Support</h2>
2222
<p className={styles.cardDescription}>
@@ -37,7 +37,7 @@ export default function Support(): JSX.Element {
3737

3838
<div className={styles.supportCard}>
3939
<div className={styles.cardIcon}>
40-
<svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor">
40+
<svg width="40" height="40" viewBox="0 0 24 24" fill="currentColor">
4141
<path d="M20.317 4.492c-1.53-.69-3.17-1.2-4.885-1.49a.075.075 0 0 0-.079.037c-.21.369-.444.85-.608 1.23a18.566 18.566 0 0 0-5.487 0 12.36 12.36 0 0 0-.617-1.23A.077.077 0 0 0 8.562 3c-1.714.29-3.354.8-4.885 1.491a.07.07 0 0 0-.032.027C.533 9.093-.32 13.555.099 17.961a.08.08 0 0 0 .031.055 20.03 20.03 0 0 0 5.993 2.98.078.078 0 0 0 .084-.026 13.83 13.83 0 0 0 1.226-1.963.074.074 0 0 0-.041-.104 13.201 13.201 0 0 1-1.872-.878.075.075 0 0 1-.008-.125c.126-.093.252-.19.372-.287a.075.075 0 0 1 .078-.01c3.927 1.764 8.18 1.764 12.061 0a.075.075 0 0 1 .079.009c.12.098.245.195.372.288a.075.075 0 0 1-.006.125c-.598.344-1.22.635-1.873.877a.075.075 0 0 0-.041.105c.36.687.772 1.341 1.225 1.962a.077.077 0 0 0 .084.028 19.963 19.963 0 0 0 6.002-2.981.076.076 0 0 0 .032-.054c.5-5.094-.838-9.52-3.549-13.442a.06.06 0 0 0-.031-.028zM8.02 15.278c-1.182 0-2.157-1.069-2.157-2.38 0-1.312.956-2.38 2.157-2.38 1.21 0 2.176 1.077 2.157 2.38 0 1.312-.956 2.38-2.157 2.38zm7.975 0c-1.183 0-2.157-1.069-2.157-2.38 0-1.312.955-2.38 2.157-2.38 1.21 0 2.176 1.077 2.157 2.38 0 1.312-.946 2.38-2.157 2.38z"/>
4242
</svg>
4343
</div>
@@ -52,7 +52,7 @@ export default function Support(): JSX.Element {
5252

5353
<div className={styles.supportCard}>
5454
<div className={styles.cardIcon}>
55-
<svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor">
55+
<svg width="40" height="40" viewBox="0 0 24 24" fill="currentColor">
5656
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>
5757
</svg>
5858
</div>
@@ -67,7 +67,7 @@ export default function Support(): JSX.Element {
6767

6868
<div className={styles.supportCard}>
6969
<div className={styles.cardIcon}>
70-
<svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor">
70+
<svg width="40" height="40" viewBox="0 0 24 24" fill="currentColor">
7171
<path d="M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2m0 2v12h16V6H4m8 3a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m0 2a1 1 0 0 0-1 1a1 1 0 0 0 1 1a1 1 0 0 0 1-1a1 1 0 0 0-1-1z"/>
7272
</svg>
7373
</div>
@@ -82,7 +82,7 @@ export default function Support(): JSX.Element {
8282

8383
<div className={styles.supportCard}>
8484
<div className={styles.cardIcon}>
85-
<svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor">
85+
<svg width="40" height="40" viewBox="0 0 24 24" fill="currentColor">
8686
<path d="M22.46 6c-.85.38-1.75.65-2.71.77 1-.6 1.76-1.55 2.12-2.68-.93.55-1.96.95-3.06 1.17-.88-.94-2.13-1.53-3.51-1.53-2.66 0-4.81 2.16-4.81 4.81 0 .38.04.75.13 1.1-4-.2-7.58-2.11-9.96-5.02-.42.72-.66 1.56-.66 2.46 0 1.68.85 3.16 2.14 4.02-.79-.02-1.53-.24-2.18-.6v.06c0 2.35 1.67 4.31 3.88 4.76-.4.1-.83.16-1.27.16-.31 0-.62-.03-.92-.08.63 1.96 2.45 3.39 4.61 3.43-1.69 1.32-3.83 2.1-6.15 2.1-.4 0-.8-.02-1.19-.07 2.19 1.4 4.78 2.22 7.57 2.22 9.07 0 14.02-7.52 14.02-14.02 0-.21 0-.41-.01-.61.96-.69 1.79-1.56 2.45-2.55-.88.39-1.83.65-2.82.77z"/>
8787
</svg>
8888
</div>

0 commit comments

Comments
 (0)