diff --git a/src/app/tailwind.css b/src/app/tailwind.css index 10ec6f4..e94b0b9 100644 --- a/src/app/tailwind.css +++ b/src/app/tailwind.css @@ -969,6 +969,10 @@ body { border-radius: calc(var(--radius) - 4px); } +.rounded-full { + border-radius: 9999px; +} + .border { border-width: 1px; } @@ -993,6 +997,10 @@ body { border-color: hsl(var(--primary)); } +.border-transparent { + border-color: transparent; +} + .bg-accent { background-color: hsl(var(--accent)); } @@ -1103,6 +1111,21 @@ body { padding-bottom: 1rem; } +.px-2\.5 { + padding-left: 0.625rem; + padding-right: 0.625rem; +} + +.py-0 { + padding-top: 0px; + padding-bottom: 0px; +} + +.py-0\.5 { + padding-top: 0.125rem; + padding-bottom: 0.125rem; +} + .pl-3 { padding-left: 0.75rem; } @@ -1382,6 +1405,14 @@ body { background-color: hsl(var(--secondary) / 0.8); } +.hover\:bg-destructive\/80:hover { + background-color: hsl(var(--destructive) / 0.8); +} + +.hover\:bg-primary\/80:hover { + background-color: hsl(var(--primary) / 0.8); +} + .hover\:text-accent-foreground:hover { color: hsl(var(--accent-foreground)); } diff --git a/src/app/ui/forms/story.tsx b/src/app/ui/forms/story.tsx index f69b7a1..2a76eb5 100644 --- a/src/app/ui/forms/story.tsx +++ b/src/app/ui/forms/story.tsx @@ -17,7 +17,15 @@ import { import { Input } from "@/components/ui/input" import { Checkbox } from "@/components/ui/checkbox" import { toast } from "@/components/ui/use-toast" -import * as Popover from '@radix-ui/react-popover'; + + +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/components/ui/popover" +import { cn } from "@/lib/utils" +import { Badge } from "lucide-react" const formSchema = z.object({ title: z.string().min(2).max(50), @@ -51,6 +59,7 @@ export default function StoryForm({ genres }) { } + function onErrors(errors) { toast({ title: "You have errors", @@ -63,6 +72,7 @@ export default function StoryForm({ genres }) { console.log(JSON.stringify(errors)) } + return (
@@ -79,6 +89,7 @@ export default function StoryForm({ genres }) { )} /> + )} /> - - - Genres - - - ( - -
- Genres - Specify relevant genres -
+ + ( + + + + + + {genres.map((item) => ( ))} - - - )} - /> -
-
+ + + + + + )} + />