Skip to content

Commit 843eecc

Browse files
committed
Restyle home to match neubrutalism.com grammar.
Yellow hero band, pink divider, filled cards, boxed labels, black footer. Light/dark switch stays.
1 parent 4f7614b commit 843eecc

2 files changed

Lines changed: 103 additions & 19 deletions

File tree

assets/style.css

Lines changed: 88 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,28 @@ button:focus-visible {
161161
box-shadow: none;
162162
}
163163

164+
.theme-switch {
165+
display: inline-flex;
166+
border: var(--border);
167+
background: var(--surface);
168+
box-shadow: var(--shadow-sm);
169+
}
170+
.theme-switch button {
171+
appearance: none;
172+
min-height: 36px;
173+
padding: 0 12px;
174+
border: 0;
175+
background: transparent;
176+
color: var(--muted);
177+
font: 700 13px/1 var(--font-heading);
178+
cursor: pointer;
179+
}
180+
.theme-switch button + button { border-left: var(--border-thin); }
181+
.theme-switch button.is-on {
182+
background: var(--yellow);
183+
color: var(--black);
184+
}
185+
164186
.btn {
165187
display: inline-flex;
166188
align-items: center;
@@ -186,6 +208,33 @@ button:focus-visible {
186208
.btn-accent:hover { background: var(--yellow); color: var(--black); }
187209

188210
.hero { padding: 28px 0 24px; }
211+
.hero-band {
212+
background: var(--yellow);
213+
color: var(--black);
214+
border-bottom: var(--border-thick);
215+
padding: 36px 0 40px;
216+
}
217+
.hero-band h1 {
218+
margin: 0 0 12px;
219+
font-family: var(--font-display);
220+
font-size: clamp(28px, 5.5vw, 46px);
221+
font-weight: 800;
222+
letter-spacing: -0.04em;
223+
line-height: 1.14;
224+
padding-bottom: 4px;
225+
color: var(--black);
226+
}
227+
.hero-band h1 em {
228+
color: var(--black);
229+
font-style: italic;
230+
}
231+
.hero-band p {
232+
margin: 0;
233+
max-width: 46ch;
234+
color: #1a1a1a;
235+
font-size: 16px;
236+
}
237+
189238
.badge {
190239
display: inline-block;
191240
margin-bottom: 12px;
@@ -200,6 +249,18 @@ button:focus-visible {
200249
letter-spacing: 0.1em;
201250
text-transform: uppercase;
202251
}
252+
.badge-pink { background: var(--pink); }
253+
254+
.divider-band {
255+
display: block;
256+
height: 16px;
257+
margin: 0;
258+
border: 0;
259+
border-top: var(--border-thick);
260+
border-bottom: var(--border-thick);
261+
background: var(--pink);
262+
}
263+
203264
.hero h1 {
204265
margin: 0 0 12px;
205266
font-family: var(--font-display);
@@ -226,7 +287,12 @@ button:focus-visible {
226287
}
227288

228289
.sec-label {
229-
margin: 8px 0 12px;
290+
display: inline-block;
291+
margin: 28px 0 16px;
292+
padding: 0.35rem 0.75rem;
293+
border: var(--border-thin);
294+
background: var(--surface);
295+
box-shadow: var(--shadow-sm);
230296
font-family: var(--font-mono);
231297
font-size: 12px;
232298
font-weight: 700;
@@ -270,15 +336,21 @@ button:focus-visible {
270336
.card:hover {
271337
transform: translate(-2px, -2px);
272338
box-shadow: var(--shadow-lg);
273-
background: var(--yellow);
274-
color: var(--black);
275339
}
276-
.card:hover p,
277-
.card:hover .kicker { color: var(--black); }
278-
.card:nth-child(2) { background: var(--yellow-light); }
279-
.card:nth-child(3) { background: var(--pink-light); }
280-
.card:nth-child(4) { background: var(--blue-light); }
281-
.card.alt { background: var(--yellow-light); }
340+
.card.fill-paper { background: var(--surface); }
341+
.card.fill-yellow,
342+
.card.fill-pink,
343+
.card.fill-blue { color: var(--black); }
344+
.card.fill-yellow { background: var(--yellow); }
345+
.card.fill-pink { background: var(--pink); }
346+
.card.fill-blue { background: var(--blue); }
347+
.card.fill-yellow p,
348+
.card.fill-pink p,
349+
.card.fill-blue p,
350+
.card.fill-yellow .kicker,
351+
.card.fill-pink .kicker,
352+
.card.fill-blue .kicker { color: #1a1a1a; }
353+
.card.alt { background: var(--yellow); color: var(--black); }
282354
.kicker {
283355
font-family: var(--font-mono);
284356
font-size: 11px;
@@ -301,6 +373,13 @@ button:focus-visible {
301373
font-size: 13px;
302374
font-family: var(--font-mono);
303375
}
376+
.site-foot.band {
377+
margin-top: 8px;
378+
padding: 22px 0;
379+
background: var(--black);
380+
color: #c9c9d1;
381+
border-top: var(--border-thick);
382+
}
304383

305384
.day {
306385
margin: 0 0 22px;

index.html

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,37 +37,40 @@
3737
</div>
3838
</header>
3939

40-
<div class="wrap">
41-
<section class="hero">
42-
<span class="badge">프로젝트</span>
40+
<section class="hero-band">
41+
<div class="wrap">
42+
<span class="badge badge-pink">프로젝트</span>
4343
<h1>무료한 일상에 생기를 불어넣은 <em>프로젝트들.</em></h1>
4444
<p>주로 관심 갖는 분야만 올립니다. 페이지는 사이트로, 나머지는 GitHub 저장소로 이동합니다.</p>
45-
</section>
45+
</div>
46+
</section>
47+
<hr class="divider-band" />
4648

49+
<div class="wrap">
4750
<p class="sec-label">Public repos</p>
4851
<section class="grid">
49-
<a class="card" href="https://alzza.github.io/sc2-conveyor-profiler/">
52+
<a class="card fill-paper" href="https://alzza.github.io/sc2-conveyor-profiler/">
5053
<span class="kicker">PLC / SC2</span>
5154
<h2>sc2-conveyor-profiler</h2>
5255
<p>Sheet Conveyor 2 파라미터 오토튠. Trend CSV와 시뮬.</p>
5356
<span class="go">페이지 열기 →</span>
5457
</a>
5558

56-
<a class="card" href="https://github.com/alzza/t2-can-board">
59+
<a class="card fill-yellow" href="https://github.com/alzza/t2-can-board">
5760
<span class="kicker">Tesla / CAN</span>
5861
<h2>t2-can-board</h2>
5962
<p>LILYGO T2-CAN, Tesla HW3 듀얼 CAN 펌웨어.</p>
6063
<span class="go">GitHub →</span>
6164
</a>
6265

63-
<a class="card" href="https://github.com/alzza/tesla-can-moniter">
66+
<a class="card fill-pink" href="https://github.com/alzza/tesla-can-moniter">
6467
<span class="kicker">Tesla / CAN</span>
6568
<h2>tesla-can-moniter</h2>
6669
<p>테슬라 CAN 모니터.</p>
6770
<span class="go">GitHub →</span>
6871
</a>
6972

70-
<a class="card" href="https://orca-lime.vercel.app">
73+
<a class="card fill-blue" href="https://orca-lime.vercel.app">
7174
<span class="kicker">Fork</span>
7275
<h2>orca_mode_studio</h2>
7376
<p>reallygood83/orca fork. 데모는 Vercel.</p>
@@ -84,9 +87,11 @@ <h2>orca_mode_studio</h2>
8487
<strong>테마 토큰</strong>
8588
<span>라이트/다크와 코드 블록 쓰는 법</span>
8689
</a>
87-
88-
<footer class="site-foot">alzza.github.io</footer>
8990
</div>
91+
92+
<footer class="site-foot band">
93+
<div class="wrap">alzza.github.io</div>
94+
</footer>
9095
<script src="assets/theme.js"></script>
9196
</body>
9297
</html>

0 commit comments

Comments
 (0)