This commit is contained in:
koreacomp5
2025-10-11 17:30:11 +09:00
parent fa382016c0
commit 0e8eb2e85e
2 changed files with 53 additions and 0 deletions

36
src/app/_layout.tsxbk Normal file
View 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
View 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>
);
}