Skip to content

Commit fcbd756

Browse files
Yogender-vermaShantKhatri
authored andcommitted
feat: add branded 404 page UI (Dev-Card#636)
1 parent 5c07519 commit fcbd756

2 files changed

Lines changed: 107 additions & 34 deletions

File tree

apps/web/src/pages/NotFound.css

Lines changed: 92 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,119 @@
11
.not-found-container {
22
min-height: 100vh;
33
display: flex;
4-
align-items: center;
54
justify-content: center;
5+
align-items: center;
6+
background: #161616;
67
padding: 2rem;
78
}
89

910
.not-found-card {
11+
width: min(100%, 900px);
12+
min-height: 650px;
13+
background: #d5d5d5;
14+
border-radius: 24px;
15+
padding: 5rem 2rem;
1016
text-align: center;
11-
padding: 3.5rem 2.5rem;
12-
border-radius: var(--radius-xl);
13-
width: min(100%, 480px);
17+
18+
display: flex;
19+
flex-direction: column;
20+
justify-content: center;
21+
align-items: center;
1422
}
1523

16-
.not-found-icon {
17-
font-size: 3.5rem;
18-
margin-bottom: 1rem;
24+
.not-found-subtitle {
25+
font-size: 0.9rem;
26+
font-weight: 600;
27+
color: #555;
28+
letter-spacing: 1px;
29+
margin-bottom: 3rem;
30+
text-transform: uppercase;
1931
}
2032

21-
.not-found-card h1 {
22-
font-size: clamp(4rem, 8vw, 6rem);
33+
.stone-404 {
34+
font-size: clamp(8rem, 20vw, 14rem);
2335
font-weight: 900;
2436
line-height: 1;
25-
margin-bottom: 0.5rem;
26-
background: linear-gradient(135deg, var(--primary), var(--accent));
37+
margin: 0;
38+
39+
color: #7b8793;
40+
41+
text-shadow:
42+
8px 8px 0 #b0b0b0,
43+
16px 16px 0 rgba(0, 0, 0, 0.15);
44+
45+
position: relative;
46+
47+
background: linear-gradient(
48+
180deg,
49+
#aab3bc 0%,
50+
#8b949e 35%,
51+
#727c87 70%,
52+
#646c75 100%
53+
);
54+
2755
-webkit-background-clip: text;
2856
-webkit-text-fill-color: transparent;
2957
background-clip: text;
3058
}
3159

32-
.not-found-title {
33-
font-size: 1.35rem;
60+
.back-home-btn {
61+
margin-top: 3rem;
62+
63+
display: inline-flex;
64+
align-items: center;
65+
justify-content: center;
66+
67+
padding: 0.9rem 2rem;
68+
69+
text-decoration: none;
3470
font-weight: 700;
35-
font-family: 'Outfit', sans-serif;
36-
margin-bottom: 0.75rem;
71+
font-size: 0.95rem;
72+
73+
color: #404040;
74+
75+
background: linear-gradient(
76+
180deg,
77+
#a8adb3 0%,
78+
#858d95 100%
79+
);
80+
81+
border-radius: 8px;
82+
83+
box-shadow:
84+
0 4px 0 #6d7379,
85+
0 8px 16px rgba(0, 0, 0, 0.2);
86+
87+
transition: all 0.2s ease;
3788
}
3889

39-
.not-found-desc {
40-
color: var(--text-secondary);
41-
line-height: 1.7;
42-
margin-bottom: 2rem;
43-
max-width: 360px;
44-
margin-left: auto;
45-
margin-right: auto;
90+
.back-home-btn:hover {
91+
transform: translateY(-2px);
92+
93+
box-shadow:
94+
0 6px 0 #6d7379,
95+
0 12px 20px rgba(0, 0, 0, 0.25);
4696
}
4797

48-
@media (max-width: 520px) {
98+
.back-home-btn:active {
99+
transform: translateY(2px);
100+
101+
box-shadow:
102+
0 2px 0 #6d7379,
103+
0 4px 10px rgba(0, 0, 0, 0.2);
104+
}
105+
106+
@media (max-width: 768px) {
49107
.not-found-card {
50-
padding: 2.5rem 1.5rem;
108+
min-height: 500px;
109+
padding: 3rem 1rem;
51110
}
52-
}
111+
112+
.stone-404 {
113+
font-size: clamp(6rem, 25vw, 10rem);
114+
}
115+
116+
.not-found-subtitle {
117+
font-size: 0.75rem;
118+
}
119+
}

apps/web/src/pages/NotFound.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@ import './NotFound.css';
44
export default function NotFound() {
55
return (
66
<div className="not-found-container">
7-
<div className="not-found-card glass" id="not-found-card">
8-
<div className="not-found-icon">🔍</div>
9-
<h1>404</h1>
10-
<p className="not-found-title">Page not found</p>
11-
<p className="not-found-desc">
12-
The page you're looking for doesn't exist or has been moved.
7+
<div className="not-found-card" id="not-found-card">
8+
<p className="not-found-subtitle">
9+
SORRY, WE CAN'T FIND THE PAGE YOU'RE LOOKING FOR.
10+
<br />
11+
ALL WE HAVE HERE IS JUST STONE
1312
</p>
14-
<Link to="/" className="btn-primary" id="not-found-home-btn">
15-
Back to Home
13+
14+
<h1 className="stone-404">404</h1>
15+
16+
<Link
17+
to="/"
18+
className="back-home-btn"
19+
id="not-found-home-btn"
20+
>
21+
BACK HOME
1622
</Link>
1723
</div>
1824
</div>
1925
);
20-
}
26+
}

0 commit comments

Comments
 (0)