refactor : put all landing in specific folder
This commit is contained in:
parent
c980554b11
commit
d6a0c0010d
|
|
@ -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 (
|
||||||
|
<>
|
||||||
|
<Navbar />
|
||||||
|
{children}
|
||||||
|
<Footer />
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
export default layout;
|
||||||
|
|
@ -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 (
|
||||||
|
<>
|
||||||
|
<Navbar />
|
||||||
|
{children}
|
||||||
|
<Footer />
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
export default layout;
|
||||||
|
|
@ -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 (
|
||||||
|
<>
|
||||||
|
<Navbar />
|
||||||
|
{children}
|
||||||
|
<Footer />
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
export default layout;
|
||||||
|
|
@ -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 (
|
||||||
|
<>
|
||||||
|
<Navbar />
|
||||||
|
{children}
|
||||||
|
<Footer />
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
export default layout;
|
||||||
|
|
@ -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 (
|
||||||
|
<>
|
||||||
|
<Navbar />
|
||||||
|
{children}
|
||||||
|
<Footer />
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
export default layout;
|
||||||
|
|
@ -13,8 +13,6 @@ import { NextIntlClientProvider } from "next-intl";
|
||||||
import { getMessages } from "next-intl/server";
|
import { getMessages } from "next-intl/server";
|
||||||
import DirectionProvider from "@/providers/direction-provider";
|
import DirectionProvider from "@/providers/direction-provider";
|
||||||
import AuthProvider from "@/providers/auth.provider";
|
import AuthProvider from "@/providers/auth.provider";
|
||||||
import Navbar from "@/components/landing-page/Navbar";
|
|
||||||
import Footer from "@/components/landing-page/Footer";
|
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Dashcode admin Template",
|
title: "Dashcode admin Template",
|
||||||
|
|
@ -38,9 +36,7 @@ export default async function RootLayout({
|
||||||
<ThemeProvider attribute="class" defaultTheme="light">
|
<ThemeProvider attribute="class" defaultTheme="light">
|
||||||
<MountedProvider>
|
<MountedProvider>
|
||||||
<DirectionProvider direction={direction}>
|
<DirectionProvider direction={direction}>
|
||||||
<Navbar />
|
|
||||||
{children}
|
{children}
|
||||||
<Footer />
|
|
||||||
</DirectionProvider>
|
</DirectionProvider>
|
||||||
</MountedProvider>
|
</MountedProvider>
|
||||||
<Toaster />
|
<Toaster />
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,14 @@ import Footer from "@/components/landing-page/Footer";
|
||||||
const Home = ({ params: { locale } }: { params: { locale: string } }) => {
|
const Home = ({ params: { locale } }: { params: { locale: string } }) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<Navbar />
|
||||||
<Hero />
|
<Hero />
|
||||||
<SearchSection />
|
<SearchSection />
|
||||||
<KontenTerbaru />
|
<KontenTerbaru />
|
||||||
<KontenTerpopuler />
|
<KontenTerpopuler />
|
||||||
<KategoriKonten />
|
<KategoriKonten />
|
||||||
<LiputanWilayah />
|
<LiputanWilayah />
|
||||||
|
<Footer />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue