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

feat : redesigned job page #374

Merged
merged 11 commits into from
Sep 27, 2024
Prev Previous commit
Next Next commit
added link tag for job card
  • Loading branch information
amanbairagi30 committed Sep 21, 2024
commit cede6e30387690e77d97e96756bf74b3f153611d
7 changes: 4 additions & 3 deletions src/components/job-card.tsx
Original file line number Diff line number Diff line change
@@ -2,12 +2,13 @@ import { JobType } from '@/types/jobs.types';
import React from 'react';
import Image from 'next/image';
import { MapPin } from 'lucide-react';
import Link from 'next/link';

export default function JobCard({ key, job }: { key: string; job: JobType }) {
return (
<React.Fragment key={key}>
<Link href={`/jobs/${job.id}`} key={key}>
{/* job card */}
<div className="border-2 flex flex-col gap-6 h-fit max-h-[10rem] p-4 rounded-xl">
<div className="border-2 transition-all duration-115 ease-linear hover:bg-lightBgSecondary dark:hover:bg-darkBgSecondary flex flex-col gap-6 h-fit max-h-[10rem] p-4 rounded-xl">
<div className="flex gap-4 items-center">
<div className="w-[4rem] h-[4rem] bg-primary/20 rounded-md">
{job.companyLogo && (
@@ -39,6 +40,6 @@ export default function JobCard({ key, job }: { key: string; job: JobType }) {
</div>
</div>
</div>
</React.Fragment>
</Link>
);
}