Skip to content

Commit

Permalink
feat: changes ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Sid-80 committed Jul 8, 2024
1 parent eebaded commit fa91eef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
7 changes: 2 additions & 5 deletions components/CoverLetterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,20 @@ import { Button } from "@/components/ui/button";
import {
Form,
FormControl,
FormDescription,
FormField,
FormItem,
FormLabel,
FormMessage,
} from "@/components/ui/form";
import { Input } from "@/components/ui/input";
import { Textarea } from "./ui/textarea";
import { ArrowRightIcon } from "@radix-ui/react-icons";
import { IconArrowBigRight } from "@tabler/icons-react";
import { SetStateAction } from "react";

const formSchema = z.object({
jobDescription: z
.string()
.min(10, { message: "Detailed job description required!!" })
.max(1000),
.max(10000),
project: z.string().min(10, { message: "Project required!!" }).max(1000),
skills: z.string().min(10, { message: "Skills required!!" }).max(1000),
experience: z
Expand Down Expand Up @@ -251,7 +248,7 @@ export default function CoverLetterForm({
</FormItem>
)}
/>
<Button className="flex gap-1" type="submit">
<Button className="flex gap-1 text-white" type="submit">
Submit
</Button>
</>
Expand Down
14 changes: 10 additions & 4 deletions components/cover-letter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ export default function CoverLetter({ user }: Props) {
return (
<div className="flex flex-col items-center justify-center">
<div className="w-full p-2">
<div className="flex w-full items-center justify-center">
<div className="flex w-full my-10 items-center justify-center">
<div className="border-[#B1B2FF] w-[10%] border-0 border-b-2" />
<Button
className={`${
!isJobDescription ? "bg-[#051129] border-gray-400 border" : ""
!isJobDescription
? "dark:bg-[#051129] bg-blue-400 border-gray-400 border"
: ""
}`}
variant={"newDefault"}
>
Expand All @@ -35,7 +37,9 @@ export default function CoverLetter({ user }: Props) {
<div className="border-[#B1B2FF] w-[10%] border-0 border-b-2" />
<Button
className={`${
!isResume ? "bg-[#051129] border-gray-400 border" : ""
!isResume
? "dark:bg-[#051129] bg-blue-400 border-gray-400 border"
: ""
}`}
variant={"newDefault"}
>
Expand All @@ -44,7 +48,9 @@ export default function CoverLetter({ user }: Props) {
<div className="border-[#B1B2FF] w-[10%] border-0 border-b-2" />
<Button
className={`${
!isSubmit ? "bg-[#051129] border-gray-400 border" : ""
!isSubmit
? "dark:bg-[#051129] bg-blue-400 border-gray-400 border"
: ""
}`}
variant={"newDefault"}
>
Expand Down

0 comments on commit fa91eef

Please sign in to comment.