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() {
42
42
43
43
return ( < >
44
44
< div className = "hero" >
45
+ < span className = "hero-background" />
46
+
45
47
< div className = "content" >
46
48
< div className = "brand" >
47
49
< div className = "brand-logo" >
@@ -53,6 +55,7 @@ export function Hero() {
53
55
It's about Logic not Syntax
54
56
</ div >
55
57
</ div >
58
+
56
59
< div className = "actions" >
57
60
{
58
61
actions . map ( ( action , index ) => < HeroCard
Original file line number Diff line number Diff line change 7
7
height : 100vh ;
8
8
}
9
9
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
+
10
37
.content {
11
38
display : flex;
12
39
flex-direction : column;
Original file line number Diff line number Diff line change 1
1
: root {
2
- --color-primary : # FF7E47 ;
3
- --color-secondary : # A15EFF ;
2
+ --color-primary : # A15EFF ;
3
+ --color-secondary : # D65EBA ;
4
+ --color-tertiary : # FF7E47 ;
4
5
5
6
--color-black : # 000000 ;
6
7
--color-white : # FFFFFF ;
10
11
--color-success : # 4CAF50 ;
11
12
--color-warning : # FF9800 ;
12
13
13
- --color-background : # 2A2A30 ;
14
+ --color-background : # 111111 ;
14
15
}
15
16
You can’t perform that action at this time.
0 commit comments