@@ -4,32 +4,32 @@ import CountdownTimer from "./CountdownTimer";
4
4
---
5
5
6
6
<aside class =" reactgg-container container" >
7
- <div class =" reactgg-banner" >
8
- <a href =" https://react.gg?s=usehooks" class =" reactgg-header" >
9
- <img
10
- src ={ " /img/banner-sale-reactgg.svg" }
11
- alt =" react.gg - The interactive way to master modern React"
12
- class =" reactgg-headline"
7
+ <div class =" reactgg-banner" >
8
+ <a href =" https://react.gg?s=usehooks" class =" reactgg-header" >
9
+ <img
10
+ src ={ " /img/banner-sale-reactgg.svg" }
11
+ alt =" react.gg - The interactive way to master modern React"
12
+ class =" reactgg-headline"
13
+ />
14
+ </a >
15
+ <div class =" reactgg-spacer" ></div >
16
+ <div class =" reactgg-cta" >
17
+ <div class =" reactgg-cta-container" >
18
+ <h2 >react.gg Launch Sale</h2 >
19
+ <p >Up to 25% off through May 16th</p >
20
+ <CountdownTimer client:only targetDate =" 2025-05-16" />
21
+ <Button
22
+ text =" Join Now"
23
+ size =" small"
24
+ href =" https://react.gg?s=usehooks"
25
+ type =" link"
26
+ color =" yellow"
27
+ class =" join-now mt-4 mb-1 lg:mb-2 inline-block"
13
28
/>
14
- </a >
15
- <div class =" reactgg-spacer" ></div >
16
- <div class =" reactgg-cta" >
17
- <div class =" reactgg-cta-container" >
18
- <h2 >react.gg Launch Sale</h2 >
19
- <p >Up to 25% off through May 10th</p >
20
- <CountdownTimer targetDate =" 2025-05-10" />
21
- <Button
22
- text =" Join Now"
23
- size =" small"
24
- href =" https://react.gg?s=usehooks"
25
- type =" link"
26
- color =" yellow"
27
- class =" join-now mt-4 mb-1 lg:mb-2 inline-block"
28
- />
29
- </div >
30
29
</div >
31
30
</div >
32
- </aside >
31
+ </div >
32
+ </aside >
33
33
34
34
<style >
35
35
.reactgg-container {
@@ -43,7 +43,7 @@ import CountdownTimer from "./CountdownTimer";
43
43
background-color: var(--brand-charcoal);
44
44
border: 2px solid var(--brand-charcoal);
45
45
border-radius: 8px;
46
- box-shadow: .2rem .2rem 0 var(--brand-charcoal);
46
+ box-shadow: 0 .2rem 0 .2rem 0 var(--brand-charcoal);
47
47
overflow: hidden;
48
48
@media (min-width: 1024px) {
49
49
display: grid;
@@ -58,7 +58,7 @@ import CountdownTimer from "./CountdownTimer";
58
58
align-content: center;
59
59
height: 190px;
60
60
overflow: hidden;
61
- @media (min-width: 1024px) {
61
+ @media (min-width: 1024px) {
62
62
height: 280px;
63
63
grid-column: 1 / 3;
64
64
grid-row: 1;
@@ -77,7 +77,7 @@ import CountdownTimer from "./CountdownTimer";
77
77
background-color: var(--brand-green);
78
78
z-index: 0;
79
79
transform: skew(-7deg);
80
- @media (min-width: 1024px) {
80
+ @media (min-width: 1024px) {
81
81
display: block;
82
82
grid-column: 2;
83
83
grid-row: 1;
@@ -92,7 +92,7 @@ import CountdownTimer from "./CountdownTimer";
92
92
background-color: var(--brand-green);
93
93
color: var(--brand-charcoal);
94
94
z-index: 10;
95
- @media (min-width: 1024px) {
95
+ @media (min-width: 1024px) {
96
96
padding-bottom: 0;
97
97
grid-row: 1;
98
98
grid-column: 3;
@@ -108,25 +108,25 @@ import CountdownTimer from "./CountdownTimer";
108
108
109
109
h2 {
110
110
margin-top: 0;
111
- margin-bottom: 0.5rem;
111
+ margin-bottom: 0.5rem;
112
112
font-size: 1.25rem;
113
- line-height: 1.75rem;
114
- font-weight: 600;
113
+ line-height: 1.75rem;
114
+ font-weight: 600;
115
115
color: var(--brand-coal);
116
- @media (min-width: 1024px) {
116
+ @media (min-width: 1024px) {
117
117
font-size: 1.5rem;
118
118
line-height: 2rem;
119
119
}
120
- @media (min-width: 1280px) {
120
+ @media (min-width: 1280px) {
121
121
font-size: 1.875rem;
122
- line-height: 2.25rem;
122
+ line-height: 2.25rem;
123
123
}
124
124
}
125
125
126
126
h2 + p {
127
127
margin-top: 0;
128
- margin-bottom: 1.2rem;
129
- text-transform: none;
128
+ margin-bottom: 1.2rem;
129
+ text-transform: none;
130
130
font-size: 90%;
131
131
}
132
132
}
@@ -135,5 +135,4 @@ import CountdownTimer from "./CountdownTimer";
135
135
:global(.countdown-number) {
136
136
font-size: clamp(1rem, 4vw, 1.5rem);
137
137
}
138
-
139
138
</style >
0 commit comments