bk
This commit is contained in:
36
src/app/_layout.tsxbk
Normal file
36
src/app/_layout.tsxbk
Normal file
@@ -0,0 +1,36 @@
|
||||
import type { Metadata } from "next";
|
||||
import "./globals.css";
|
||||
import QueryProvider from "@/app/QueryProvider";
|
||||
import { AppHeader } from "@/app/components/AppHeader";
|
||||
import { AppSidebar } from "@/app/components/AppSidebar";
|
||||
import { AppFooter } from "@/app/components/AppFooter";
|
||||
import { ToastProvider } from "@/app/components/ui/ToastProvider";
|
||||
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "msg App",
|
||||
description: "msg App",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body>
|
||||
<QueryProvider>
|
||||
<ToastProvider>
|
||||
<AppHeader />
|
||||
<div style={{ display: "flex", minHeight: "80vh" }}>
|
||||
<AppSidebar />
|
||||
<main style={{ flex: 1, padding: 16 }}>{children}</main>
|
||||
</div>
|
||||
<AppFooter />
|
||||
</ToastProvider>
|
||||
</QueryProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
17
src/app/_page.tsx.bk
Normal file
17
src/app/_page.tsx.bk
Normal file
@@ -0,0 +1,17 @@
|
||||
import Image from "next/image";
|
||||
import { QuickActions } from "@/app/components/QuickActions";
|
||||
import { HeroBanner } from "@/app/components/HeroBanner";
|
||||
import { PostList } from "@/app/components/PostList";
|
||||
import { PersonalWidgets } from "@/app/components/PersonalWidgets";
|
||||
|
||||
export default function Home({ searchParams }: { searchParams?: { sort?: "recent" | "popular" } }) {
|
||||
const sort = searchParams?.sort ?? "recent";
|
||||
return (
|
||||
<div className="">
|
||||
<HeroBanner />
|
||||
<QuickActions />
|
||||
<PostList sort={sort} />
|
||||
<PersonalWidgets />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user