From 28e8d224af2bb520b8a98c6c0d5baf0fdc1600ee Mon Sep 17 00:00:00 2001 From: Ajeesh RS Date: Sat, 19 Oct 2024 22:12:09 +0530 Subject: [PATCH] Added darkmode in post-job form (#516) Co-authored-by: Vineet Agarwal <91052168+VineeTagarwaL-code@users.noreply.github.com> --- src/app/create/page.tsx | 2 +- src/app/globals.css | 7 ++- src/components/DescriptionEditor.tsx | 2 +- src/components/comboBox.tsx | 2 +- src/components/gmaps-autosuggest.tsx | 2 +- src/components/job-form.tsx | 64 ++++++++++++++-------------- 6 files changed, 42 insertions(+), 37 deletions(-) diff --git a/src/app/create/page.tsx b/src/app/create/page.tsx index 034eb1e6..29e10432 100644 --- a/src/app/create/page.tsx +++ b/src/app/create/page.tsx @@ -6,7 +6,7 @@ const page = () => {

Post a job

-

+

100xJobs is trusted by leading companies

diff --git a/src/app/globals.css b/src/app/globals.css index 5c1ae871..7a417889 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -307,12 +307,17 @@ } /* Custom styles for Quill editor */ -.ql-toolbar.ql-snow { +html.dark.ql-toolbar.ql-snow { border: none !important; background-color: #1f2937 !important; border-bottom: 1px solid #374151 !important; } +.ql-toolbar.ql-snow{ + border: none !important; + border-bottom: 1px solid #a9aaac !important; +} + .ql-container.ql-snow { border: none !important; max-height: 30rem !important; diff --git a/src/components/DescriptionEditor.tsx b/src/components/DescriptionEditor.tsx index c1bc4ba2..7bb7e894 100644 --- a/src/components/DescriptionEditor.tsx +++ b/src/components/DescriptionEditor.tsx @@ -58,7 +58,7 @@ const DescriptionEditor: React.FC = ({ onChange={handleChange} placeholder={placeholder} bounds={`[data-text-editor="${fieldName}"]`} - className="text-white bg-gray-800 job-description-editor text-wrap max-w-[537px]" + className="dark:text-white dark:bg-gray-800 bg-gray-200 job-description-editor text-wrap max-w-[537px]" />
); diff --git a/src/components/comboBox.tsx b/src/components/comboBox.tsx index 3493973c..d236430f 100644 --- a/src/components/comboBox.tsx +++ b/src/components/comboBox.tsx @@ -43,7 +43,7 @@ export function Combobox({ variant="outline" role="combobox" aria-expanded={open} - className="w-full justify-between bg-gray-800 border-none text-white" + className="w-full justify-between dark:bg-gray-800 border-none dark:text-white" > Search skillset ... diff --git a/src/components/gmaps-autosuggest.tsx b/src/components/gmaps-autosuggest.tsx index 1727f70d..05a5cad9 100644 --- a/src/components/gmaps-autosuggest.tsx +++ b/src/components/gmaps-autosuggest.tsx @@ -56,7 +56,7 @@ export default function GmapsAutocompleteAddress({ ref={inputRef} id="autocomplete" type="text" - className="w-full bg-gray-800 border-none text-white" + className="w-full dark:bg-gray-800 border-none dark:text-white" placeholder="Where is the job located?" /> diff --git a/src/components/job-form.tsx b/src/components/job-form.tsx index f1d9654b..d9d3ae3a 100644 --- a/src/components/job-form.tsx +++ b/src/components/job-form.tsx @@ -215,24 +215,24 @@ const PostJobForm = () => { if (session.status === 'loading') return null; return ( -
+
-
+
-

Posted for

-

30 days

+

Posted for

+

30 days

-
+
-

Emailed to

-

17,000 subscribers

+

Emailed to

+

17,000 subscribers

-
+
-

Reach

-

+

Reach

+

500,000+

@@ -243,7 +243,7 @@ const PostJobForm = () => { onSubmit={form.handleSubmit(handleFormSubmit)} className="flex flex-col max-w-full" > -
+

Job details

{ @@ -275,7 +275,7 @@ const PostJobForm = () => { defaultValue={field.value} > - + @@ -305,7 +305,7 @@ const PostJobForm = () => { defaultValue={field.value} > - + @@ -332,7 +332,7 @@ const PostJobForm = () => { defaultValue={field.value} > - + @@ -389,7 +389,7 @@ const PostJobForm = () => { @@ -409,7 +409,7 @@ const PostJobForm = () => { {' '} @@ -429,7 +429,7 @@ const PostJobForm = () => { defaultValue={field.value} > - + @@ -492,7 +492,7 @@ const PostJobForm = () => { @@ -512,7 +512,7 @@ const PostJobForm = () => { {' '} @@ -558,7 +558,7 @@ const PostJobForm = () => {
-
-

Job description

-
+
+

Job description

+
{ />
-
-

+
+

Company

@@ -645,7 +645,7 @@ const PostJobForm = () => {
{previewImg ? ( @@ -697,7 +697,7 @@ const PostJobForm = () => { @@ -717,7 +717,7 @@ const PostJobForm = () => { @@ -727,10 +727,10 @@ const PostJobForm = () => {
-