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 responsiveness create post #407

Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/app/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';

const page = () => {
return (
<div className="mt-10 min-w-full">
<div className="mt-10 flex flex-col items-center">
<div>
<h1 className="text-center text-4xl font-semibold">Post a job</h1>
<p className="text-center mt-6 text-lg text-gray-300">
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default async function RootLayout({
>
<Providers>
<Header />
<main className="grow grid">{children}</main>
<main className="grow grid p-4">{children}</main>
<Footer />
</Providers>
{/* Commenting this out for temp basis */}
Expand Down
16 changes: 8 additions & 8 deletions src/components/job-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,32 +153,32 @@ const PostJobForm = () => {
}, [watchHasSalaryRange, form]);
return (
<div className="flex flex-col items-center gap-y-10 justify-center">
<div className=" mt-4 flex gap-2 ">
<div className="bg-gray-800/90 backdrop-blur-sm p-4 rounded-lg text-center text-white flex-1 sm:min-w-[12rem]">
<div className="w-full md:justify-center mt-4 flex flex-col md:flex-row gap-2">
<div className="bg-gray-800/90 backdrop-blur-sm p-4 rounded-lg text-center text-white w-full md:w-48">
<Calendar className="w-8 h-8 mb-3 mx-auto text-green-500" />
<p className="text-base font-semibold mb-1">Posted for</p>
<p className="text-gray-400 text-sm">30 days</p>
</div>

<div className="bg-gray-800/90 backdrop-blur-sm p-4 rounded-lg text-center text-white flex-1 sm:min-w-[12rem]">
<div className="bg-gray-800/90 backdrop-blur-sm p-4 rounded-lg text-center text-white w-full md:w-48">
<MailOpenIcon className="w-8 h-8 mb-3 mx-auto text-purple-500" />
<p className="text-base font-semibold mb-1">Emailed to</p>
<p className="text-gray-400 text-sm">290,301 subscribers</p>
</div>

<div className="bg-gray-800/90 backdrop-blur-sm p-4 rounded-lg text-center text-white flex-1 sm:min-w-[12rem]">
<div className="bg-gray-800/90 backdrop-blur-sm p-4 rounded-lg text-center text-white w-full md:w-48">
<LucideRocket className="w-8 h-8 mb-3 mx-auto text-orange-500" />
<p className="text-base font-semibold mb-1">Reach</p>
<p className="text-gray-400 text-sm">
300,000<span className="text-blue-500">+</span>
</p>
</div>
</div>
<div className="flex-col justify-center">
<div className="flex-col justify-center">
<Form {...form}>
<form
onSubmit={form.handleSubmit(handleFormSubmit)}
className="flex flex-col max-w-full max-sm:p-2 "
className="flex flex-col max-w-full"
>
<div className="bg-gray-900 w-full text-gray-300 p-6 rounded-lg space-y-4">
<h2 className="text-2xl font-semibold mb-6">Job details</h2>
Expand All @@ -200,7 +200,7 @@ const PostJobForm = () => {
)}
/>

<div className="grid grid-cols-2 gap-4">
<div className="grid grid-cols md:grid-cols-2 gap-4">
<FormField
control={form.control}
name="category"
Expand Down Expand Up @@ -427,7 +427,7 @@ const PostJobForm = () => {
</div>

{/* Company Name and Email Fields */}
<div className="flex gap-4 mb-4">
<div className="flex flex-col md:flex-row gap-4 mb-4">
<div className="flex-1">
<FormField
control={form.control}
Expand Down
Loading