[resumes][fix] Change browse list item styling

pull/326/head
Tan Su Yin 3 years ago
parent 2f13d5f009
commit 4100404c85

@ -13,8 +13,8 @@ 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 className="grid grid-cols-8 border-b border-slate-200 p-4">
<div> <div className="col-span-4">
{resumeInfo.title} {resumeInfo.title}
<div className="mt-2 flex items-center justify-start text-xs text-indigo-500"> <div className="mt-2 flex items-center justify-start text-xs text-indigo-500">
{resumeInfo.role} {resumeInfo.role}
@ -33,11 +33,11 @@ export default function BrowseListItem({ href, resumeInfo }: Props) {
</div> </div>
</div> </div>
</div> </div>
<div className="self-center text-sm text-slate-500"> <div className="col-span-2 self-center text-sm text-slate-500">
{/* TODO: Replace hardcoded days ago with calculated days ago*/} {/* TODO: Replace hardcoded days ago with calculated days ago*/}
Uploaded 2 days ago by {resumeInfo.user} Uploaded 2 days ago by {resumeInfo.user}
</div> </div>
<ChevronRightIcon className="w-8" /> <ChevronRightIcon className="col-span-2 w-8 self-center justify-self-center" />
</div> </div>
</Link> </Link>
); );

Loading…
Cancel
Save