diff --git a/src/app/(repairs-app)/repairs-app/book-in-form.tsx b/src/app/(repairs-app)/repairs-app/book-in-form.tsx index 9129630..4283bbb 100644 --- a/src/app/(repairs-app)/repairs-app/book-in-form.tsx +++ b/src/app/(repairs-app)/repairs-app/book-in-form.tsx @@ -16,6 +16,28 @@ import type { Customer, Supplier } from "@/lib/types"; /** Ten photos is plenty for one booking. */ const MAX_PHOTOS = 10; +/** Fields stand out from their card: white well, firm border. */ +const FIELD = + "min-h-[56px] border-2 border-foreground/30 bg-background text-base shadow-sm focus-visible:border-primary"; +const AREA = + "border-2 border-foreground/30 bg-background text-base shadow-sm focus-visible:border-primary"; +const PICKER = + "min-h-[56px] w-full border-2 border-foreground/30 bg-background text-base shadow-sm"; +const CARD = "space-y-2 rounded-2xl border border-foreground/15 bg-muted/60 p-4 shadow-sm"; + +/** Says out loud whether a field has to be filled in. */ +function Tag({ required }: { required?: boolean }) { + return required ? ( + + Required + + ) : ( + + Optional + + ); +} + type Lookups = { customers: Customer[]; suppliers: Supplier[] }; /** @@ -239,8 +261,11 @@ export function BookInForm() { Photos first: the machine is in front of you when you start, and the photo is the one thing the form will not book in without. */} -
Take a photo of the machine as it arrived.
@@ -257,7 +282,7 @@ export function BookInForm() {