Skip to content

Commit 9897bd9

Browse files
committed
💄 stat card update
1 parent df9d90a commit 9897bd9

File tree

1 file changed

+51
-43
lines changed

1 file changed

+51
-43
lines changed

css/layout.css

Lines changed: 51 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -113,64 +113,72 @@
113113
}
114114

115115
.stat-card {
116-
background: var(--bg-card);
117-
border-radius: var(--border-radius-large);
118-
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(var(--accent-rgb), 0.08);
119-
padding: 2.5rem 1.75rem;
116+
display: flex;
117+
flex-direction: column;
118+
align-items: center;
119+
justify-content: center;
120120
text-align: center;
121-
border: 2px solid var(--border);
122-
transition: box-shadow 0.35s cubic-bezier(0.4, 0.2, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0.2, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0.2, 0.2, 1), background 0.3s;
123-
position: relative;
124-
overflow: hidden;
125-
background: linear-gradient(135deg, var(--bg-card) 80%, rgba(var(--accent-rgb), 0.07) 100%);
126-
}
127-
128-
.stat-card::before {
129-
content: "";
130-
position: absolute;
131-
top: -40px;
132-
right: -40px;
133-
width: 120px;
134-
height: 120px;
135-
background: radial-gradient(circle, var(--accent-light) 0%, transparent 80%);
136-
opacity: 0.12;
137-
z-index: 0;
138-
pointer-events: none;
139-
transition: opacity 0.3s;
121+
gap: 0.6rem;
122+
padding: 2.2rem 1.5rem;
123+
border-radius: var(--border-radius-large);
124+
border: 1px solid rgba(255, 0, 0, 0.15);
125+
background: linear-gradient(145deg, rgba(20, 20, 20, 0.85), rgba(40, 0, 0, 0.35));
126+
backdrop-filter: blur(8px);
127+
box-shadow:
128+
0 0 20px rgba(255, 0, 0, 0.05),
129+
inset 0 0 10px rgba(255, 0, 0, 0.05);
130+
transition: all 0.35s ease;
140131
}
141132

142133
.stat-card:hover {
143-
box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.18), 0 2px 8px rgba(0, 0, 0, 0.18);
144-
border-color: var(--accent);
145-
transform: translateY(-6px) scale(1.025);
146-
background: linear-gradient(135deg, var(--bg-card) 60%, rgba(var(--accent-rgb), 0.13) 100%);
134+
transform: translateY(-6px) scale(1.02);
135+
border-color: rgba(255, 0, 0, 0.4);
136+
box-shadow:
137+
0 0 25px rgba(255, 0, 0, 0.25),
138+
inset 0 0 15px rgba(255, 0, 0, 0.1);
147139
}
148140

149141
.stat-card h4 {
150-
margin-bottom: 1rem;
151-
color: var(--accent);
152-
font-size: 1.35rem;
153-
font-weight: 800;
154-
letter-spacing: -0.01em;
155-
position: relative;
156-
z-index: 1;
157-
text-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.08);
142+
margin: 0 0 0.75rem 0;
143+
font-size: 1.25rem;
144+
font-weight: 600;
145+
letter-spacing: 0.4px;
146+
color: #fff;
147+
opacity: 0.9;
148+
transition: color 0.3s ease;
149+
}
150+
151+
.stat-card:hover h4 {
152+
color: #ff2b2b;
153+
opacity: 1;
158154
}
159155

160156
.stat-card ul {
161157
list-style: none;
162158
padding: 0;
163-
margin: 1rem 0 0 0;
164-
position: relative;
165-
z-index: 1;
159+
margin: 0;
160+
display: flex;
161+
flex-direction: column;
162+
align-items: center;
163+
gap: 0.5rem;
166164
}
167165

168166
.stat-card li {
169-
font-size: 1.05rem;
170-
color: var(--text-secondary);
171-
margin-bottom: 0.35rem;
172-
letter-spacing: 0.01em;
173-
transition: color 0.2s;
167+
font-size: 0.95rem;
168+
font-weight: 500;
169+
color: #fff;
170+
background: linear-gradient(145deg, rgba(255, 0, 0, 0.25), rgba(255, 0, 0, 0.15));
171+
border: 1px solid rgba(255, 0, 0, 0.3);
172+
border-radius: 12px;
173+
padding: 0.35rem 0.9rem;
174+
backdrop-filter: blur(4px);
175+
transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
176+
}
177+
178+
.stat-card li:hover {
179+
transform: translateY(-3px);
180+
background: linear-gradient(145deg, rgba(255, 0, 0, 0.35), rgba(255, 0, 0, 0.2));
181+
box-shadow: 0 0 12px rgba(255, 0, 0, 0.3);
174182
}
175183

176184
.content-section {

0 commit comments

Comments
 (0)