File tree Expand file tree Collapse file tree 3 files changed +34
-3
lines changed Expand file tree Collapse file tree 3 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ export function Hero() {
4242
4343 return ( < >
4444 < div className = "hero" >
45+ < span className = "hero-background" />
46+
4547 < div className = "content" >
4648 < div className = "brand" >
4749 < div className = "brand-logo" >
@@ -53,6 +55,7 @@ export function Hero() {
5355 It's about Logic not Syntax
5456 </ div >
5557 </ div >
58+
5659 < div className = "actions" >
5760 {
5861 actions . map ( ( action , index ) => < HeroCard
Original file line number Diff line number Diff line change 77 height : 100vh ;
88}
99
10+ .hero-background {
11+ position : absolute;
12+ padding : 1rem ;
13+ left : 0 ;
14+ top : 0 ;
15+ height : 100% ;
16+ width : 100% ;
17+ aspect-ratio : 1 ;
18+ z-index : -1 ;
19+ pointer-events : none;
20+ background : linear-gradient (
21+ to bottom right,
22+ var (--color-primary ),
23+ var (--color-secondary ),
24+ var (--color-tertiary )
25+ );
26+ }
27+
28+ .hero-background ::before {
29+ content : '' ;
30+ display : block;
31+ width : 100% ;
32+ height : 100% ;
33+ border-radius : 1rem ;
34+ background : var (--color-background );
35+ }
36+
1037.content {
1138 display : flex;
1239 flex-direction : column;
Original file line number Diff line number Diff line change 11: root {
2- --color-primary : # FF7E47 ;
3- --color-secondary : # A15EFF ;
2+ --color-primary : # A15EFF ;
3+ --color-secondary : # D65EBA ;
4+ --color-tertiary : # FF7E47 ;
45
56 --color-black : # 000000 ;
67 --color-white : # FFFFFF ;
1011 --color-success : # 4CAF50 ;
1112 --color-warning : # FF9800 ;
1213
13- --color-background : # 2A2A30 ;
14+ --color-background : # 111111 ;
1415}
1516
You can’t perform that action at this time.
0 commit comments