From 333f5756934d56442a0674593ce512210d3a64f9 Mon Sep 17 00:00:00 2001 From: bipproduction Date: Mon, 17 Feb 2025 12:37:27 +0800 Subject: [PATCH] tambahan --- src/app/(pages)/desa/[sub]/page.tsx | 5 ++ src/app/{ => (pages)}/desa/page.tsx | 0 src/app/(pages)/ekonomi/[sub]/page.tsx | 5 ++ src/app/(pages)/ekonomi/page.tsx | 7 +++ src/app/(pages)/inovasi/[sub]/page.tsx | 7 +++ src/app/{ => (pages)}/inovasi/page.tsx | 0 src/app/(pages)/keamanan/[sub]/page.tsx | 7 +++ src/app/{ => (pages)}/keamanan/page.tsx | 0 src/app/(pages)/kesehatan/[sub]/page.tsx | 7 +++ src/app/{ => (pages)}/kesehatan/page.tsx | 0 src/app/(pages)/lingkungan/[sub]/page.tsx | 7 +++ src/app/(pages)/lingkungan/page.tsx | 7 +++ src/app/(pages)/pendidikan/[sub]/page.tsx | 7 +++ src/app/{ => (pages)}/pendidikan/page.tsx | 0 src/app/ekonomi/page.tsx | 7 --- src/app/lingkungan/page.tsx | 7 --- src/com/MainLayout.tsx | 11 ++-- src/com/main-page/content-1/ModuleView.tsx | 20 +++++--- src/com/main-page/content-1/index.tsx | 59 ++++++++++------------ 19 files changed, 106 insertions(+), 57 deletions(-) create mode 100644 src/app/(pages)/desa/[sub]/page.tsx rename src/app/{ => (pages)}/desa/page.tsx (100%) create mode 100644 src/app/(pages)/ekonomi/[sub]/page.tsx create mode 100644 src/app/(pages)/ekonomi/page.tsx create mode 100644 src/app/(pages)/inovasi/[sub]/page.tsx rename src/app/{ => (pages)}/inovasi/page.tsx (100%) create mode 100644 src/app/(pages)/keamanan/[sub]/page.tsx rename src/app/{ => (pages)}/keamanan/page.tsx (100%) create mode 100644 src/app/(pages)/kesehatan/[sub]/page.tsx rename src/app/{ => (pages)}/kesehatan/page.tsx (100%) create mode 100644 src/app/(pages)/lingkungan/[sub]/page.tsx create mode 100644 src/app/(pages)/lingkungan/page.tsx create mode 100644 src/app/(pages)/pendidikan/[sub]/page.tsx rename src/app/{ => (pages)}/pendidikan/page.tsx (100%) delete mode 100644 src/app/ekonomi/page.tsx delete mode 100644 src/app/lingkungan/page.tsx diff --git a/src/app/(pages)/desa/[sub]/page.tsx b/src/app/(pages)/desa/[sub]/page.tsx new file mode 100644 index 00000000..68bde865 --- /dev/null +++ b/src/app/(pages)/desa/[sub]/page.tsx @@ -0,0 +1,5 @@ +export default function Page({ params }: { params: { sub: string } }) { + return
+ {params.sub} +
+} \ No newline at end of file diff --git a/src/app/desa/page.tsx b/src/app/(pages)/desa/page.tsx similarity index 100% rename from src/app/desa/page.tsx rename to src/app/(pages)/desa/page.tsx diff --git a/src/app/(pages)/ekonomi/[sub]/page.tsx b/src/app/(pages)/ekonomi/[sub]/page.tsx new file mode 100644 index 00000000..a340d73b --- /dev/null +++ b/src/app/(pages)/ekonomi/[sub]/page.tsx @@ -0,0 +1,5 @@ +export default function Page() { + return
+ ekonomi +
+} \ No newline at end of file diff --git a/src/app/(pages)/ekonomi/page.tsx b/src/app/(pages)/ekonomi/page.tsx new file mode 100644 index 00000000..870674ed --- /dev/null +++ b/src/app/(pages)/ekonomi/page.tsx @@ -0,0 +1,7 @@ +import { Stack } from "@mantine/core"; + +export default function Page({ params }: { params: { sub: string } }) { + return + {params.sub} + +} \ No newline at end of file diff --git a/src/app/(pages)/inovasi/[sub]/page.tsx b/src/app/(pages)/inovasi/[sub]/page.tsx new file mode 100644 index 00000000..9b5f43e3 --- /dev/null +++ b/src/app/(pages)/inovasi/[sub]/page.tsx @@ -0,0 +1,7 @@ +export default function Page({ params }: { params: { sub: string } }) { + return ( +
+

{params.sub}

+
+ ); +} \ No newline at end of file diff --git a/src/app/inovasi/page.tsx b/src/app/(pages)/inovasi/page.tsx similarity index 100% rename from src/app/inovasi/page.tsx rename to src/app/(pages)/inovasi/page.tsx diff --git a/src/app/(pages)/keamanan/[sub]/page.tsx b/src/app/(pages)/keamanan/[sub]/page.tsx new file mode 100644 index 00000000..ad3d710f --- /dev/null +++ b/src/app/(pages)/keamanan/[sub]/page.tsx @@ -0,0 +1,7 @@ +export default function Page({ params }: { params: { sub: string } }) { + return ( +
+

{params.sub}

+
+ ); +} \ No newline at end of file diff --git a/src/app/keamanan/page.tsx b/src/app/(pages)/keamanan/page.tsx similarity index 100% rename from src/app/keamanan/page.tsx rename to src/app/(pages)/keamanan/page.tsx diff --git a/src/app/(pages)/kesehatan/[sub]/page.tsx b/src/app/(pages)/kesehatan/[sub]/page.tsx new file mode 100644 index 00000000..8e92ba69 --- /dev/null +++ b/src/app/(pages)/kesehatan/[sub]/page.tsx @@ -0,0 +1,7 @@ +export default function Page() { + return ( +
+

Keamanan

+
+ ); +} \ No newline at end of file diff --git a/src/app/kesehatan/page.tsx b/src/app/(pages)/kesehatan/page.tsx similarity index 100% rename from src/app/kesehatan/page.tsx rename to src/app/(pages)/kesehatan/page.tsx diff --git a/src/app/(pages)/lingkungan/[sub]/page.tsx b/src/app/(pages)/lingkungan/[sub]/page.tsx new file mode 100644 index 00000000..9b5f43e3 --- /dev/null +++ b/src/app/(pages)/lingkungan/[sub]/page.tsx @@ -0,0 +1,7 @@ +export default function Page({ params }: { params: { sub: string } }) { + return ( +
+

{params.sub}

+
+ ); +} \ No newline at end of file diff --git a/src/app/(pages)/lingkungan/page.tsx b/src/app/(pages)/lingkungan/page.tsx new file mode 100644 index 00000000..870674ed --- /dev/null +++ b/src/app/(pages)/lingkungan/page.tsx @@ -0,0 +1,7 @@ +import { Stack } from "@mantine/core"; + +export default function Page({ params }: { params: { sub: string } }) { + return + {params.sub} + +} \ No newline at end of file diff --git a/src/app/(pages)/pendidikan/[sub]/page.tsx b/src/app/(pages)/pendidikan/[sub]/page.tsx new file mode 100644 index 00000000..ad3d710f --- /dev/null +++ b/src/app/(pages)/pendidikan/[sub]/page.tsx @@ -0,0 +1,7 @@ +export default function Page({ params }: { params: { sub: string } }) { + return ( +
+

{params.sub}

+
+ ); +} \ No newline at end of file diff --git a/src/app/pendidikan/page.tsx b/src/app/(pages)/pendidikan/page.tsx similarity index 100% rename from src/app/pendidikan/page.tsx rename to src/app/(pages)/pendidikan/page.tsx diff --git a/src/app/ekonomi/page.tsx b/src/app/ekonomi/page.tsx deleted file mode 100644 index 6599ef48..00000000 --- a/src/app/ekonomi/page.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import { Stack } from "@mantine/core"; - -export default function Page() { - return - ekonomi - -} \ No newline at end of file diff --git a/src/app/lingkungan/page.tsx b/src/app/lingkungan/page.tsx deleted file mode 100644 index 82fa317e..00000000 --- a/src/app/lingkungan/page.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import { Stack } from "@mantine/core"; - -export default function Page() { - return - lingkungan - -} \ No newline at end of file diff --git a/src/com/MainLayout.tsx b/src/com/MainLayout.tsx index aa7b3971..20d7f921 100644 --- a/src/com/MainLayout.tsx +++ b/src/com/MainLayout.tsx @@ -1,16 +1,19 @@ -import { Space, Stack } from "@mantine/core"; -import { Navbar } from "./Navbar"; +import colors from "@/con/colors"; +import { Box, Space, Stack } from "@mantine/core"; import Footer from "./Footer"; +import { Navbar } from "./Navbar"; export function MainLayout({ children }: { children: React.ReactNode }) { return ( - + - {children} + + {children} +