add onboarding flow with form, validation, db persistence

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-11 11:08:01 +01:00
parent e39d758d39
commit 780e9816c1
12 changed files with 365 additions and 46 deletions
+21
View File
@@ -0,0 +1,21 @@
import { type ComponentProps, forwardRef } from "react";
import { cn } from "@/shared/lib/utils";
const Input = forwardRef<HTMLInputElement, ComponentProps<"input">>(
({ className, type, ...props }, ref) => {
return (
<input
type={type}
className={cn(
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
className,
)}
ref={ref}
{...props}
/>
);
},
);
Input.displayName = "Input";
export { Input };
+20
View File
@@ -0,0 +1,20 @@
import { type ComponentProps, forwardRef } from "react";
import { cn } from "@/shared/lib/utils";
const Label = forwardRef<HTMLLabelElement, ComponentProps<"label">>(
({ className, ...props }, ref) => {
return (
<label
ref={ref}
className={cn(
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
className,
)}
{...props}
/>
);
},
);
Label.displayName = "Label";
export { Label };