Skip to content

Commit b4c5362

Browse files
committed
Style sheet change APP.CSS & INDEX.CSS
1 parent 8d17610 commit b4c5362

2 files changed

Lines changed: 329 additions & 55 deletions

File tree

src/App.css

Lines changed: 151 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,181 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
/* =========================================
6+
ROOT VARIABLES
7+
========================================= */
8+
9+
:root {
10+
--max-width: 1280px;
11+
12+
--primary-color: #646cff;
13+
--react-color: #61dafb;
14+
15+
--text-muted: #94a3b8;
16+
17+
--card-bg: rgba(255, 255, 255, 0.05);
18+
--card-border: rgba(255, 255, 255, 0.08);
19+
20+
--shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
21+
--shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
22+
23+
--transition: 0.3s ease;
24+
--radius: 1rem;
25+
}
26+
27+
/* =========================================
28+
GLOBAL STYLES
29+
========================================= */
30+
31+
* {
32+
box-sizing: border-box;
33+
}
34+
35+
body {
36+
margin: 0;
37+
38+
min-width: 320px;
39+
min-height: 100vh;
40+
41+
font-family: Inter, sans-serif;
42+
43+
background: linear-gradient(
44+
135deg,
45+
#0f172a,
46+
#111827
47+
);
48+
49+
color: white;
50+
51+
-webkit-font-smoothing: antialiased;
52+
}
53+
54+
/* =========================================
55+
ROOT CONTAINER
56+
========================================= */
57+
158
#root {
2-
max-width: 1280px;
3-
margin: 0 auto;
59+
max-width: var(--max-width);
60+
61+
margin-inline: auto;
62+
463
padding: 2rem;
64+
565
text-align: center;
666
}
767

68+
/* =========================================
69+
LOGO
70+
========================================= */
71+
872
.logo {
9-
height: 6em;
10-
padding: 1.5em;
11-
will-change: filter;
12-
transition: filter 300ms;
73+
height: 6rem;
74+
75+
padding: 1.25rem;
76+
77+
border-radius: 50%;
78+
79+
transition:
80+
transform var(--transition),
81+
filter var(--transition);
82+
83+
will-change: transform, filter;
1384
}
85+
1486
.logo:hover {
15-
filter: drop-shadow(0 0 2em #646cffaa);
87+
transform: scale(1.05);
88+
89+
filter:
90+
drop-shadow(0 0 2rem rgba(100, 108, 255, 0.6));
1691
}
92+
1793
.logo.react:hover {
18-
filter: drop-shadow(0 0 2em #61dafbaa);
94+
filter:
95+
drop-shadow(0 0 2rem rgba(97, 218, 251, 0.7));
1996
}
2097

98+
/* =========================================
99+
SPIN ANIMATION
100+
========================================= */
101+
21102
@keyframes logo-spin {
22103
from {
23104
transform: rotate(0deg);
24105
}
106+
25107
to {
26108
transform: rotate(360deg);
27109
}
28110
}
29111

112+
/* Motion-safe animation */
113+
30114
@media (prefers-reduced-motion: no-preference) {
31-
a:nth-of-type(2) .logo {
32-
animation: logo-spin infinite 20s linear;
115+
.logo-spin {
116+
animation:
117+
logo-spin 20s linear infinite;
33118
}
34119
}
35120

121+
/* =========================================
122+
CARD
123+
========================================= */
124+
36125
.card {
37-
padding: 2em;
126+
padding: 2rem;
127+
128+
margin-top: 2rem;
129+
130+
border-radius: var(--radius);
131+
132+
background: var(--card-bg);
133+
134+
border: 1px solid var(--card-border);
135+
136+
backdrop-filter: blur(12px);
137+
138+
box-shadow: var(--shadow-sm);
139+
140+
transition:
141+
transform var(--transition),
142+
box-shadow var(--transition);
38143
}
39144

145+
.card:hover {
146+
transform: translateY(-4px);
147+
148+
box-shadow: var(--shadow-md);
149+
}
150+
151+
/* =========================================
152+
TEXT
153+
========================================= */
154+
40155
.read-the-docs {
41-
color: #888;
156+
margin-top: 1rem;
157+
158+
color: var(--text-muted);
159+
160+
font-size: 0.95rem;
161+
162+
line-height: 1.6;
42163
}
164+
165+
/* =========================================
166+
RESPONSIVE
167+
========================================= */
168+
169+
@media (max-width: 768px) {
170+
#root {
171+
padding: 1rem;
172+
}
173+
174+
.logo {
175+
height: 4.5rem;
176+
}
177+
178+
.card {
179+
padding: 1.5rem;
180+
}
181+
}

0 commit comments

Comments
 (0)