Skip to content

Add Login/Sign Up buttons to docs header, styled to match marketing site#1045

Merged
ntotten merged 1 commit into
mainfrom
claude/jolly-napier-7f8e47
May 29, 2026
Merged

Add Login/Sign Up buttons to docs header, styled to match marketing site#1045
ntotten merged 1 commit into
mainfrom
claude/jolly-napier-7f8e47

Conversation

@ntotten
Copy link
Copy Markdown
Member

@ntotten ntotten commented May 29, 2026

What

Adds a Login and Sign Up button to the right side of the docs header, styled to match the Zuplo marketing site navbar (~/zuplo/www):

  • Login — pink text link → https://portal.zuplo.com
  • Sign Up — dark navy rounded pill (same hsl(231 18% 15.3%) background, white/12 border, and inset+drop shadow as the marketing site) → https://zuplo.com/signup

Why this also touches the slot config

The header CTAs were wired through the deprecated UNSAFE_slotlets API (head-navigation-start), which stopped rendering after the recent Zudoku package upgrade — so the old "Sign in / Start for Free" buttons had silently disappeared from the header.

This migrates to the stable slots API documented at zudoku.dev/docs/configuration/slots and moves the content to head-navigation-end (right side, where login/signup belong), restoring the buttons.

Implementation notes

  • The component uses plain styled <a> tags (mirroring the marketing site's own navbar markup) rather than the Zudoku Button variants, so the pink-link + dark-pill look matches ~/zuplo/www exactly.
  • Labels are "Login" / "Sign Up" as requested. (The marketing site uses "Login" / "Try for free" — trivial to switch if preferred.)

Verification

  • ✅ Rendered and screenshotted in the local dev server — desktop light and dark mode. Computed Sign Up background resolves to rgb(32,34,46) = hsl(231 18% 15.3%), matching the marketing site.
  • format:ci (committed files), guides:check, lint:admonitions, and typecheck all pass.
  • Note: on mobile, Zudoku collapses the head navigation into the hamburger menu, so the head-navigation-end slot isn't shown on small screens (same behavior as the previous slot).

🤖 Generated with Claude Code

Migrate the header navigation slot from the deprecated `UNSAFE_slotlets`
API to the stable `slots` API (`head-navigation-end`). The old slotlets
API stopped rendering after the recent Zudoku upgrade, so this also
restores the header CTAs that had silently disappeared.

Restyle the buttons to match the Zuplo marketing site navbar (~/zuplo/www):
a pink "Login" text link and a dark rounded "Sign Up" pill, using the same
colors, border, and shadow. Login links to portal.zuplo.com and Sign Up to
zuplo.com/signup, matching the marketing site.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 29, 2026 8:32pm

Request Review

@ntotten ntotten merged commit d78badf into main May 29, 2026
14 checks passed
@ntotten ntotten deleted the claude/jolly-napier-7f8e47 branch May 29, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant