From d76f54b2b1d181137086630bfe82ace1a9a75c47 Mon Sep 17 00:00:00 2001 From: Zoe <7711zoe@gmail.com> Date: Sat, 18 Jan 2025 00:24:32 +0800 Subject: [PATCH] BLOG-5 feat: mobile home page first view --- frontend/src/app/globals.css | 5 ++++- frontend/src/app/page.tsx | 34 ++++++++++++++++++++++++++++++- frontend/src/ui/layout/navbar.tsx | 2 +- 3 files changed, 38 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css index 7502d79..034d269 100644 --- a/frontend/src/app/globals.css +++ b/frontend/src/app/globals.css @@ -3,5 +3,8 @@ @tailwind utilities; body { - @apply bg-white text-gray-600; + @apply bg-white text-base font-normal text-gray-600; + + --tool-bar-height: 4rem; + --content-height: calc(100vh - var(--tool-bar-height)); } diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 66e7168..d68c76d 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -1,5 +1,37 @@ export default function HomePage() { return ( -
+
+

Hello 大家好!

+

+ 我是 +
+ Squid +
+ 魷魚 +

+
+
+
+ + + + + + + + + + + + + + +
+
+
); } + +function Hashtag(props: { tag: string }) { + return # {props.tag}; +} diff --git a/frontend/src/ui/layout/navbar.tsx b/frontend/src/ui/layout/navbar.tsx index 49893fe..040610c 100644 --- a/frontend/src/ui/layout/navbar.tsx +++ b/frontend/src/ui/layout/navbar.tsx @@ -5,7 +5,7 @@ type Props = {}; export default function Navbar({}: Props) { return (
-
+
魚之魷魂