Skip to content

Commit a63472d

Browse files
committed
fix: polish section layout with cards, smooth hero fade, tighter spacing
Made-with: Cursor
1 parent a51d740 commit a63472d

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

site-template/template.html.j2

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
.nav-toggle svg { width: 24px; height: 24px; }
5050
5151
/* HERO */
52-
.hero { text-align: center; padding: 5rem 1.5rem 3.5rem; background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); }
52+
.hero { text-align: center; padding: 5rem 1.5rem 4.5rem; background: linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 70%, var(--bg) 100%); position: relative; }
5353
.hero-inner { max-width: 720px; margin: 0 auto; }
5454
.hero h1 { font-size: 2.75rem; font-weight: 700; margin-bottom: 1rem; background: linear-gradient(135deg, var(--text), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
5555
.hero p { font-size: 1.125rem; color: var(--text-dim); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
@@ -62,13 +62,16 @@
6262
.badge:hover { border-color: var(--accent); background: var(--bg3); color: var(--text); }
6363
.badge svg { width: 18px; height: 18px; flex-shrink: 0; }
6464
65+
/* CONTENT AREA */
66+
.content-area { max-width: 1040px; margin: 0 auto; padding: 2rem 1.5rem 0; }
67+
6568
/* SECTIONS */
66-
.section { max-width: 1000px; margin: 0 auto; padding: 3rem 1.5rem; }
67-
.section-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--border); flex-wrap: wrap; }
68-
.section-header h2 { font-size: 1.5rem; font-weight: 700; margin: 0; }
69-
.count { font-size: 0.875rem; font-weight: 500; color: var(--text-dim); background: var(--bg2); padding: 0.15rem 0.6rem; border-radius: 12px; }
69+
.section { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem 2rem; margin-bottom: 1.25rem; }
70+
.section-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; padding-bottom: 0.625rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
71+
.section-header h2 { font-size: 1.25rem; font-weight: 700; margin: 0; }
72+
.count { font-size: 0.8125rem; font-weight: 500; color: var(--text-dim); background: var(--bg3); padding: 0.15rem 0.6rem; border-radius: 12px; }
7073
.section-actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
71-
.btn-sm { padding: 0.3rem 0.75rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; color: var(--text-dim); font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: color 0.2s, border-color 0.2s; font-family: var(--font-sans); }
74+
.btn-sm { padding: 0.3rem 0.75rem; background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text-dim); font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: color 0.2s, border-color 0.2s; font-family: var(--font-sans); }
7275
.btn-sm:hover { color: var(--accent-light); border-color: var(--accent); }
7376
7477
/* SEARCH */
@@ -119,7 +122,7 @@
119122
.back-to-top svg { width: 20px; height: 20px; }
120123
121124
/* FOOTER */
122-
footer { border-top: 1px solid var(--border); text-align: center; padding: 2.5rem 1.5rem; color: var(--text-dim); font-size: 0.8125rem; }
125+
footer { text-align: center; padding: 2.5rem 1.5rem; color: var(--text-dim); font-size: 0.8125rem; margin-top: 1rem; }
123126
footer a { color: var(--accent-light); }
124127
125128
/* RESPONSIVE */
@@ -135,9 +138,11 @@
135138
.nav-toggle { display: block; }
136139
.nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: rgba(13,17,23,0.97); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 0.75rem; }
137140
.nav-links.open { display: flex; }
138-
.hero { padding: 3rem 1rem 2rem; }
141+
.hero { padding: 3rem 1rem 2.5rem; }
139142
.hero h1 { font-size: 1.5rem; }
140143
.hero-badges { flex-direction: column; align-items: center; }
144+
.content-area { padding: 0 0.75rem; }
145+
.section { padding: 1.25rem 1rem; border-radius: 8px; }
141146
.section-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
142147
.section-actions { margin-left: 0; }
143148
}
@@ -196,6 +201,9 @@
196201
</div>
197202
</section>
198203

204+
<!-- Content sections -->
205+
<div class="content-area">
206+
199207
<!-- Skills -->
200208
{% if skills %}
201209
<section class="section" id="skills">
@@ -330,6 +338,8 @@
330338
</section>
331339
{% endif %}
332340

341+
</div><!-- /.content-area -->
342+
333343
<!-- Footer -->
334344
<footer>
335345
<p>

0 commit comments

Comments
 (0)