forked from recodehive/recode-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.css
More file actions
317 lines (275 loc) · 6.85 KB
/
header.css
File metadata and controls
317 lines (275 loc) · 6.85 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
.chh__header--body {
display: flex;
justify-content: center;
align-items: center;
transform-style: preserve-3d;
overflow: hidden;
padding: 3rem auto;
background-color: #fff;;
color: #000;
transition: background 0.4s ease, color 0.4s ease;
}
[data-theme='dark'] .chh__header--body {
background: linear-gradient(to right, #222121, #1d1b1b);
color: #fff;
}
.chh__header {
display: flex;
flex-direction: row;
position: relative;
gap: 2rem;
margin-left: 1rem;
}
.chh__header-content {
width: 100%;
flex: 1;
display: flex;
justify-content: center;
align-items: flex-start;
flex-direction: column;
margin-right: 2rem;
}
/* Updated heading styles to center the text and add spacing */
[data-theme='light'] .chh__header-content h1 {
font-weight: 700;
font-size: 56px;
line-height: 65px;
letter-spacing: -0.04em;
background: linear-gradient(
90deg,
#e44d26 0%, /* orange */
#f16529 30%, /* lighter orange */
#d16ba5 60%, /* pink */
#6a5acd 100% /* purple */
);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
transition: background 0.3s ease-in-out;
text-align: center; /* Center the heading text */
width: 100%; /* Ensure it takes full width for proper centering */
margin-top: 2rem; /* Push heading down for better spacing */
}
[data-theme='dark'] .chh__header-content h1 {
font-weight: 700;
font-size: 56px;
line-height: 65px;
letter-spacing: -0.04em;
background: linear-gradient(
135deg,
#a1c4fd 0%, /* soft sky blue (pops gently) */
#c2e9fb 25%, /* pastel cyan */
#d4a5f9 60%, /* muted lavender */
#fbc2eb 100% /* soft rose pink */
);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
transition: background 0.3s ease-in-out;
text-align: center; /* Center the heading text */
width: 100%; /* Ensure it takes full width for proper centering */
margin-top: 2rem; /* Push heading down for better spacing */
}
.chh__header-content p {
font-family: var(--font-family);
font-weight: 400;
font-size: 20px;
text-align: justify;
line-height: 30px;
margin-top: 1.5rem;
color: #333; /* Light mode text */
transition: color 0.3s ease-in-out;
}
/* Override paragraph color in dark mode */
[data-theme='dark'] .chh__header-content p {
color: #ccc; /* Softer white for dark mode */
}
html.theme-dark .chh__header-content p {
color: #ccc;
}
.chh__header-content__input {
width: 100%;
margin: 2rem 0 1rem;
display: flex;
flex-direction: row;
gap: 1rem;
}
.chh__header-content__input--link {
text-decoration: none;
font-size: 20px;
line-height: 28px;
font-weight: 600;
color: black;
}
.chh__header-content__input--link:hover {
text-decoration: none;
color:#121212;
}
.chh__header-content__input button {
flex: 1;
min-height: 56px;
font-weight: 600;
font-size: 18px;
border: none;
cursor: pointer;
outline: none;
border-radius: 12px;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
position: relative;
overflow: hidden;
z-index: 1;
}
.chh__header-content__input button::after {
content: "";
position: absolute;
top: 0;
left: -120%;
width: 200%;
height: 100%;
background: linear-gradient(
120deg,
rgba(255, 255, 255, 0.15) 0%,
rgba(255, 255, 255, 0.08) 30%,
transparent 60%
);
transform: skewX(-20deg);
transition: left 0.8s ease-in-out;
pointer-events: none;
}
.chh__header-content__input button:hover::after {
left: 100%;
}
.chh__header-content__input button:hover {
transform: scale(1.03); /* very subtle lift */
}
.chh__header-content__input button:first-child {
background: linear-gradient(135deg, #fda085 0%, #f6d365 100%);
}
.chh__header-content__input button:first-child:hover {
background: linear-gradient(135deg, #f76b1c 0%, #fca65f 100%);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
[data-theme='dark'] .chh__header-content__input button:first-child {
background: linear-gradient(135deg, #9b4d89 0%, #6b3a9c 100%);
}
[data-theme='dark'] .chh__header-content__input button:first-child:hover {
background: linear-gradient(135deg, #b45ea5 0%, #8050c4 100%);
transform: translateY(-2px) scale(1.02);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.chh__header-content__input button:last-child {
background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}
.chh__header-content__input button:last-child:hover {
background: linear-gradient(135deg, #ae8dca 0%, #b3a7cb 100%);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
[data-theme='dark'] .chh__header-content__input button:last-child {
background: linear-gradient(135deg, #2c2c36 0%, #3d3d4f 100%);
color: #e0e0e0;
}
[data-theme='dark'] .chh__header-content__input button:last-child:hover {
background: linear-gradient(135deg, #3d3d4f 0%, #50506b 100%);
transform: translateY(-2px) scale(1.02);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.chh__header-image {
width: auto;
height: auto;
flex: 1 0 0%;
display: flex;
justify-content: center;
align-items: center;
padding: 0.3rem;
border-radius: 10% 40%;
min-height: 400px;
}
.chh__header-image img {
transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
filter: drop-shadow(10px 10px 20px rgba(0, 0, 0, 0.6));
}
.chh__header-image img:hover {
transform: scale(1.03);
filter: drop-shadow(10px 10px 20px rgba(169, 158, 158, 0.6));
}
@keyframes float {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
100% {
transform: translateY(0);
}
}
.float-animation {
animation: float 2s ease-in-out infinite;
}
/* ===== Responsive ===== */
@media screen and (max-width: 1050px) {
.chh__header {
flex-direction: column;
}
.chh__header-content {
margin: 0 0 3rem;
}
.chh__header-image {
min-height: 350px;
}
}
@media screen and (max-width: 768px) {
.gradient__text {
text-align: center;
}
.chh__header-image {
min-height: 300px;
}
}
@media screen and (max-width: 650px) {
.chh__header-content h1 {
font-size: 48px;
line-height: 60px;
}
.chh__header-content p {
font-size: 16px;
line-height: 24px;
}
.chh__header-content__input input,
.chh__header-content__input button {
font-size: 16px;
line-height: 24px;
}
}
@media screen and (max-width: 490px) {
.chh__header-content h1 {
font-size: 36px;
line-height: 48px;
}
.chh__header-content p {
font-size: 14px;
line-height: 24px;
}
.chh__header-content__input input,
.chh__header-content__input button {
font-size: 12px;
line-height: 16px;
}
.chh__header-image {
min-height: 280px;
}
}
@media screen and (max-width: 350px) {
.anouncementBarContent,
.navbar__title {
font-size: medium;
}
}
@media screen and (max-width: 280px) {
.navbar__title {
display: none;
}
}