Search

Search components and flows across the catalog

HarborConceptInteractive preview

Harbor: Save backup codes

A two-factor success page that shows ten one-time backup codes with copy, download and print, requires confirming they are saved before Finish, and lists trusted devices beside a rising security score.

Category
Security
Platform
Web

Interactive screenClick through it, resize it, or switch states. It’s real UI, not a screenshot.Codes not saved yet state

Use this screen

Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.

FreeReact 18+Tailwind v3.4 or v4No extra packages

1. Add it with the shadcn CLI

npx shadcn@latest add https://www.thatdesignui.com/r/screens/harbor-save-backup-codes.json

2. Use it

Every prop is optional
app/page.tsx
import Harbor2faBackupCodes from "@/components/harbor-2fa-backup-codes";

export default function Page() {
  return <Harbor2faBackupCodes />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. The same #eaf1f1 Harbor shell (15rem sidebar from 1024px with Settings and the Security sub-item active, a green dot by Security; breadcrumb 'Northlight Studio / Settings / Security / Backup codes'). From 1280px a flexible card sits beside a 20rem column; below that they stack.
  2. The card header has a soft teal radial glow, faint concentric rings top-right, a 'Turned on · Dec 1, 2026' pill with a green dot, a 56px green shield tile that pops in with a drawn check, a 28px bold 'Two-factor is on', one line that names the method from setup (authenticator app, security key or text to •••• 4821) and a small method chip 'Authenticator app · added just now'.
  3. 'Save your backup codes' with an amber 'Shown only once' pill, then ten XXXX-XXXX codes in a two-column monospace grid of 44px white rows numbered 01–10 inside a #f4f8f8 tray. Under them: Copy all, Download .txt (spins, then a toast 'harbor-backup-codes.txt saved to Downloads') and Print (opens the print dialog); each turns green with a check once used. 'Generate new codes' asks to confirm, then swaps in a new set and clears the tick.
  4. A required 56px checkbox card 'I've saved these codes somewhere safe' turns teal (#eef6f6) when ticked and its helper names what you did (copied, downloaded, printed). Finish in the footer stays greyed until it is ticked; pressing it early shakes the checkbox and shows a red message. Once ticked, Finish spins and calls onFinish (standalone it becomes a green 'Done').
  5. The side column has an 'Account security' half-ring gauge (amber to teal gradient) that animates from 40 to 85 on arrival and to 100 'Excellent' when the box is ticked, with a '+45 today' chip and a checklist; and a 'Trusted devices' card (MacBook Pro · Safari 'This device', iPhone 15, Windows PC) whose 'Sign out others' spins and leaves only this device, with a toast.

How it behaves

  • On load the gauge sweeps from 40 to 85; ticking the checkbox takes it to 100 'Excellent' and marks 'Backup codes saved' in the checklist.
  • Finish is greyed and, when pressed before ticking, shakes the checkbox card and shows a red 'Tick the box' message; after ticking it shows 'Finishing…'.
  • Download .txt shows a spinner, then a dark toast naming harbor-backup-codes.txt and a green 'Downloaded' button; Copy all turns green 'Copied'.
  • 'Generate new codes' asks for confirmation, then replaces all ten codes and unticks the checkbox.
  • 'Sign out others' removes the iPhone and Windows PC rows, shows 'Signed out of 2 other devices' and becomes 'No other devices'.
  • At 375px the codes stay in two columns, the three save buttons sit side by side with icons above labels, and nothing scrolls sideways.

More from Harbor

Harbor: Set up two-factor

Harbor: Set up two-factor

HarborConceptSecurity screen

Harbor: Plan updated

Harbor: Plan updated

HarborConceptSettings screen

Harbor: Cancel your plan

Harbor: Cancel your plan

HarborConceptSettings screen

Harbor: Team members

Harbor: Team members

HarborConceptCollaboration screen