Skip to content

Commit 506c15e

Browse files
leopoldblumclaude
andcommitted
style(events,projects): make Show more button noticeable with brand-red accents
The ghost button under the Events and Projects grids visually disappeared against the colorful card rows, so users missed that more content was one click away. Tighten it into a focused affordance: red border (40% → 100% on hover) framing a neutral dark surface, neutral count chip, and a brand-red chevron that gently bobs to cue the downward reveal. Hover blooms a soft red drop-glow. New .show-more-chevron keyframe is gated by prefers-reduced-motion. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9009815 commit 506c15e

3 files changed

Lines changed: 30 additions & 11 deletions

File tree

src/pages/events.astro

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -432,15 +432,19 @@ const eventsData = JSON.stringify(eventsWithImages.map((e, i) => ({
432432
<button
433433
@click="showMore()"
434434
type="button"
435-
class="group flex items-center justify-center gap-2.5 px-6 py-3 rounded-lg border border-white/15 text-sm text-bears-text-onDark/80 hover:border-bears-accent/50 hover:text-bears-text-onDark transition-all duration-200 cursor-pointer"
435+
class="show-more-btn group inline-flex items-center gap-3 px-6 py-3 rounded-lg border border-bears-accent/40 bg-bears-bg-surface text-[15px] font-medium text-bears-text-onDark shadow-[0_2px_8px_rgba(0,0,0,0.25)] hover:border-bears-accent hover:bg-bears-bg-elevated hover:shadow-[0_10px_28px_-12px_rgba(197,14,31,0.55)] transition-[background-color,border-color,box-shadow,transform] duration-200 active:scale-[0.98] cursor-pointer"
436436
>
437437
<span>{showMoreText}</span>
438438
<span
439-
class="text-bears-text-onDark/60"
440-
x-text={`\`(\${remainingCount} ${remainingText})\``}
439+
class="inline-flex items-center rounded-md px-2 py-0.5 bg-white/[0.08] text-bears-text-onDark/75 text-xs font-semibold tabular-nums"
440+
x-text={`\`\${remainingCount} ${remainingText}\``}
441441
></span>
442-
<svg class="w-4 h-4 transition-transform duration-200 group-hover:translate-y-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
443-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
442+
<svg
443+
class="show-more-chevron w-4 h-4 text-bears-accent"
444+
fill="none" stroke="currentColor" viewBox="0 0 24 24"
445+
aria-hidden="true"
446+
>
447+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M19 9l-7 7-7-7" />
444448
</svg>
445449
</button>
446450
</div>

src/pages/projects.astro

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -442,15 +442,19 @@ const projectsData = JSON.stringify(projectsWithImages.map((p, i) => ({
442442
<button
443443
@click="showMore()"
444444
type="button"
445-
class="group flex items-center justify-center gap-2.5 px-6 py-3 rounded-lg border border-white/15 text-sm text-bears-text-onDark/80 hover:border-bears-accent/50 hover:text-bears-text-onDark transition-all duration-200 cursor-pointer"
445+
class="show-more-btn group inline-flex items-center gap-3 px-6 py-3 rounded-lg border border-bears-accent/40 bg-bears-bg-surface text-[15px] font-medium text-bears-text-onDark shadow-[0_2px_8px_rgba(0,0,0,0.25)] hover:border-bears-accent hover:bg-bears-bg-elevated hover:shadow-[0_10px_28px_-12px_rgba(197,14,31,0.55)] transition-[background-color,border-color,box-shadow,transform] duration-200 active:scale-[0.98] cursor-pointer"
446446
>
447447
<span>{showMoreText}</span>
448448
<span
449-
class="text-bears-text-onDark/60"
450-
x-text={`\`(\${remainingCount} ${remainingText})\``}
449+
class="inline-flex items-center rounded-md px-2 py-0.5 bg-white/[0.08] text-bears-text-onDark/75 text-xs font-semibold tabular-nums"
450+
x-text={`\`\${remainingCount} ${remainingText}\``}
451451
></span>
452-
<svg class="w-4 h-4 transition-transform duration-200 group-hover:translate-y-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
453-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
452+
<svg
453+
class="show-more-chevron w-4 h-4 text-bears-accent"
454+
fill="none" stroke="currentColor" viewBox="0 0 24 24"
455+
aria-hidden="true"
456+
>
457+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M19 9l-7 7-7-7" />
454458
</svg>
455459
</button>
456460
</div>

src/styles/global.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,16 @@ body {
246246
}
247247
}
248248

249+
/* "Show more" button chevron — gentle idle bounce hinting at downward reveal */
250+
.show-more-chevron {
251+
animation: showMoreChevronBounce 1.8s ease-in-out infinite;
252+
}
253+
254+
@keyframes showMoreChevronBounce {
255+
0%, 100% { transform: translateY(0); }
256+
50% { transform: translateY(3px); }
257+
}
258+
249259
/* Respect user preference for reduced motion */
250260
@media (prefers-reduced-motion: reduce) {
251261

@@ -257,7 +267,8 @@ body {
257267
.metadata-card,
258268
.contact-card,
259269
.nav-link,
260-
.search-result {
270+
.search-result,
271+
.show-more-chevron {
261272
animation: none;
262273
}
263274

0 commit comments

Comments
 (0)