11import RegistrationForm from "@/components/RegistrationForm" ;
22import Link from "next/link" ;
33import GuestGuard from "@/components/GuestGuard" ;
4- import { OnboardingProgressTracker } from "@/components/OnboardingProgressTracker" ;
4+ import { OnboardingProgressTracker , type OnboardingStep } from "@/components/OnboardingProgressTracker" ;
55
66/**
7- * Demo steps shown on the registration page so users understand what the
8- * onboarding journey looks like before they submit the form.
9- * Marked as a server-side constant — no runtime cost.
7+ * Demo steps shown on the registration page so users understand the full
8+ * onboarding journey before they submit the form.
9+ * Defined as a server-side constant — zero runtime cost.
1010 */
11- const ONBOARDING_STEPS = [
11+ const ONBOARDING_STEPS : OnboardingStep [ ] = [
1212 {
1313 id : "create-account" ,
1414 title : "Create your account" ,
@@ -36,7 +36,7 @@ const ONBOARDING_STEPS = [
3636 {
3737 id : "webhook" ,
3838 title : "Configure a webhook" ,
39- description : "Point PLUTO at your server to receive real-time events." ,
39+ description : "Point PLUTO at your server to receive real-time payment events." ,
4040 completed : false ,
4141 required : false ,
4242 order : 4 ,
@@ -49,12 +49,13 @@ const ONBOARDING_STEPS = [
4949 required : false ,
5050 order : 5 ,
5151 } ,
52- ] as const ;
52+ ] ;
5353
5454export default function RegisterPage ( ) {
5555 return (
5656 < GuestGuard >
5757 < main className = "mx-auto flex min-h-screen max-w-2xl flex-col justify-center gap-10 bg-white dark:bg-[#0a0a0a] px-6 py-14 md:py-20" >
58+
5859 { /* ── Page header ─────────────────────────────────────────────────── */ }
5960 < header className = "flex flex-col gap-6 text-center" >
6061 < p className = "font-bold text-xs uppercase tracking-[0.4em] text-[#6B6B6B] dark:text-pluto-400 motion-safe:animate-pulse" >
@@ -71,11 +72,11 @@ export default function RegisterPage() {
7172
7273 { /* ── Onboarding Progress Tracker ──────────────────────────────────── */ }
7374 < OnboardingProgressTracker
74- steps = { ONBOARDING_STEPS as unknown as Parameters < typeof OnboardingProgressTracker > [ 0 ] [ "steps" ] }
75+ steps = { ONBOARDING_STEPS }
7576 currentStep = "create-account"
76- compact = { false }
7777 orientation = "vertical"
7878 showStepNumbers
79+ compact = { false }
7980 />
8081
8182 { /* ── Registration form ────────────────────────────────────────────── */ }
@@ -89,12 +90,13 @@ export default function RegisterPage() {
8990 Already have an account?{ " " }
9091 < Link
9192 href = "/login"
92- className = "font-bold text-[#0A0A0A] dark:text-white underline underline-offset-8 decoration-[#B8D4E8] transition-colors duration-200 hover:text-pluto-600 focus-visible: text-pluto-700 dark:hover: text-pluto-300 dark:focus-visible:text-pluto-200"
93+ className = "font-bold text-[#0A0A0A] dark:text-white underline underline-offset-8 decoration-[#B8D4E8] transition-colors duration-200 hover:text-pluto-600 dark:hover: text-pluto-300 focus-visible: text-pluto-700 dark:focus-visible:text-pluto-200"
9394 >
9495 Log in here
9596 </ Link >
9697 </ p >
9798 </ footer >
99+
98100 </ main >
99101 </ GuestGuard >
100102 ) ;
0 commit comments