From 294849a11156d1079679282c316713312d2d85be Mon Sep 17 00:00:00 2001 From: mackt <1033530438@qq.com> Date: Tue, 30 Apr 2024 13:04:15 +0800 Subject: [PATCH] =?UTF-8?q?update(vol):=201.=20padding-top=202.=20?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E6=8C=89=E9=92=AE=E4=BD=8D=E7=BD=AE=203.=20?= =?UTF-8?q?=E6=94=B6=E8=97=8F=E6=8C=89=E9=92=AE=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/vol/[journalId]/page.tsx | 65 +++++++++---------- src/components/Journal/JournalCard.tsx | 6 +- .../JournalDetail/VolDetailCoverCard.tsx | 2 +- .../Journal/JournalList/VolListCoverCard.tsx | 2 +- 4 files changed, 35 insertions(+), 40 deletions(-) diff --git a/src/app/vol/[journalId]/page.tsx b/src/app/vol/[journalId]/page.tsx index 044906b..cc80197 100644 --- a/src/app/vol/[journalId]/page.tsx +++ b/src/app/vol/[journalId]/page.tsx @@ -34,52 +34,45 @@ export default async function JournalDetail({ } return ( -
+
{/* 封面 */} - {/* 期刊号 & 标签 */} -
-
{`VOL.${journalInfo?.journalNo.toString().padStart(4, '0')}`}
- {journalInfo?.tags.length > 0 && - journalInfo.tags.map((tag: string) => ( - // - // {tag} - // +
+ {/* 期刊号 & 标签 */} +
+
{`VOL.${journalInfo?.journalNo.toString().padStart(4, '0')}`}
+ {journalInfo?.tags.length > 0 && + journalInfo.tags.map((tag: string) => ( + + {tag} + + ))} +
- - {tag} - - ))} + {/* 收藏期刊 */} +
{/* 标题 */}
-
-
- {journalInfo.title} -
- - {/* 收藏期刊 */} - +
+ {journalInfo.title}
+ {/* 作者 & 时间 */}

{journalInfo.editor}

diff --git a/src/components/Journal/JournalCard.tsx b/src/components/Journal/JournalCard.tsx index ee3f5b5..18c7c94 100644 --- a/src/components/Journal/JournalCard.tsx +++ b/src/components/Journal/JournalCard.tsx @@ -19,13 +19,15 @@ export default function JournalCard({ title, journalNo, showPlay = false, + scale = false, children, className, }: { image: string; - title?: string; journalNo: string; + title?: string; showPlay?: boolean; + scale?: boolean; children?: React.ReactNode; className?: string; }) { @@ -41,7 +43,7 @@ export default function JournalCard({ src={image} unoptimized alt={`Vol${journalNo}`} - className={`absolute bottom-0 group-hover:transform-scale-103 transition-transform-300`} + className={`absolute bottom-0 ${scale && 'group-hover:transform-scale-103 transition-transform-300'}`} /> {/* 标题 */} {!!title && ( diff --git a/src/components/Journal/JournalDetail/VolDetailCoverCard.tsx b/src/components/Journal/JournalDetail/VolDetailCoverCard.tsx index d225e3b..08d2916 100644 --- a/src/components/Journal/JournalDetail/VolDetailCoverCard.tsx +++ b/src/components/Journal/JournalDetail/VolDetailCoverCard.tsx @@ -8,7 +8,7 @@ export default function CoverCard({ journalInfo, songList }: { journalInfo: Jour return (
- +
); } diff --git a/src/components/Journal/JournalList/VolListCoverCard.tsx b/src/components/Journal/JournalList/VolListCoverCard.tsx index 6d6ecbc..76559a0 100644 --- a/src/components/Journal/JournalList/VolListCoverCard.tsx +++ b/src/components/Journal/JournalList/VolListCoverCard.tsx @@ -4,7 +4,7 @@ import { JournalCard } from '@/components'; export default function CoverCard({ title, img, no }: { title: string; img: string; no: string }) { return ( - +

{title}