|
|
@ -1,5 +1,7 @@
|
|
|
|
import Link from 'next/link';
|
|
|
|
import Link from 'next/link';
|
|
|
|
import type { UrlObject } from 'url';
|
|
|
|
import type { UrlObject } from 'url';
|
|
|
|
|
|
|
|
import { ChevronRightIcon } from '@heroicons/react/20/solid';
|
|
|
|
|
|
|
|
import { ChatBubbleLeftIcon, StarIcon } from '@heroicons/react/24/outline';
|
|
|
|
|
|
|
|
|
|
|
|
type ResumeInfo = Readonly<{
|
|
|
|
type ResumeInfo = Readonly<{
|
|
|
|
createdAt: Date;
|
|
|
|
createdAt: Date;
|
|
|
@ -19,11 +21,31 @@ type Props = Readonly<{
|
|
|
|
export default function BrowseListItem({ href, resumeInfo }: Props) {
|
|
|
|
export default function BrowseListItem({ href, resumeInfo }: Props) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Link href={href}>
|
|
|
|
<Link href={href}>
|
|
|
|
|
|
|
|
<div className="flex justify-between border-b border-slate-200 p-4">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
{resumeInfo.title}
|
|
|
|
{resumeInfo.title}
|
|
|
|
|
|
|
|
<div className="mt-2 flex items-center justify-start text-xs text-indigo-500">
|
|
|
|
{resumeInfo.role}
|
|
|
|
{resumeInfo.role}
|
|
|
|
|
|
|
|
<div className="ml-6 rounded-md border border-indigo-500 p-1">
|
|
|
|
{resumeInfo.experience}
|
|
|
|
{resumeInfo.experience}
|
|
|
|
{resumeInfo.numComments}
|
|
|
|
</div>
|
|
|
|
{resumeInfo.numStars}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="mt-2 flex justify-start text-xs text-slate-500">
|
|
|
|
|
|
|
|
<div className="flex gap-2 pr-8">
|
|
|
|
|
|
|
|
<ChatBubbleLeftIcon className="w-4" />
|
|
|
|
|
|
|
|
{resumeInfo.numComments} comments
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="flex gap-2">
|
|
|
|
|
|
|
|
<StarIcon className="w-4" />
|
|
|
|
|
|
|
|
{resumeInfo.numStars} stars
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="self-center text-sm text-slate-500">
|
|
|
|
|
|
|
|
Uploaded 2 days ago by {resumeInfo.user}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ChevronRightIcon className="w-8" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</Link>
|
|
|
|
</Link>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|