Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Add project modal #31

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 54 additions & 10 deletions src/components/programs/add.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,70 @@
"use client";
import {
AlertDialogAction,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogTitle,
} from "@/components/ui/alert-dialog";

import Input from "@/components/global/inputs/input";
import Select from "@/components/global/inputs/select";
import Textarea from "@/components/global/inputs/textarea";
import { Label } from "../ui/label";
import Button from "../global/button";

const Add = () => {
return (
<AlertDialogContent>
<AlertDialogContent className="max-w-4xl">
<AlertDialogHeader>
<AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
<AlertDialogDescription>
This action cannot be undone. This will permanently delete your
account and remove your data from our servers.
</AlertDialogDescription>
<Label className="text-xl">Add New Project</Label>
</AlertDialogHeader>
<Input
meta={{
title: "Title",
type: "text",
placeholder: "i.e WINC",
maxLength: 32,
value: "",
disabled: false,
}}
/>
<Textarea
meta={{
title: "Description",
type: "textarea",
placeholder: "Description of your project",
maxLength: 500,
value: "",
disabled: false,
}}
/>
<Select
meta={{
title: "Tech Stack",
type: "select",
options: ["TypeScript", "Next.js", "TailwindCSS"],
value: "",
disabled: false,
}}
/>
<Input
meta={{
title: "Total Spots",
type: "text",
placeholder: "e.g 10",
maxLength: 5,
value: "",
disabled: false,
}}
/>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction>Add</AlertDialogAction>
<AlertDialogCancel asChild>
<Button onClick={() => {}}>Cancel</Button>
</AlertDialogCancel>
<AlertDialogAction asChild>
<Button onClick={() => {}}>Add</Button>
</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
);
Expand Down
Loading