Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 5ff5091

Browse files
committed
Move hero styles to css modules file
1 parent bc67048 commit 5ff5091

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

components/organisms/Hero/Hero.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function Hero({
3131
className={cn(styles.hero, className)}
3232
style={{
3333
// 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})`,
3535
'--image-tint-color': `#00000020`,
3636
'--image-fallback-color': `#000`
3737
}}
@@ -56,7 +56,7 @@ export default function Hero({
5656
}
5757

5858
Hero.propTypes = {
59-
backgroundImage: PropTypes.string,
59+
backgroundImage: PropTypes.object,
6060
body: PropTypes.string,
6161
className: PropTypes.string,
6262
ctaText: PropTypes.string,

components/organisms/Hero/Hero.module.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.hero {
2-
@apply container px-32 rounded;
2+
@apply mb-12 container px-32 rounded;
33

44
padding-top: 9.125rem;
55
padding-bottom: 9.5rem;
@@ -10,12 +10,17 @@
1010
background-size: cover;
1111

1212
& .content {
13-
/* & .subtitle {
13+
& .subtitle {
14+
@apply text-sm opacity-80 mb-2 text-white;
1415
}
16+
1517
& .title {
18+
@apply font-bold text-xl mb-4 text-white;
1619
}
20+
1721
& .body {
18-
} */
22+
@apply text-white;
23+
}
1924

2025
& .body + .button {
2126
@apply mt-16;

0 commit comments

Comments
 (0)