Skip to content

Commit c4d2854

Browse files
Merge pull request #122 from Rugved-pro/main
Improved the UI of the Home page
2 parents d194165 + 949b53c commit c4d2854

File tree

3 files changed

+145
-75
lines changed

3 files changed

+145
-75
lines changed

src/pages/Header.css

Lines changed: 85 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,98 @@
1-
/* Dashboard-style header to match dark theme */
1+
/* 🌌 Enhanced Dashboard Header (Dark Theme) */
22
.dashboard-header {
3-
background-color: #0b3c5f;
4-
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
5-
padding: 2rem 1rem;
3+
background: linear-gradient(145deg, #0b3c5f 0%, #072b44 100%);
4+
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
5+
padding: 3rem 1rem 2.5rem;
66
text-align: center;
77
color: #ffffff;
8+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
9+
position: relative;
10+
overflow: hidden;
811
}
912

10-
.header-content {
11-
max-width: 900px;
12-
margin: 0 auto;
13+
/* ✨ Subtle animated gradient sweep */
14+
.dashboard-header::after {
15+
content: "";
16+
position: absolute;
17+
top: 0;
18+
left: -50%;
19+
width: 200%;
20+
height: 100%;
21+
background: radial-gradient(circle at 30% 20%, rgba(0, 217, 255, 0.15), transparent 60%);
22+
animation: sweep 10s ease-in-out infinite alternate;
23+
z-index: 0;
1324
}
1425

26+
/* 🖋️ Typewriter Title */
1527
.dashboard-title {
16-
font-size: 2.5rem;
17-
margin-bottom: 0.5rem;
18-
background: linear-gradient(90deg, #00d9ff, #1a5c66);
28+
display: inline-block;
29+
font-size: 3rem;
30+
font-weight: 700;
31+
margin-bottom: 0.6rem;
32+
background: linear-gradient(90deg, #4ec9df, #24b8c9, #1a5c66);
1933
-webkit-background-clip: text;
2034
-webkit-text-fill-color: transparent;
35+
letter-spacing: 1px;
36+
overflow: hidden;
37+
white-space: nowrap;
38+
border-right: 3px solid #f9fdfd00;
39+
animation:
40+
typing 3.5s steps(18) 0.5s 1 normal both,
41+
blink 0.75s step-end infinite,
42+
fadeInUp 1s ease both;
2143
}
2244

45+
/* 💬 Subtitle */
2346
.dashboard-subtitle {
24-
font-size: 1.1rem;
25-
color: #c8d6e5;
26-
}
47+
font-size: 1.2rem;
48+
color: #b8cce3;
49+
max-width: 600px;
50+
margin: 0 auto;
51+
line-height: 1.5;
52+
opacity: 0.9;
53+
animation: fadeInUp 1.5s ease both;
54+
}
55+
56+
/* 🌈 Keyframes */
57+
@keyframes typing {
58+
from {
59+
width: 0;
60+
}
61+
to {
62+
width: 15ch; /* Adjust depending on your title length */
63+
}
64+
}
65+
66+
@keyframes blink {
67+
50% {
68+
border-color: transparent;
69+
}
70+
}
71+
72+
@keyframes sweep {
73+
from {
74+
transform: translateX(-10%);
75+
}
76+
to {
77+
transform: translateX(10%);
78+
}
79+
}
80+
81+
@keyframes fadeInUp {
82+
from {
83+
opacity: 0;
84+
transform: translateY(10px);
85+
}
86+
to {
87+
opacity: 1;
88+
transform: translateY(0);
89+
}
90+
}
91+
92+
/* 🧱 Container */
93+
.header-content {
94+
position: relative;
95+
z-index: 1;
96+
max-width: 900px;
97+
margin: 0 auto;
98+
}

0 commit comments

Comments
 (0)