Skip to content

Commit ea570a3

Browse files
committed
Theme Changes
1 parent 5df88e3 commit ea570a3

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

src/components/Hero/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

src/components/Hero/style.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,33 @@
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;

src/styles/variables.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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;
@@ -10,6 +11,6 @@
1011
--color-success: #4CAF50;
1112
--color-warning: #FF9800;
1213

13-
--color-background: #2A2A30;
14+
--color-background: #111111;
1415
}
1516

0 commit comments

Comments
 (0)