From 37e1080e22b3af88eb1114fa125abbd7e247863a Mon Sep 17 00:00:00 2001 From: Anonymus2000 <54113952+Nil2000@users.noreply.github.com> Date: Wed, 16 Oct 2024 20:32:15 +0530 Subject: [PATCH] UI part done for posting jobs (#1106) * UI part done for posting jobs * UI updated according to settings page * Added flag for jobs-create-page --- app/(app)/jobs/create/_client.tsx | 267 ++++++++++++++++++++++++++ app/(app)/jobs/create/page.tsx | 7 + public/images/company_placeholder.png | Bin 0 -> 1767 bytes utils/flags.ts | 1 + 4 files changed, 275 insertions(+) create mode 100644 app/(app)/jobs/create/_client.tsx create mode 100644 app/(app)/jobs/create/page.tsx create mode 100644 public/images/company_placeholder.png diff --git a/app/(app)/jobs/create/_client.tsx b/app/(app)/jobs/create/_client.tsx new file mode 100644 index 00000000..d2aaa4f5 --- /dev/null +++ b/app/(app)/jobs/create/_client.tsx @@ -0,0 +1,267 @@ +"use client"; + +import { Button } from "@/components/ui-components/button"; +import { + Checkbox, + CheckboxField, + CheckboxGroup, +} from "@/components/ui-components/checkbox"; +import { Divider } from "@/components/ui-components/divider"; +import { Description, Field, Label } from "@/components/ui-components/fieldset"; +import { Heading, Subheading } from "@/components/ui-components/heading"; +import { Input } from "@/components/ui-components/input"; +import { + Radio, + RadioField, + RadioGroup, +} from "@/components/ui-components/radio"; +import { Strong, Text } from "@/components/ui-components/text"; +import { Textarea } from "@/components/ui-components/textarea"; +import { FEATURE_FLAGS, isFlagEnabled } from "@/utils/flags"; +import Image from "next/image"; +import { notFound } from "next/navigation"; +import React, { useRef, useState } from "react"; + +export default function Content() { + const flagEnabled = isFlagEnabled(FEATURE_FLAGS.JOBS); + const fileInputRef = useRef(null); + const [imgUrl, setImgUrl] = useState(null); + + if (!flagEnabled) { + notFound(); + } + + return ( +
+ Post a job + +
+
+ Company Logo + Square format is best +
+ +
+ Company Logo +
+ + {}} + className="hidden" + ref={fileInputRef} + /> + + JPG, GIF or PNG. 1MB max. + +
+
+
+
+ + + +
+
+ Company Name + This will be shown in the format you type it +
+ + + + {/* Add error part after validation here */} +
+ + + +
+
+ Job Title + The job title for the position that you are opening +
+ + + + {/* Add error part after validation here */} +
+ + + +
+
+ Job Description + In markdown format +
+ +