This repository was archived by the owner on Feb 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +225
-228
lines changed
components/organisms/Hero Expand file tree Collapse file tree 3 files changed +225
-228
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export default function Hero({
33
33
className = { cn ( styles . hero , className ) }
34
34
style = { {
35
35
// These css custom properties are used inside the css module file to set the card's background image, tint overlay, and fallback bg color.
36
- '--image-url' : `url(${ backgroundImage . url } )` ,
36
+ '--image-url' : `url(${ backgroundImage } )` ,
37
37
'--image-tint-color' : `${ tailwindConfig . theme . colors . black [ 'DEFAULT' ] } 50` ,
38
38
'--image-fallback-color' : `${ tailwindConfig . theme . colors . grey [ 'darkest' ] } `
39
39
} }
@@ -58,10 +58,7 @@ export default function Hero({
58
58
}
59
59
60
60
Hero . propTypes = {
61
- backgroundImage : PropTypes . shape ( {
62
- url : PropTypes . string ,
63
- alt : PropTypes . string
64
- } ) ,
61
+ backgroundImage : PropTypes . string ,
65
62
body : PropTypes . string ,
66
63
className : PropTypes . string ,
67
64
ctaText : PropTypes . string ,
Original file line number Diff line number Diff line change 47
47
"devDependencies" : {
48
48
"@apollo/client" : " ^3.3.7" ,
49
49
"@babel/core" : " ^7.12.10" ,
50
- "@storybook/addon-a11y" : " ^6.1.15 " ,
51
- "@storybook/addon-essentials" : " ^6.1.15 " ,
52
- "@storybook/addon-links" : " ^6.1.15 " ,
53
- "@storybook/react" : " ^6.1.15 " ,
50
+ "@storybook/addon-a11y" : " ^6.1.16 " ,
51
+ "@storybook/addon-essentials" : " ^6.1.16 " ,
52
+ "@storybook/addon-links" : " ^6.1.16 " ,
53
+ "@storybook/react" : " ^6.1.16 " ,
54
54
"algoliasearch" : " ^4.8.4" ,
55
55
"babel-loader" : " ^8.2.2" ,
56
56
"chromatic" : " ^5.6.1" ,
68
68
"husky" : " ^4.3.8" ,
69
69
"lint-staged" : " ^10.5.3" ,
70
70
"next-seo" : " ^4.18.0" ,
71
- "next-sitemap" : " ^1.4.15 " ,
71
+ "next-sitemap" : " ^1.4.17 " ,
72
72
"postcss-flexbugs-fixes" : " ^4.2.1" ,
73
73
"postcss-preset-env" : " ^6.7.0" ,
74
74
"prettier" : " ^2.2.1" ,
You can’t perform that action at this time.
0 commit comments