Skip to content

Commit 8ccacef

Browse files
committed
fix: redesign two-column layout with visible card container
- Main layout now sits in a visible card with background + border + rounded corners - Sidebar has distinct darker background (was invisible, same as page) - Divider upgraded to 2px ice-blue border (was 1px dark-on-dark, invisible) - Wider page: 92vw / 1300px max (was 1100px) - Content padded inside its column for clear separation - Slightly more compact elements to fit above fold - Footer gets subtle background treatment - Backdrop blur for depth effect
1 parent 28f057a commit 8ccacef

1 file changed

Lines changed: 77 additions & 59 deletions

File tree

style.css

Lines changed: 77 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -94,29 +94,39 @@ body {
9494
}
9595

9696
/* ============================================
97-
Two-column layout
97+
Two-column card layout
9898
============================================ */
9999
main {
100-
max-width: 1100px;
101-
margin: 0 auto;
102-
padding: 2.5rem 2rem 2rem;
100+
width: 92vw;
101+
max-width: 1300px;
102+
margin: 2rem auto;
103103
display: grid;
104104
grid-template-columns: 300px 1fr;
105105
grid-template-rows: 1fr auto;
106-
gap: 0 3rem;
107-
min-height: 100vh;
106+
gap: 0;
107+
min-height: calc(100vh - 4rem);
108+
background: rgba(15, 23, 42, 0.55);
109+
border: 1px solid rgba(30, 41, 59, 0.8);
110+
border-radius: 16px;
111+
overflow: hidden;
112+
backdrop-filter: blur(8px);
113+
-webkit-backdrop-filter: blur(8px);
108114
}
109115

110116
/* ---- Sidebar (left column) ---- */
111117
.sidebar {
112118
grid-column: 1;
113119
grid-row: 1;
114120
position: sticky;
115-
top: 2.5rem;
121+
top: 0;
116122
align-self: start;
123+
height: fit-content;
124+
max-height: calc(100vh - 4rem);
125+
overflow-y: auto;
117126
text-align: center;
118-
border-right: 1px solid var(--dark-600);
119-
padding-right: 2.5rem;
127+
background: rgba(10, 15, 30, 0.7);
128+
border-right: 2px solid rgba(56, 189, 248, 0.2);
129+
padding: 2.5rem 1.75rem;
120130
}
121131

122132
.avatar-container {
@@ -126,8 +136,8 @@ main {
126136
}
127137

128138
.avatar {
129-
width: 130px;
130-
height: 130px;
139+
width: 120px;
140+
height: 120px;
131141
border-radius: 50%;
132142
border: 3px solid var(--ice-400);
133143
background: var(--dark-800);
@@ -153,7 +163,7 @@ main {
153163
}
154164

155165
h1 {
156-
font-size: 2.2rem;
166+
font-size: 2rem;
157167
font-weight: 700;
158168
letter-spacing: -0.02em;
159169
color: var(--text-primary);
@@ -171,14 +181,14 @@ h1 {
171181
}
172182

173183
.tagline {
174-
font-size: 1.1rem;
184+
font-size: 1.05rem;
175185
color: var(--ice-400);
176186
font-weight: 500;
177187
margin-top: 0.2rem;
178188
}
179189

180190
.subtitle {
181-
font-size: 0.9rem;
191+
font-size: 0.85rem;
182192
color: var(--text-secondary);
183193
margin-top: 0.35rem;
184194
line-height: 1.4;
@@ -198,11 +208,11 @@ h1 {
198208

199209
.tag {
200210
display: inline-block;
201-
padding: 0.25rem 0.65rem;
211+
padding: 0.2rem 0.6rem;
202212
background: rgba(14, 165, 233, 0.1);
203213
border: 1px solid rgba(14, 165, 233, 0.2);
204214
border-radius: 16px;
205-
font-size: 0.75rem;
215+
font-size: 0.72rem;
206216
color: var(--ice-300);
207217
transition: background 0.2s;
208218
}
@@ -216,17 +226,17 @@ h1 {
216226
margin-top: 1.5rem;
217227
display: flex;
218228
flex-direction: column;
219-
gap: 0.4rem;
229+
gap: 0.35rem;
220230
}
221231

222232
.link-item {
223233
display: flex;
224234
align-items: center;
225-
gap: 0.65rem;
226-
padding: 0.55rem 0.75rem;
235+
gap: 0.6rem;
236+
padding: 0.5rem 0.7rem;
227237
background: rgba(15, 23, 42, 0.5);
228238
border: 1px solid var(--dark-700);
229-
border-radius: 10px;
239+
border-radius: 8px;
230240
text-decoration: none !important;
231241
transition: border-color 0.2s, background 0.2s;
232242
}
@@ -237,7 +247,7 @@ h1 {
237247
}
238248

239249
.link-icon {
240-
font-size: 1.15rem;
250+
font-size: 1.1rem;
241251
flex-shrink: 0;
242252
}
243253

@@ -251,42 +261,43 @@ h1 {
251261
.link-label {
252262
font-weight: 600;
253263
color: var(--text-primary);
254-
font-size: 0.85rem;
264+
font-size: 0.82rem;
255265
}
256266

257267
.link-handle {
258268
color: var(--text-muted);
259-
font-size: 0.75rem;
269+
font-size: 0.72rem;
260270
}
261271

262272
/* ---- Content (right column) ---- */
263273
.content {
264274
grid-column: 2;
265275
grid-row: 1;
266276
min-width: 0;
277+
padding: 2.5rem 2.5rem 1.5rem;
267278
}
268279

269280
section {
270-
margin-bottom: 2.5rem;
281+
margin-bottom: 2rem;
271282
}
272283

273284
section:first-child {
274285
margin-top: 0;
275286
}
276287

277288
h2 {
278-
font-size: 1.2rem;
289+
font-size: 1.15rem;
279290
font-weight: 600;
280291
color: var(--ice-300);
281-
margin-bottom: 0.75rem;
282-
padding-bottom: 0.4rem;
292+
margin-bottom: 0.65rem;
293+
padding-bottom: 0.35rem;
283294
border-bottom: 1px solid var(--dark-700);
284295
}
285296

286297
p {
287298
color: var(--text-secondary);
288-
margin-bottom: 0.6rem;
289-
font-size: 0.95rem;
299+
margin-bottom: 0.5rem;
300+
font-size: 0.92rem;
290301
}
291302

292303
a {
@@ -299,21 +310,21 @@ a:hover {
299310
color: var(--ice-300);
300311
}
301312

302-
/* Trait cards — horizontal row */
313+
/* Trait cards — 2×2 grid */
303314
.trait-grid {
304315
display: grid;
305316
grid-template-columns: repeat(2, 1fr);
306-
gap: 0.75rem;
317+
gap: 0.6rem;
307318
}
308319

309320
.trait-card {
310321
display: flex;
311322
align-items: flex-start;
312-
gap: 0.65rem;
313-
background: rgba(15, 23, 42, 0.5);
323+
gap: 0.6rem;
324+
background: rgba(10, 15, 30, 0.5);
314325
border: 1px solid var(--dark-700);
315-
border-radius: 10px;
316-
padding: 0.85rem 1rem;
326+
border-radius: 8px;
327+
padding: 0.7rem 0.85rem;
317328
transition: border-color 0.2s;
318329
}
319330

@@ -322,43 +333,43 @@ a:hover {
322333
}
323334

324335
.trait-icon {
325-
font-size: 1.3rem;
336+
font-size: 1.2rem;
326337
flex-shrink: 0;
327338
margin-top: 0.1rem;
328339
}
329340

330341
.trait-body h3 {
331-
font-size: 0.9rem;
342+
font-size: 0.85rem;
332343
font-weight: 600;
333344
color: var(--text-primary);
334-
margin-bottom: 0.15rem;
345+
margin-bottom: 0.1rem;
335346
}
336347

337348
.trait-body p {
338-
font-size: 0.82rem;
349+
font-size: 0.78rem;
339350
color: var(--text-muted);
340351
margin: 0;
341-
line-height: 1.4;
352+
line-height: 1.35;
342353
}
343354

344355
/* Projects — compact grid */
345356
.projects-intro {
346-
margin-bottom: 1rem;
357+
margin-bottom: 0.75rem;
347358
}
348359

349360
.project-grid {
350361
display: grid;
351362
grid-template-columns: repeat(2, 1fr);
352-
gap: 0.5rem;
363+
gap: 0.45rem;
353364
}
354365

355366
.project {
356367
display: flex;
357368
flex-direction: column;
358-
padding: 0.65rem 0.85rem;
359-
background: rgba(15, 23, 42, 0.35);
369+
padding: 0.55rem 0.75rem;
370+
background: rgba(10, 15, 30, 0.35);
360371
border: 1px solid rgba(30, 41, 59, 0.6);
361-
border-radius: 8px;
372+
border-radius: 6px;
362373
transition: border-color 0.2s;
363374
}
364375

@@ -369,33 +380,34 @@ a:hover {
369380
.project-name {
370381
font-weight: 600;
371382
color: var(--text-primary);
372-
font-size: 0.88rem;
383+
font-size: 0.84rem;
373384
}
374385

375386
.project-desc {
376387
color: var(--text-muted);
377-
font-size: 0.78rem;
378-
line-height: 1.35;
388+
font-size: 0.74rem;
389+
line-height: 1.3;
379390
}
380391

381392
/* Footer — spans full width */
382393
footer {
383394
grid-column: 1 / -1;
384395
text-align: center;
385-
padding: 1.5rem 0 1rem;
396+
padding: 1.25rem 1.5rem 1rem;
386397
border-top: 1px solid var(--dark-700);
398+
background: rgba(10, 15, 30, 0.3);
387399
}
388400

389401
.footer-text {
390-
font-size: 0.82rem;
402+
font-size: 0.8rem;
391403
color: var(--text-secondary);
392404
}
393405

394406
.footer-sub {
395-
font-size: 0.75rem;
407+
font-size: 0.72rem;
396408
color: var(--text-muted);
397409
font-style: italic;
398-
margin-top: 0.2rem;
410+
margin-top: 0.15rem;
399411
}
400412

401413
/* ============================================
@@ -404,16 +416,22 @@ footer {
404416
@media (max-width: 768px) {
405417
main {
406418
grid-template-columns: 1fr;
407-
padding: 1.5rem 1rem 2rem;
408-
gap: 2rem 0;
419+
width: 95vw;
420+
margin: 1rem auto;
421+
min-height: auto;
422+
border-radius: 12px;
409423
}
410424

411425
.sidebar {
412426
position: static;
413-
padding-bottom: 1rem;
414-
padding-right: 0;
427+
max-height: none;
428+
padding: 2rem 1.5rem 1.5rem;
415429
border-right: none;
416-
border-bottom: 1px solid var(--dark-700);
430+
border-bottom: 2px solid rgba(56, 189, 248, 0.2);
431+
}
432+
433+
.content {
434+
padding: 1.5rem 1.25rem 1rem;
417435
}
418436

419437
.connect {
@@ -425,7 +443,7 @@ footer {
425443

426444
.link-item {
427445
flex: 0 1 auto;
428-
padding: 0.45rem 0.65rem;
446+
padding: 0.4rem 0.6rem;
429447
}
430448

431449
.link-text {
@@ -439,7 +457,7 @@ footer {
439457
}
440458

441459
h1 {
442-
font-size: 2rem;
460+
font-size: 1.8rem;
443461
}
444462

445463
.avatar {

0 commit comments

Comments
 (0)