Skip to content

Commit 4342990

Browse files
feat: improve 404 NotFound UI and add brand header
1 parent 52e4df1 commit 4342990

2 files changed

Lines changed: 87 additions & 14 deletions

File tree

apps/web/src/pages/NotFound.css

Lines changed: 67 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,104 @@
44
align-items: center;
55
justify-content: center;
66
padding: 2rem;
7+
background: var(--bg);
78
}
89

10+
/* 🔥 BIGGER CARD */
911
.not-found-card {
1012
text-align: center;
11-
padding: 3.5rem 2.5rem;
13+
padding: 7rem 5rem; /* increased significantly */
1214
border-radius: var(--radius-xl);
13-
width: min(100%, 480px);
15+
width: min(100%, 760px); /* wider card */
1416
}
1517

18+
/* Glass effect */
19+
.glass {
20+
background: rgba(255, 255, 255, 0.06);
21+
backdrop-filter: blur(12px);
22+
border: 1px solid rgba(255, 255, 255, 0.1);
23+
box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
24+
}
25+
26+
.not-found-brand {
27+
font-size: clamp(4rem, 6vw, 5.2rem); /* same visual weight as 404 */
28+
font-weight: 900; /* match 404 boldness */
29+
letter-spacing: 0.08em; /* slightly tighter for strength */
30+
text-transform: uppercase;
31+
margin-bottom: 2rem;
32+
display: inline-block;
33+
34+
/* SAME strong gradient style as 404 */
35+
background: linear-gradient(
36+
135deg,
37+
var(--primary),
38+
var(--accent)
39+
);
40+
41+
-webkit-background-clip: text;
42+
background-clip: text;
43+
color: transparent;
44+
45+
/* slightly stronger glow to match 404 impact */
46+
text-shadow: 0 0 25px rgba(99, 102, 241, 0.22);
47+
}
48+
49+
/* Icon */
1650
.not-found-icon {
17-
font-size: 3.5rem;
18-
margin-bottom: 1rem;
51+
font-size: 4.5rem;
52+
margin-bottom: 1.5rem;
1953
}
2054

55+
/* 404 */
2156
.not-found-card h1 {
22-
font-size: clamp(4rem, 8vw, 6rem);
57+
font-size: clamp(5rem, 10vw, 7rem);
2358
font-weight: 900;
2459
line-height: 1;
25-
margin-bottom: 0.5rem;
60+
margin-bottom: 0.75rem;
2661
background: linear-gradient(135deg, var(--primary), var(--accent));
2762
-webkit-background-clip: text;
2863
-webkit-text-fill-color: transparent;
2964
background-clip: text;
3065
}
3166

67+
/* Title */
3268
.not-found-title {
33-
font-size: 1.35rem;
69+
font-size: 1.5rem;
3470
font-weight: 700;
3571
font-family: 'Outfit', sans-serif;
36-
margin-bottom: 0.75rem;
72+
margin-bottom: 1rem;
3773
}
3874

75+
/* Description */
3976
.not-found-desc {
4077
color: var(--text-secondary);
4178
line-height: 1.7;
42-
margin-bottom: 2rem;
43-
max-width: 360px;
79+
margin-bottom: 2.5rem;
80+
max-width: 420px;
4481
margin-left: auto;
4582
margin-right: auto;
4683
}
4784

85+
/* Button */
86+
.btn-primary {
87+
display: inline-block;
88+
padding: 0.85rem 1.4rem;
89+
border-radius: 14px;
90+
background: linear-gradient(135deg, var(--primary), var(--accent));
91+
color: white;
92+
text-decoration: none;
93+
font-weight: 600;
94+
transition: transform 0.2s ease, opacity 0.2s ease;
95+
}
96+
97+
.btn-primary:hover {
98+
transform: translateY(-3px);
99+
opacity: 0.9;
100+
}
101+
102+
/* Mobile */
48103
@media (max-width: 520px) {
49104
.not-found-card {
50-
padding: 2.5rem 1.5rem;
105+
padding: 3.5rem 1.8rem;
51106
}
52-
}
107+
}

apps/web/src/pages/NotFound.tsx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,34 @@ export default function NotFound() {
55
return (
66
<div className="not-found-container">
77
<div className="not-found-card glass" id="not-found-card">
8+
9+
{/* Brand */}
10+
<div className="not-found-brand">
11+
DevCard
12+
</div>
13+
14+
{/* Icon */}
815
<div className="not-found-icon">🔍</div>
16+
17+
{/* 404 */}
918
<h1>404</h1>
10-
<p className="not-found-title">Page not found</p>
19+
20+
{/* Title */}
21+
<p className="not-found-title">
22+
Page not found
23+
</p>
24+
25+
{/* Description */}
1126
<p className="not-found-desc">
1227
The page you're looking for doesn't exist or has been moved.
1328
</p>
29+
30+
{/* Button */}
1431
<Link to="/" className="btn-primary" id="not-found-home-btn">
1532
Back to Home
1633
</Link>
34+
1735
</div>
1836
</div>
1937
);
20-
}
38+
}

0 commit comments

Comments
 (0)