From cc2b7e718fe6f8ddc19d8bd5af407b766bb05512 Mon Sep 17 00:00:00 2001 From: nano Date: Wed, 28 May 2025 15:19:33 +0200 Subject: [PATCH 01/27] added new reservation form --- OrariAperti/frontend/src/components/Main.tsx | 145 ++++++++++++++++-- .../frontend/src/components/ui/label.tsx | 2 +- OrariAperti/frontend/src/index.css | 89 +++++------ OrariAperti/frontend/vite.config.ts | 10 +- 4 files changed, 191 insertions(+), 55 deletions(-) diff --git a/OrariAperti/frontend/src/components/Main.tsx b/OrariAperti/frontend/src/components/Main.tsx index 9ffd6f9..1b3aa3a 100644 --- a/OrariAperti/frontend/src/components/Main.tsx +++ b/OrariAperti/frontend/src/components/Main.tsx @@ -1,10 +1,137 @@ -export default function Main() { - return ( - <> -
- -
- - ); -} +import { Button } from "@/components/ui/button"; +import { Input } from "@/components/ui/input"; +import { Label } from "@/components/ui/label"; +import { Textarea } from "@/components/ui/textarea"; +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/components/ui/popover"; +import { Calendar } from "@/components/ui/calendar"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; +import { CalendarIcon } from "lucide-react"; + +export default function MainUIOnly() { + return ( +
+

Create a Reservation

+ + + + New Reservation + + Fill out the form below to create a new reservation. + + + +
+
+ {/* Date Field */} +
+ + + + + + + + + +
+ + {/* Room Field */} +
+ + +
+ + {/* Start Time Field */} +
+ + +
+ {/* End Time Field */} +
+ + +
+
+ + {/* Description Field */} +
+ +