From 9d6eeef4adb238e62691d00388d745302e211520 Mon Sep 17 00:00:00 2001 From: GanghyeonSeo Date: Fri, 7 Jun 2024 19:11:57 +0900 Subject: [PATCH] fix: postDetailPage style --- src/pages/PostDetailPage.tsx | 143 +++++++++++++++++++++++++---------- 1 file changed, 103 insertions(+), 40 deletions(-) diff --git a/src/pages/PostDetailPage.tsx b/src/pages/PostDetailPage.tsx index 96057a5..8f69c4f 100644 --- a/src/pages/PostDetailPage.tsx +++ b/src/pages/PostDetailPage.tsx @@ -28,56 +28,119 @@ const PostDetailPage = () => { return ( - - + - - {post.contents.title} - - - - - {post.views} - - - - - - - - {post.author.name} - - Author + + + {post.contents.title} - - + + + + {post.views} + + + - - {post.contents.body} - - - {post.imageUrls.map((url) => ( - - ))} + + + + + {post.author.name} + + Author + + + + {'작성일: ' + post.createdAt.substring(0, 10)} + + + + + 1 ? '' : 'center', + alignItems: 'center', + }} + > + {post.imageUrls.map((url) => ( + + ))} + + + {post.contents.body} +