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

UI Improvements of Skills Tag and fixes Design according to the issue #368 #492

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"lodash": "^4.17.21",
"lucide-react": "^0.426.0",
"next": "^14.2.12",
"next-auth": "^4.24.7",
"next-auth": "^4.24.8",
"next-themes": "^0.3.0",
"nextjs-toploader": "^3.7.15",
"node-cron": "^3.0.3",
Expand Down Expand Up @@ -102,4 +102,4 @@
"ts-node": "^10.9.2",
"typescript": "^5.6.2"
}
}
}
6 changes: 4 additions & 2 deletions src/components/Jobcard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ export default function JobCard({
</h2>
<div className="flex">
<p>{job.companyName + '.'} </p>
<p className="ml-2">{'Posted on ' + job.postedAt.toDateString()}</p>
<p className="ml-2">
{'• Posted on ' + job.postedAt.toDateString()}
</p>
</div>
</div>
</div>
<div className="flex flex-wrap gap-2 text-xs text-muted-foreground">
<div className="p-2 bg-blue-100 dark:bg-blue-500 dark:bg-opacity-10 bg-opacity-90 text-blue-500 dark:text-blue-400 rounded">
<div className="p-2 bg-blue-100 dark:bg-blue-500 dark:bg-opacity-10 bg-opacity-90 text-blue-500 dark:text-blue-400 rounded-sm">
{_.startCase(job.type)}
</div>
<span className="flex items-center gap-0.5">
Expand Down
6 changes: 3 additions & 3 deletions src/components/job-skills.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ export const JobSkills = ({ skills }: JobSkillsProps) => {
<SkillTag key={index} skill={skill} />
))}
{remainingSkillsCount > 0 && (
<div className="bg-slate-500 bg-opacity-10 text-slate-500 dark:text-slate-400 font-medium text-sm rounded-full px-2">
<div className="bg-slate-500 bg-opacity-10 text-slate-500 dark:text-slate-400 font-medium text-sm rounded-full p-2">
+{remainingSkillsCount} more
</div>
)}
</div>
);
};
const NoSkills = () => (
<div className="mt-3 bg-slate-500 flex justify-start items-center gap-3 bg-opacity-10 text-slate-500 dark:text-slate-400 font-medium text-sm rounded-full px-2">
<div className="mt-3 bg-slate-500 flex justify-start items-center gap-3 bg-opacity-10 text-slate-500 dark:text-slate-400 font-medium text-sm rounded-full">
<icons.alert size={12} /> No skills provided
</div>
);
const SkillTag = ({ skill }: { skill: string }) => (
<div className="bg-slate-500 bg-opacity-10 text-slate-500 dark:text-slate-400 font-medium text-sm rounded-full px-2">
<div className="bg-slate-500 bg-opacity-10 text-slate-500 dark:text-slate-400 font-medium text-sm rounded-full p-2">
{skill}
</div>
);