Skip to content

Commit

Permalink
ui fixes (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberSpyderX authored Oct 5, 2024
1 parent 141eb02 commit 414e55f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/components/Jobcard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function JobCard({
key={job.id}
href={`/jobs/${job.id}`}
className={cn(
'min-h-[200px] overflow-y-scroll sm:text-sm text-xs text-slate-500 dark:text-slate-400 font-medium flex flex-col border p-6 bg-slate-100 gap-4 dark:bg-slate-900 hover:bg-slate-200 dark:hover:bg-slate-800 rounded-lg ',
'min-h-[200px] sm:text-sm text-xs text-slate-500 dark:text-slate-400 font-medium flex flex-col border p-6 bg-slate-100 gap-4 dark:bg-slate-900 hover:bg-slate-200 dark:hover:bg-slate-800 rounded-lg ',
className
)}
>
Expand All @@ -36,7 +36,7 @@ export default function JobCard({
</div>
) : (
<Image
className="size-full object-cover "
className="size-full object-contain "
src={job.companyLogo || ''}
width={'500'}
height={'500'}
Expand All @@ -60,13 +60,13 @@ export default function JobCard({
{_.startCase(job.type)}
</div>
<span className="flex items-center gap-0.5">
{job.minExperience && <Briefcase size={12} />}
<Briefcase size={12} />
{job.minExperience && job.maxExperience
? `${job.minExperience}-${job.maxExperience} Yrs`
: 'Not disclosed'}
</span>
<span className="flex items-center gap-0.5">
{job.minSalary && <Icon icon="currency" size={12} />}
<Icon icon="currency" size={12} />
{job.minSalary && job.maxSalary
? `${formatSalary(job.minSalary)}-${formatSalary(job.maxSalary)}`
: 'Not disclosed'}
Expand Down
3 changes: 2 additions & 1 deletion src/components/job-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';
import Image from 'next/image';
import { MapPin } from 'lucide-react';
import Link from 'next/link';
import _ from 'lodash';

export default function JobCard({ job }: { job: JobType }) {
return (
Expand Down Expand Up @@ -36,7 +37,7 @@ export default function JobCard({ job }: { job: JobType }) {
<div className="flex items-center gap-2">
<MapPin size={16} />
<p className="text-xs font-semibold">
{job.address}({job.workMode})
{job.address} ({_.startCase(job.workMode)})
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const AccordionItem = React.forwardRef<
>(({ className, ...props }, ref) => (
<AccordionPrimitive.Item
ref={ref}
className={cn('border-b', className)}
className={cn('border-b last:border-b-0', className)}
{...props}
/>
));
Expand Down
12 changes: 6 additions & 6 deletions src/layouts/job-filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const JobFilters = ({ searchParams }: { searchParams: JobQuerySchemaType }) => {
>
<FormControl>
<Checkbox
className="rounded border-slate-300"
className="rounded border-slate-300 hover:border-2"
checked={field.value?.includes(item)}
onCheckedChange={(checked) => {
checked
Expand All @@ -128,7 +128,7 @@ const JobFilters = ({ searchParams }: { searchParams: JobQuerySchemaType }) => {
}}
/>
</FormControl>
<FormLabel className="text-sm font-normal">
<FormLabel className="text-sm font-normal hover:cursor-pointer">
{_.startCase(item)}
</FormLabel>
</FormItem>
Expand Down Expand Up @@ -165,7 +165,7 @@ const JobFilters = ({ searchParams }: { searchParams: JobQuerySchemaType }) => {
>
<FormControl>
<Checkbox
className="rounded border-slate-300"
className="rounded border-slate-300 hover:border-2"
checked={field.value?.includes(item)}
onCheckedChange={(checked) => {
checked
Expand All @@ -181,7 +181,7 @@ const JobFilters = ({ searchParams }: { searchParams: JobQuerySchemaType }) => {
}}
/>
</FormControl>
<FormLabel className="text-sm font-normal">
<FormLabel className="text-sm font-normal hover:cursor-pointer">
{_.startCase(item)}
</FormLabel>
</FormItem>
Expand Down Expand Up @@ -218,7 +218,7 @@ const JobFilters = ({ searchParams }: { searchParams: JobQuerySchemaType }) => {
>
<FormControl>
<Checkbox
className="rounded border-slate-300"
className="rounded border-slate-300 hover:border-2"
checked={field.value?.includes(
item.value
)}
Expand All @@ -236,7 +236,7 @@ const JobFilters = ({ searchParams }: { searchParams: JobQuerySchemaType }) => {
}}
/>
</FormControl>
<FormLabel className="text-sm font-normal">
<FormLabel className="text-sm font-normal hover:cursor-pointer">
{item.label}
</FormLabel>
</FormItem>
Expand Down

0 comments on commit 414e55f

Please sign in to comment.