Skip to content

Commit a0fb449

Browse files
committed
improve output
1 parent c18f790 commit a0fb449

File tree

2 files changed

+34
-7
lines changed

2 files changed

+34
-7
lines changed

src/css/main.css

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,19 @@ h1 {
115115

116116
h2 {
117117
font-size: var(--font-size-2xl);
118-
margin: var(--spacing-2xl) 0 var(--spacing-md) 0;
118+
margin: var(--spacing-section) 0 var(--spacing-xl) 0;
119119
text-transform: uppercase;
120120
letter-spacing: 1.2px;
121121
border-top: 3px dashed var(--color-secondary);
122-
padding-top: var(--spacing-sm);
122+
padding-top: var(--spacing-lg);
123123
position: relative;
124124
}
125125

126+
/* First h2 after content should have less top margin */
127+
main > h2:first-of-type {
128+
margin-top: var(--spacing-2xl);
129+
}
130+
126131
/* Musical note decoration */
127132
h2::after {
128133
content: "♫";
@@ -361,11 +366,12 @@ footer::before {
361366
border-bottom-width: var(--border-width-thick);
362367
border-right-width: var(--border-width-thick);
363368
padding: var(--spacing-lg);
364-
background: var(--color-primary);
369+
background: var(--color-white);
365370
position: relative;
366371
transition: var(--transition-base);
367372
transform: rotate(0.3deg);
368373
margin: var(--spacing-lg) 0;
374+
box-shadow: 4px 4px 0 var(--color-primary);
369375
}
370376

371377
.groove-card:nth-child(even) {
@@ -376,6 +382,7 @@ footer::before {
376382
transform: translate(-3px, -3px) rotate(0deg) scale(1.02);
377383
border-bottom-width: var(--border-width-thick);
378384
border-right-width: var(--border-width-thick);
385+
box-shadow: 6px 6px 0 var(--color-primary);
379386
}
380387

381388
.groove-card h3 {
@@ -386,6 +393,23 @@ footer::before {
386393
letter-spacing: 0;
387394
}
388395

396+
/* Hero card variant with proper contrast */
397+
.groove-card--hero {
398+
background: var(--color-secondary);
399+
color: var(--color-white);
400+
box-shadow: 4px 4px 0 var(--color-primary);
401+
}
402+
403+
.groove-card--hero:hover {
404+
box-shadow: 6px 6px 0 var(--color-primary);
405+
}
406+
407+
/* Accent card with yellow highlight but good contrast */
408+
.groove-card--accent {
409+
background: var(--color-white);
410+
border-left: 6px solid var(--color-primary);
411+
}
412+
389413
/* Product Cards */
390414
.products {
391415
display: grid;
@@ -399,10 +423,11 @@ footer::before {
399423
border-bottom-width: 5px;
400424
border-right-width: 5px;
401425
padding: var(--spacing-lg);
402-
background: var(--color-primary);
426+
background: var(--color-white);
403427
position: relative;
404428
transition: var(--transition-base);
405429
transform: rotate(0.3deg);
430+
box-shadow: 4px 4px 0 var(--color-primary);
406431
}
407432

408433
.product:nth-child(even) {
@@ -413,6 +438,7 @@ footer::before {
413438
transform: translate(-3px, -3px) rotate(0deg) scale(1.02);
414439
border-bottom-width: 6px;
415440
border-right-width: 6px;
441+
box-shadow: 6px 6px 0 var(--color-primary);
416442
}
417443

418444
.product h3 {
@@ -882,8 +908,9 @@ img {
882908

883909
/* Focus styles */
884910
:focus-visible {
885-
outline: 3px solid var(--color-primary);
911+
outline: 3px solid var(--color-secondary);
886912
outline-offset: 2px;
913+
background: var(--color-primary);
887914
}
888915

889916
/* Skip to content link */

src/products/r2r.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: Your personal PR dashboard. Never miss a review again.
1010
<h2 class="hero-subtitle mb-0">STOP MISSING PRS</h2>
1111
<p class="hero-text-large">SICK OF STALE REVIEWS?<br>
1212
<span class="text-highlight">WE FUCKING GET IT.</span></p>
13-
<div class="groove-card mt-2">
13+
<div class="groove-card groove-card--hero mt-2">
1414
<p class="text-bold text-large mb-1">FREE FOREVER FOR OPEN SOURCE</p>
1515
<p class="mb-0">Built by maintainers who are tired of this shit. Zero cost for public repos.</p>
1616
</div>
@@ -22,7 +22,7 @@ description: Your personal PR dashboard. Never miss a review again.
2222

2323
<div class="groove-card">
2424
<p class="text-large text-bold mb-0">DEVELOPERS WASTE 25% OF THEIR TIME</p>
25-
<p class="mt-1">→ Waiting for reviews that never come<br>
25+
<p class="mt-1">→ Waiting for reviews (by people who never knew about the review)<br>
2626
→ Context switching between 47 different notifications<br>
2727
→ Missing the ONE PR that actually matters<br>
2828
→ Watching contributors disappear because you didn't see their work</p>

0 commit comments

Comments
 (0)