This repository was archived by the owner on Feb 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
components/organisms/Hero Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default function Hero({
31
31
className = { cn ( styles . hero , className ) }
32
32
style = { {
33
33
// These css custom properties are used inside the css module file to set the card's background image, tint overlay, and fallback bg color.
34
- '--image-url' : `url(${ backgroundImage } )` ,
34
+ '--image-url' : `url(${ backgroundImage . url } )` ,
35
35
'--image-tint-color' : `#00000020` ,
36
36
'--image-fallback-color' : `#000`
37
37
} }
@@ -56,7 +56,7 @@ export default function Hero({
56
56
}
57
57
58
58
Hero . propTypes = {
59
- backgroundImage : PropTypes . string ,
59
+ backgroundImage : PropTypes . object ,
60
60
body : PropTypes . string ,
61
61
className : PropTypes . string ,
62
62
ctaText : PropTypes . string ,
Original file line number Diff line number Diff line change 1
1
.hero {
2
- @apply container px-32 rounded;
2
+ @apply mb-12 container px-32 rounded;
3
3
4
4
padding-top : 9.125rem ;
5
5
padding-bottom : 9.5rem ;
10
10
background-size : cover;
11
11
12
12
& .content {
13
- /* & .subtitle {
13
+ & .subtitle {
14
+ @apply text-sm opacity-80 mb-2 text-white;
14
15
}
16
+
15
17
& .title {
18
+ @apply font-bold text-xl mb-4 text-white;
16
19
}
20
+
17
21
& .body {
18
- } */
22
+ @apply text-white;
23
+ }
19
24
20
25
& .body + .button {
21
26
@apply mt-16;
You can’t perform that action at this time.
0 commit comments