Skip to content

Commit a9b9f2c

Browse files
ux: fix coffee button — hover, cursor, font, and copy
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 72270d8 commit a9b9f2c

2 files changed

Lines changed: 20 additions & 7 deletions

File tree

src/app/globals.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,19 @@ button {
371371
opacity: 0.9;
372372
}
373373

374+
.coffee-btn-fixed {
375+
cursor: pointer;
376+
transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.12s;
377+
}
378+
.coffee-btn-fixed:hover {
379+
background: #1a1a1a !important;
380+
color: #f6f6f6 !important;
381+
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
382+
}
383+
.coffee-btn-fixed:active {
384+
transform: scale(0.97);
385+
}
386+
374387
.subpage-faq-cta {
375388
display: inline-flex;
376389
align-items: center;

src/app/layout.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,25 @@ export default function RootLayout({ children }: { children: React.ReactNode })
7676
target="_blank"
7777
rel="noopener noreferrer"
7878
aria-label="Buy me a coffee"
79+
className="coffee-btn-fixed"
7980
style={{
8081
position: 'fixed',
8182
top: '12px',
8283
right: '14px',
8384
zIndex: 999,
84-
fontFamily: `var(--font-courier), monospace`,
85-
fontSize: '11px',
86-
fontWeight: 700,
87-
letterSpacing: '0.06em',
88-
textTransform: 'uppercase',
85+
fontFamily: `var(--font-dm), -apple-system, sans-serif`,
86+
fontSize: '12px',
87+
fontWeight: 600,
88+
letterSpacing: '0.01em',
8989
color: '#1a1a1a',
9090
textDecoration: 'none',
91-
padding: '6px 10px',
91+
padding: '7px 12px',
9292
border: '1.5px solid #1a1a1a',
9393
background: '#f6f6f6',
9494
whiteSpace: 'nowrap',
9595
}}
9696
>
97-
Keep the lights on
97+
Don&apos;t let us die too
9898
</a>
9999
{children}
100100
<Analytics />

0 commit comments

Comments
 (0)