Page sections / Calls to action
Account Action Pair
Solid cobalt 'Create an account' button beside an underlined 'Sign in' text link, right-aligned on the same row as the section title.
Rebuilt from hermes-agent.nousresearch.com in the Electric Ultramarine Engraving style.
npx shadcn@latest add https://justyoink.it/r/electric-ultramarine-engraving/blocks/cta-account-pair.json
Looks exactly like hermes-agent.nousresearch.com: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/electric-ultramarine-engraving/mine/cta-account-pair.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
Usage
Props: title, primaryLabel, secondaryLabel, primaryHref, secondaryHref, className. Renders a title row with a solid cobalt button that lightens on hover and an underlined link whose underline fades on hover.
components/cta-account-pair.tsx
import { useState } from "react"; export default function AccountActionPair(props: { primaryLabel?: string; secondaryLabel?: string; primaryHref?: string; secondaryHref?: string; title?: string; className?: string }) { const { primaryLabel = "Create an account", secondaryLabel = "Sign in", primaryHref = "#", secondaryHref = "#", title = "Northwind Hub", className = "" } = props; const [pressed, setPressed] = useState(false); return ( <section className={"bg-paper px-6 py-10 " + className}> <div className="mx-auto flex max-w-[1080px] flex-col gap-6 sm:flex-row sm:items-center sm:justify-between"> <h2 className="font-display text-h1 text-cobalt-deep">{title}</h2> <div className="flex items-center gap-5"> <a href={primaryHref} onMouseDown={() => setPressed(true)} onMouseUp={() => setPressed(false)} onMouseLeave={() => setPressed(false)} className={"inline-flex h-9 items-center rounded-sm bg-cobalt px-3 font-mono text-button uppercase text-paper transition-[background-color,opacity] duration-nav-hover ease-nav-hover hover:bg-link-blue focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cobalt " + (pressed ? "opacity-90" : "")} > {primaryLabel} </a> <a href={secondaryHref} className="font-mono text-button uppercase text-cobalt-deep underline decoration-cobalt-deep/100 underline-offset-4 transition-[text-decoration-color] duration-link-underline ease-link-underline hover:decoration-transparent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cobalt" > {secondaryLabel} </a> </div> </div> </section> ); }import { useState } from "react"; export default function AccountActionPair(props: { primaryLabel?: string; secondaryLabel?: string; primaryHref?: string; secondaryHref?: string; title?: string; className?: string }) { const { primaryLabel = "Create an account", secondaryLabel = "Sign in", primaryHref = "#", secondaryHref = "#", title = "Northwind Hub", className = "" } = props; const [pressed, setPressed] = useState(false); return ( <section className={"bg-foreground px-6 py-10 " + className}> <div className="mx-auto flex max-w-[1080px] flex-col gap-6 sm:flex-row sm:items-center sm:justify-between"> <h2 className="font-sans text-electric-h1 text-primary/90">{title}</h2> <div className="flex items-center gap-5"> <a href={primaryHref} onMouseDown={() => setPressed(true)} onMouseUp={() => setPressed(false)} onMouseLeave={() => setPressed(false)} className={"inline-flex h-9 items-center rounded-sm bg-background px-3 font-mono text-electric-button uppercase text-primary-foreground transition-[background-color,opacity] duration-electric-nav-hover ease-electric-nav-hover hover:bg-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-background " + (pressed ? "opacity-90" : "")} > {primaryLabel} </a> <a href={secondaryHref} className="font-mono text-electric-button uppercase text-primary/90 underline decoration-primary/100 underline-offset-4 transition-[text-decoration-color] duration-electric-link-underline ease-electric-link-underline hover:decoration-transparent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-background" > {secondaryLabel} </a> </div> </div> </section> ); }
Quality checks
Automated, in a real browser · 5d ago- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: not passedScrolls sideways at phone width (390px)
- Dark mode: not passedElements must meet minimum color contrast ratio thresholds (3 elements)
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: doesn't applyDoesn't animate, so there's nothing to check.