-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhero.scss
More file actions
165 lines (146 loc) · 4.39 KB
/
Copy pathhero.scss
File metadata and controls
165 lines (146 loc) · 4.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
@use 'sass:math';
$cube-size: 180px;
$cube-half: math.div($cube-size, 2);
.hero {
position: relative;
min-height: 100vh;
padding: 9rem 1.5rem 5rem;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(40, 40, 40, 0.6) 0%, transparent 60%),
#000;
}
.hero-grid {
position: absolute;
inset: 0;
background-image:
linear-gradient(to right, var(--grid) 1px, transparent 1px),
linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
background-size: 56px 56px;
mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
pointer-events: none;
}
.hero-glow {
position: absolute;
top: 35%;
left: 50%;
width: 700px;
height: 700px;
transform: translate(-50%, -50%);
background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
filter: blur(40px);
pointer-events: none;
}
.hero-noise {
position: absolute;
inset: 0;
pointer-events: none;
opacity: 0.35;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
mix-blend-mode: overlay;
}
.hero-content {
position: relative;
z-index: 2;
max-width: 920px;
width: 100%;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}
.hero-title {
font-size: clamp(2.5rem, 6.5vw, 5.25rem);
font-weight: 700;
letter-spacing: -0.045em;
line-height: 1;
background: linear-gradient(180deg, #ffffff 0%, #888888 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
&-dim {
background: linear-gradient(180deg, #999999 0%, #444444 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
}
.hero-sub {
margin-top: 1.5rem;
font-size: clamp(1rem, 1.6vw, 1.125rem);
color: var(--text-dim);
max-width: 620px;
line-height: 1.6;
}
.hero-actions {
margin-top: 2rem;
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
justify-content: center;
}
.hero-stage {
margin-top: 4.5rem;
position: relative;
width: 100%;
height: 260px;
display: flex;
align-items: center;
justify-content: center;
perspective: 1400px;
}
.hero-cube {
position: relative;
width: $cube-size;
height: $cube-size;
transform-style: preserve-3d;
transform: rotateX(-22deg) rotateY(36deg);
will-change: transform;
}
.cube-face {
position: absolute;
inset: 0;
width: $cube-size;
height: $cube-size;
background: linear-gradient(135deg, #1c1c1c 0%, #0a0a0a 100%);
border: 1px solid rgba(255, 255, 255, 0.14);
background-image:
linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 60%),
linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
background-size: 100% 100%, 30px 30px, 30px 30px;
box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.04);
&--front { transform: translateZ($cube-half); }
&--back { transform: rotateY(180deg) translateZ($cube-half); }
&--right { transform: rotateY(90deg) translateZ($cube-half); }
&--left { transform: rotateY(-90deg) translateZ($cube-half); }
&--top {
transform: rotateX(90deg) translateZ($cube-half);
background: linear-gradient(135deg, #2a2a2a 0%, #0f0f0f 100%);
background-image:
linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 70%),
linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
background-size: 100% 100%, 30px 30px, 30px 30px;
}
&--bottom {
transform: rotateX(-90deg) translateZ($cube-half);
background: linear-gradient(135deg, #050505 0%, #000 100%);
}
}
.hero-shadow {
position: absolute;
bottom: -10px;
left: 50%;
width: 280px;
height: 40px;
transform: translateX(-50%);
background: radial-gradient(ellipse, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
filter: blur(12px);
}
@media (max-width: 640px) {
.hero { padding-top: 7rem; }
}