From c087bdc4a192b572e2031ffde7d72ef60d3ee050 Mon Sep 17 00:00:00 2001 From: Johnson Mao Date: Tue, 31 Oct 2023 22:20:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20update=20web=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/[lang]/page.tsx | 18 +++++++++++------- src/app/[lang]/posts/[postId]/page.tsx | 8 +++++--- src/app/[lang]/posts/page.tsx | 18 +++++++++++------- src/components/Container/Container.tsx | 3 ++- 4 files changed, 29 insertions(+), 18 deletions(-) diff --git a/src/app/[lang]/page.tsx b/src/app/[lang]/page.tsx index f0456e1..983e7eb 100644 --- a/src/app/[lang]/page.tsx +++ b/src/app/[lang]/page.tsx @@ -23,13 +23,17 @@ async function RootPage({ params: { lang } }: RootParams) { const { metadata } = await getDictionary(lang); return ( - -

- {metadata.title} -

-

{metadata.description}

- -
+ <> + +

+ {metadata.title} +

+

{metadata.description}

+
+ + + + ); } diff --git a/src/app/[lang]/posts/[postId]/page.tsx b/src/app/[lang]/posts/[postId]/page.tsx index 6b6935a..0995456 100644 --- a/src/app/[lang]/posts/[postId]/page.tsx +++ b/src/app/[lang]/posts/[postId]/page.tsx @@ -39,11 +39,13 @@ async function PostPage({ params: { postId } }: PostParams) { return ( <> - -

+ +

{frontmatter.title}

- + +
+
{content}
diff --git a/src/app/[lang]/posts/page.tsx b/src/app/[lang]/posts/page.tsx index cf5a6be..71c3cbd 100644 --- a/src/app/[lang]/posts/page.tsx +++ b/src/app/[lang]/posts/page.tsx @@ -23,13 +23,17 @@ async function RootPage({ params: { lang } }: RootParams) { const { metadata } = await getDictionary(lang); return ( - -

- {metadata.title} -

-

{metadata.description}

- -
+ <> + +

+ {metadata.title} +

+

{metadata.description}

+
+ + + + ); } diff --git a/src/components/Container/Container.tsx b/src/components/Container/Container.tsx index e45be00..5a30749 100644 --- a/src/components/Container/Container.tsx +++ b/src/components/Container/Container.tsx @@ -13,7 +13,8 @@ const Container = forwardRef(