update
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user