Skip to content

Commit e0ce1ab

Browse files
committed
Simple border changes
1 parent ea570a3 commit e0ce1ab

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

src/components/Hero/style.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,40 @@
55
justify-content: center;
66
gap: 4rem;
77
height: 100vh;
8+
position: relative;
9+
10+
--gradient-height: 1.5rem;
11+
}
12+
13+
.hero::before {
14+
content: '';
15+
position: absolute;
16+
top: 100%;
17+
left: 0;
18+
width: 100%;
19+
height: var(--gradient-height);
20+
z-index: -1;
21+
background: linear-gradient(
22+
to right,
23+
var(--color-secondary),
24+
var(--color-tertiary)
25+
);
26+
}
27+
28+
.hero::after {
29+
content: '';
30+
position: absolute;
31+
top: 100%;
32+
left: 0;
33+
width: 100%;
34+
height: var(--gradient-height);
35+
z-index: -1;
36+
background: linear-gradient(
37+
to bottom,
38+
transparent,
39+
transparent 50%,
40+
var(--color-background)
41+
);
842
}
943

1044
.hero-background {

0 commit comments

Comments
 (0)