diff --git a/public/image/viewTransition.svg b/public/image/viewTransition.svg new file mode 100644 index 0000000..d15cab0 --- /dev/null +++ b/public/image/viewTransition.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/app/(app)/(home)/page.tsx b/src/app/(app)/(home)/page.tsx index 222eea9..a1a5b3b 100644 --- a/src/app/(app)/(home)/page.tsx +++ b/src/app/(app)/(home)/page.tsx @@ -1,5 +1,5 @@ 'use client'; export default function Home() { - return
哈哈qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq哈
; + return
哈哈qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq哈
; } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index a18096b..3bda2dc 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,6 +5,7 @@ import { Metadata, Viewport } from 'next'; import WebAppProviders from '@/components/providers/root'; import AccentColorStyleInjector from '@/components/modules/shared/AccentColorStyleInjector'; +import Root from '@/components/layout/Root'; import { seo } from '~/seo'; export const metadata: Metadata = { @@ -62,7 +63,9 @@ export default async function RootLayout({ children }: PropsWithChildren) { -
{children}
+
+ {children} +
@@ -86,9 +89,3 @@ const SayHi = () => { /> ); }; - -declare global { - interface Window { - version: string; - } -} diff --git a/src/components/layout/Content/Content.tsx b/src/components/layout/Content/Content.tsx new file mode 100644 index 0000000..bb4f5df --- /dev/null +++ b/src/components/layout/Content/Content.tsx @@ -0,0 +1,7 @@ +import type { PropsWithChildren } from 'react'; + +const Content = ({ children }: PropsWithChildren) => { + return
{children}
; +}; + +export default Content; diff --git a/src/components/layout/Content/index.ts b/src/components/layout/Content/index.ts new file mode 100644 index 0000000..d83c05e --- /dev/null +++ b/src/components/layout/Content/index.ts @@ -0,0 +1,2 @@ +import Content from './Content'; +export default Content; diff --git a/src/components/layout/Footer/Footer.tsx b/src/components/layout/Footer/Footer.tsx new file mode 100644 index 0000000..24d3302 --- /dev/null +++ b/src/components/layout/Footer/Footer.tsx @@ -0,0 +1,20 @@ +import ThemeSwitcher from '@/components/ui/ThemeSwitcher'; + +const Footer = () => { + return ( + + ); +}; + +export default Footer; diff --git a/src/components/layout/Footer/index.ts b/src/components/layout/Footer/index.ts new file mode 100644 index 0000000..60c8c2c --- /dev/null +++ b/src/components/layout/Footer/index.ts @@ -0,0 +1,2 @@ +import Footer from './Footer'; +export default Footer; diff --git a/src/components/layout/Root/Root.tsx b/src/components/layout/Root/Root.tsx new file mode 100644 index 0000000..8ba8747 --- /dev/null +++ b/src/components/layout/Root/Root.tsx @@ -0,0 +1,23 @@ +import type { PropsWithChildren } from 'react'; + +// import { ClientOnly } from '~/components/common/ClientOnly'; + +import Content from '../Content'; +import Footer from '../Footer'; +// import { Header } from '../Header'; + +const Root = ({ children }: PropsWithChildren) => { + return ( + <> + {/*
*/} + {children} + +