From d6a0c0010d1795bcf87394d95b57ce0a5a402372 Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Wed, 4 Dec 2024 07:30:36 +0700 Subject: [PATCH] refactor : put all landing in specific folder --- .../{ => (landing)}/audio/filter/page.tsx | 0 .../{ => (landing)}/document/filter/page.tsx | 0 app/[locale]/(landing)/document/layout.tsx | 22 +++++++++++++++++++ .../image/detail/[slug]/page.tsx | 0 .../{ => (landing)}/image/filter/page.tsx | 0 app/[locale]/(landing)/image/layout.tsx | 22 +++++++++++++++++++ .../indeks/detail/[slug]/page.tsx | 0 app/[locale]/(landing)/indeks/layout.tsx | 22 +++++++++++++++++++ app/[locale]/{ => (landing)}/indeks/page.tsx | 0 app/[locale]/(landing)/schedule/layout.tsx | 22 +++++++++++++++++++ .../{ => (landing)}/schedule/page.tsx | 0 .../{ => (landing)}/video/filter/page.tsx | 0 app/[locale]/(landing)/video/layout.tsx | 22 +++++++++++++++++++ app/[locale]/layout.tsx | 4 ---- app/[locale]/page.tsx | 2 ++ 15 files changed, 112 insertions(+), 4 deletions(-) rename app/[locale]/{ => (landing)}/audio/filter/page.tsx (100%) rename app/[locale]/{ => (landing)}/document/filter/page.tsx (100%) create mode 100644 app/[locale]/(landing)/document/layout.tsx rename app/[locale]/{ => (landing)}/image/detail/[slug]/page.tsx (100%) rename app/[locale]/{ => (landing)}/image/filter/page.tsx (100%) create mode 100644 app/[locale]/(landing)/image/layout.tsx rename app/[locale]/{ => (landing)}/indeks/detail/[slug]/page.tsx (100%) create mode 100644 app/[locale]/(landing)/indeks/layout.tsx rename app/[locale]/{ => (landing)}/indeks/page.tsx (100%) create mode 100644 app/[locale]/(landing)/schedule/layout.tsx rename app/[locale]/{ => (landing)}/schedule/page.tsx (100%) rename app/[locale]/{ => (landing)}/video/filter/page.tsx (100%) create mode 100644 app/[locale]/(landing)/video/layout.tsx diff --git a/app/[locale]/audio/filter/page.tsx b/app/[locale]/(landing)/audio/filter/page.tsx similarity index 100% rename from app/[locale]/audio/filter/page.tsx rename to app/[locale]/(landing)/audio/filter/page.tsx diff --git a/app/[locale]/document/filter/page.tsx b/app/[locale]/(landing)/document/filter/page.tsx similarity index 100% rename from app/[locale]/document/filter/page.tsx rename to app/[locale]/(landing)/document/filter/page.tsx diff --git a/app/[locale]/(landing)/document/layout.tsx b/app/[locale]/(landing)/document/layout.tsx new file mode 100644 index 00000000..ccf7f8d3 --- /dev/null +++ b/app/[locale]/(landing)/document/layout.tsx @@ -0,0 +1,22 @@ +import LayoutProvider from "@/providers/layout.provider"; +import LayoutContentProvider from "@/providers/content.provider"; +import DashCodeSidebar from '@/components/partials/sidebar' +import DashCodeFooter from '@/components/partials/footer' +import ThemeCustomize from '@/components/partials/customizer' +import DashCodeHeader from '@/components/partials/header' +import { auth } from "@/lib/auth"; +import { redirect } from "@/components/navigation"; +import Navbar from "@/components/landing-page/Navbar"; +import Footer from "@/components/landing-page/Footer"; + +const layout = async ({ children }: { children: React.ReactNode }) => { + return ( + <> + + {children} +