hero: apply some carve style to the hero section
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/* File: components/HeroSection.module.css - Add this to your existing CSS */
|
||||
|
||||
.heroSection {
|
||||
position: relative;
|
||||
height: 100vh;
|
||||
@@ -11,6 +13,35 @@
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.heroSection::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: -10px;
|
||||
left: -5%;
|
||||
width: 110%;
|
||||
height: 80px;
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
border-radius: 100% 100% 0 0 / 100% 100% 0 0;
|
||||
transform: scaleX(1.3);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* Add this new code for the wavy bottom */
|
||||
.heroSection::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
background: #ffffff;
|
||||
border-radius: 100% 100% 0 0 / 100% 100% 0 0;
|
||||
transform: scaleX(1.5);
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
/* Keep all your existing styles below */
|
||||
|
||||
.heroContent {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
@@ -106,4 +137,3 @@
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user