This commit is contained in:
bipproduction
2025-02-17 12:37:27 +08:00
parent a72e6405e6
commit 333f575693
19 changed files with 106 additions and 57 deletions

View File

@@ -0,0 +1,5 @@
export default function Page({ params }: { params: { sub: string } }) {
return <div>
{params.sub}
</div>
}

View File

@@ -0,0 +1,5 @@
export default function Page() {
return <div>
ekonomi
</div>
}

View File

@@ -0,0 +1,7 @@
import { Stack } from "@mantine/core";
export default function Page({ params }: { params: { sub: string } }) {
return <Stack>
{params.sub}
</Stack>
}

View File

@@ -0,0 +1,7 @@
export default function Page({ params }: { params: { sub: string } }) {
return (
<div>
<h1>{params.sub}</h1>
</div>
);
}

View File

@@ -0,0 +1,7 @@
export default function Page({ params }: { params: { sub: string } }) {
return (
<div>
<h1>{params.sub}</h1>
</div>
);
}

View File

@@ -0,0 +1,7 @@
export default function Page() {
return (
<div>
<h1>Keamanan</h1>
</div>
);
}

View File

@@ -0,0 +1,7 @@
export default function Page({ params }: { params: { sub: string } }) {
return (
<div>
<h1>{params.sub}</h1>
</div>
);
}

View File

@@ -0,0 +1,7 @@
import { Stack } from "@mantine/core";
export default function Page({ params }: { params: { sub: string } }) {
return <Stack>
{params.sub}
</Stack>
}

View File

@@ -0,0 +1,7 @@
export default function Page({ params }: { params: { sub: string } }) {
return (
<div>
<h1>{params.sub}</h1>
</div>
);
}

View File

@@ -1,7 +0,0 @@
import { Stack } from "@mantine/core";
export default function Page() {
return <Stack>
ekonomi
</Stack>
}

View File

@@ -1,7 +0,0 @@
import { Stack } from "@mantine/core";
export default function Page() {
return <Stack>
lingkungan
</Stack>
}

View File

@@ -1,16 +1,19 @@
import { Space, Stack } from "@mantine/core"; import colors from "@/con/colors";
import { Navbar } from "./Navbar"; import { Box, Space, Stack } from "@mantine/core";
import Footer from "./Footer"; import Footer from "./Footer";
import { Navbar } from "./Navbar";
export function MainLayout({ children }: { children: React.ReactNode }) { export function MainLayout({ children }: { children: React.ReactNode }) {
return ( return (
<Stack gap={0}> <Stack gap={0} bg={colors.grey[1]}>
<Navbar /> <Navbar />
<Space h={{ <Space h={{
base: "2.2rem", base: "2.2rem",
md: "2.5rem" md: "2.5rem"
}} /> }} />
{children} <Box>
{children}
</Box>
<Footer /> <Footer />
</Stack> </Stack>
) )

View File

@@ -1,8 +1,9 @@
import images from "@/con/images"; import images from "@/con/images";
import stateNav from "@/state/state-nav"; import stateNav from "@/state/state-nav";
import { Card, Image, SimpleGrid, Stack } from "@mantine/core"; import { Card, SimpleGrid } from "@mantine/core";
import { useHover } from "@mantine/hooks"; import { useHover } from "@mantine/hooks";
import { useTransitionRouter } from 'next-view-transitions' import { useTransitionRouter } from 'next-view-transitions';
import Image from 'next/image';
const listImageModule = Object.values(images.module); const listImageModule = Object.values(images.module);
@@ -16,6 +17,7 @@ function ModuleItem({ item }: { item: string }) {
stateNav.module = item; stateNav.module = item;
router.push("/module"); router.push("/module");
}} }}
h={100}
ref={ref} ref={ref}
p={"md"} p={"md"}
bg={"white"} bg={"white"}
@@ -24,9 +26,13 @@ function ModuleItem({ item }: { item: string }) {
border: `2px solid ${hovered ? "lightgray" : "transparent"}`, border: `2px solid ${hovered ? "lightgray" : "transparent"}`,
}} }}
> >
<Stack justify="end" h={"100%"}> <Image src={item} alt="icon"
<Image src={item} alt="icon" fit="contain" loading="lazy" /> fill
</Stack> quality={10}
objectFit="contain"
objectPosition="center"
priority={true}
/>
</Card> </Card>
); );
} }
@@ -35,8 +41,8 @@ function ModuleView() {
return ( return (
<SimpleGrid <SimpleGrid
cols={{ cols={{
base: 3, base: 2,
md: 4, md: 3,
}} }}
> >
{listImageModule.map((item, k) => { {listImageModule.map((item, k) => {

View File

@@ -1,22 +1,21 @@
"use client"; "use client";
import colors from "@/con/colors"; import colors from "@/con/colors";
import { import {
BackgroundImage,
Flex,
Box, Box,
Card,
Stack,
Image,
Text,
Button, Button,
Title, Card,
Flex,
Stack,
Text,
Title
} from "@mantine/core"; } from "@mantine/core";
import Image from 'next/image';
import ModuleView from "./ModuleView"; import ModuleView from "./ModuleView";
import SosmedView from "./SosmedView"; import SosmedView from "./SosmedView";
function Content1() { function Content1() {
return ( return (
<BackgroundImage src={"/assets/images/bg-blur.png"}> <Stack bg={colors["blue-button"]}>
<Flex <Flex
gap={"md"} gap={"md"}
wrap={{ wrap={{
@@ -30,7 +29,6 @@ function Content1() {
base: "100%", base: "100%",
md: "60%", md: "60%",
}} }}
h={820}
py={{ py={{
base: "xs", base: "xs",
md: "72", md: "72",
@@ -58,6 +56,7 @@ function Content1() {
> >
<Flex gap={"md"} flex={1}> <Flex gap={"md"} flex={1}>
<Box <Box
pos={"relative"}
bg={"white"} bg={"white"}
w={{ w={{
base: 64, base: 64,
@@ -75,11 +74,15 @@ function Content1() {
<Image <Image
src={"/assets/images/darmasaba-icon.png"} src={"/assets/images/darmasaba-icon.png"}
alt="icon" alt="icon"
loading="lazy" quality={10}
fit="contain" priority={true}
fill
objectFit="contain"
objectPosition="center"
/> />
</Box> </Box>
<Box <Box
pos={"relative"}
w={{ w={{
base: 64, base: 64,
md: 72, md: 72,
@@ -97,8 +100,11 @@ function Content1() {
<Image <Image
src={"/assets/images/pudak-icon.png"} src={"/assets/images/pudak-icon.png"}
alt="icon" alt="icon"
fit="contain" fill
loading="lazy" quality={10}
priority={true}
objectFit="contain"
objectPosition="center"
/> />
</Box> </Box>
</Flex> </Flex>
@@ -112,23 +118,13 @@ function Content1() {
Pemerintah Desa Pemerintah Desa
</Text> </Text>
<Title>DARMASABA</Title> <Title>DARMASABA</Title>
{/* <Text
fw={"bold"}
fz={{
base: "3rem",
md: "3rem",
sm: ""
}}
>
DARMASABA
</Text> */}
</Stack> </Stack>
</Flex> </Flex>
<ModuleView /> <ModuleView />
<SosmedView /> <SosmedView />
</Stack> </Stack>
</Card> </Card>
<Stack <Stack
align="center" align="center"
justify={"center"} justify={"center"}
> >
@@ -164,13 +160,12 @@ function Content1() {
<Image <Image
src={"/assets/images/perbekel.png"} src={"/assets/images/perbekel.png"}
alt="perbekel" alt="perbekel"
fit="contain" // Menyesuaikan gambar agar sesuai dengan kontainer fill
width={"100%"} quality={70}
h={{ objectFit="contain"
base: "500", objectPosition="bottom"
md: "100%", placeholder="empty"
}} priority={true}
loading="lazy"
/> />
<Box <Box
pos={"absolute"} pos={"absolute"}
@@ -196,7 +191,7 @@ function Content1() {
</Box> </Box>
</Stack> </Stack>
</Flex> </Flex>
</BackgroundImage> </Stack >
); );
} }