From 34a5942419ed075f069569ad6f964e4e8ebd281d Mon Sep 17 00:00:00 2001 From: mackt <1033530438@qq.com> Date: Sat, 27 Apr 2024 12:05:18 +0800 Subject: [PATCH] update(home page): styles --- src/app/music/[category]/[[...page]]/page.tsx | 8 ++++---- src/components/Journal/JournalItem.tsx | 2 +- src/components/Journal/JournalList/VolListCoverCard.tsx | 2 +- src/components/Journal/JournalRecommendCard.tsx | 2 +- src/components/Journal/JournalRecommendList.tsx | 8 +++----- src/components/Pagination/PaginationItem.tsx | 2 +- 6 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/app/music/[category]/[[...page]]/page.tsx b/src/app/music/[category]/[[...page]]/page.tsx index 4b2d906..28779e4 100644 --- a/src/app/music/[category]/[[...page]]/page.tsx +++ b/src/app/music/[category]/[[...page]]/page.tsx @@ -67,13 +67,13 @@ export default async function Journal({ params }: { params: { category?: string; {/* header */} -
-
{categoryInfo?.nameCh ?? '全部'}
+
+
{categoryInfo?.nameCh ?? '全部'}
{/* 期刊列表 */} -
+
{journalList.rows.map((item: JournalInfo) => ( ))} @@ -91,7 +91,7 @@ export default async function Journal({ params }: { params: { category?: string;
{/* 热门推荐 */} -
+
{!!recommendList?.length ? :
}
diff --git a/src/components/Journal/JournalItem.tsx b/src/components/Journal/JournalItem.tsx index 5f7e814..622947e 100644 --- a/src/components/Journal/JournalItem.tsx +++ b/src/components/Journal/JournalItem.tsx @@ -21,7 +21,7 @@ export default function JournalItem({ {/* 摘要 */} -

+

{summary}

diff --git a/src/components/Journal/JournalList/VolListCoverCard.tsx b/src/components/Journal/JournalList/VolListCoverCard.tsx index 46fb4e1..6d6ecbc 100644 --- a/src/components/Journal/JournalList/VolListCoverCard.tsx +++ b/src/components/Journal/JournalList/VolListCoverCard.tsx @@ -6,7 +6,7 @@ export default function CoverCard({ title, img, no }: { title: string; img: stri return (
-

{title}

+

{title}

diff --git a/src/components/Journal/JournalRecommendCard.tsx b/src/components/Journal/JournalRecommendCard.tsx index ee61ed7..8d385d6 100644 --- a/src/components/Journal/JournalRecommendCard.tsx +++ b/src/components/Journal/JournalRecommendCard.tsx @@ -14,7 +14,7 @@ export default function JournalRecommendCard({ title, image, userCollectCount }: />
-

{title}

+

{title}

{`${userCollectCount}人收藏`}

diff --git a/src/components/Journal/JournalRecommendList.tsx b/src/components/Journal/JournalRecommendList.tsx index 4ab2fc4..5f4e270 100644 --- a/src/components/Journal/JournalRecommendList.tsx +++ b/src/components/Journal/JournalRecommendList.tsx @@ -6,11 +6,11 @@ interface Props { list: JournalInfo[]; } -const JournalRecommendList = async ({ list }: Props) => { +export default function JournalRecommendList({ list }: Props) { return (
{/* 分类 & 电台 */} -
热门推荐
+
热门推荐
{/* 期刊 list */}
{!!list?.length && @@ -22,6 +22,4 @@ const JournalRecommendList = async ({ list }: Props) => {
); -}; - -export default JournalRecommendList; +} diff --git a/src/components/Pagination/PaginationItem.tsx b/src/components/Pagination/PaginationItem.tsx index 427a933..dd25bd0 100644 --- a/src/components/Pagination/PaginationItem.tsx +++ b/src/components/Pagination/PaginationItem.tsx @@ -28,7 +28,7 @@ function isServerProps(props: PaginationItemProps): props is ServerProps { // 通用样式 const commonClassName = - 'w-[40px] h-[40px] text-[14px] text-center leading-[40px] rounded-[3px] text-[#000] hover-text-brand bg-[#F2F3F7]'; + 'w-[40px] h-[40px] rounded-[3px] text-[14px] text-center text-[#000] hover-text-brand leading-[40px] font-500 bg-[#F2F3F7]'; // 激活状态样式 const activeClassName = 'text-[#fff] bg-brand';