This commit is contained in:
quantulr
2023-11-03 17:25:10 +08:00
parent 2423f8c2e8
commit b6a722fa79
62 changed files with 415 additions and 260 deletions

View File

@ -23,33 +23,33 @@ const LatestNews = async () => {
});
return (
<div className={"h-[180px] bg-white p-2 flex"}>
<div className={"flex h-[180px] bg-white p-2"}>
<Link
href={`general-news/${lists[0].id}`}
className={"article-cover w-[207px]"}
>
<img
className={"w-full h-full object-cover"}
className={"h-full w-full object-cover"}
src={`${process.env.NEXT_PUBLIC_ADMIN_BASE_URL}/uploads/${article.image}`}
alt={""}
/>
</Link>
<div className={"w-0 flex-1 ml-1 relative"}>
<div className={"relative ml-1 w-0 flex-1"}>
<Link
href={`general-news/${lists[0].id}`}
className={"title block truncate text-[#186ab6] text-base"}
className={"title block truncate text-base text-[#186ab6]"}
>
{article.title}
</Link>
<Link
href={`general-news/${lists[0].id}`}
className={"content text-xs line-clamp-4 leading-7"}
className={"content line-clamp-4 text-xs leading-7"}
>
{content}
</Link>
<Link
href={"/general-news/pages/1"}
className={"text-xs text-[#ffc001] absolute left-0 bottom-0"}
className={"absolute bottom-0 left-0 text-xs text-[#ffc001]"}
>
</Link>