diff --git a/src/app/layout.tsx b/src/app/layout.tsx index c3bf743..1e4c330 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,6 +3,8 @@ import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; import Head from "next/head"; import type { Viewport } from 'next' +import Link from "next/link"; +import Image from "next/image"; export const viewport: Viewport = { width: 'device-width', @@ -24,6 +26,34 @@ export const metadata: Metadata = { description: "A Website to Learn Languages", }; +function MyLink( + { href, label }: { href: string, label: string } +) { + return ( + {label} + ) +} +function Navbar() { + return ( +
+ + logo + + 学语言 + +
+ + +
+
+ ); +} + export default function RootLayout({ children, }: Readonly<{ @@ -40,6 +70,7 @@ export default function RootLayout({ + {children} diff --git a/src/app/page.tsx b/src/app/page.tsx index 118b46c..b85039f 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,33 +1,12 @@ import Link from "next/link"; -import Image from "next/image"; -function MyLink( - { href, label }: { href: string, label: string } -) { - return ( - {label} - ) -} + + + function TopArea() { return (
-
- - logo - - 学语言 - -
- - -
-

Learn Languages