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.

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>
  );
}

Quality checks

Automated, in a real browser · 5d ago
—

More from Electric Ultramarine Engraving

The whole style →

Numbered Engraving Feature Grid

Feature sections

Weathered Texture Compare Hero

Heroes

Cobalt Engraving Hero

Heroes

Spaced Mono Navigation Bar

Headers & nav bars

Install Command Tabs

Code blocks

Condensed Uppercase Button Pair

Buttons