# Voting prototype

- feat
- Tampilan beranda
- Tampilan status
- Tampilan kontribusi
- Tampilan riwayat
## No Issue
This commit is contained in:
2024-02-07 15:18:25 +08:00
parent d64ed7bf55
commit e6c120bf75
85 changed files with 2538 additions and 231 deletions

View File

@@ -1,6 +0,0 @@
import { AdminMain_Layout } from "@/app_modules_admin/main";
import React from "react";
export default async function Layout({children}: {children: React.ReactNode}) {
return <AdminMain_Layout>{children}</AdminMain_Layout>
}

View File

@@ -1,5 +0,0 @@
import { AdminMain_Dashboard } from "@/app_modules_admin/main";
export default async function Page() {
return <AdminMain_Dashboard/>
}

View File

@@ -0,0 +1,14 @@
import { LayoutVote_Create } from "@/app_modules/vote";
import React from "react";
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
return (
<>
<LayoutVote_Create>{children}</LayoutVote_Create>
</>
);
}

View File

@@ -0,0 +1,9 @@
import { Vote_Create } from "@/app_modules/vote";
export default async function Page() {
return (
<>
<Vote_Create />
</>
);
}

View File

@@ -0,0 +1,10 @@
import { LayoutVote_DetailDraft } from "@/app_modules/vote";
import React from "react";
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<>
<LayoutVote_DetailDraft>{children}</LayoutVote_DetailDraft>
</>
);
}

View File

@@ -0,0 +1,9 @@
import { Vote_DetailDraft } from "@/app_modules/vote";
export default function Page() {
return (
<>
<Vote_DetailDraft />
</>
);
}

View File

@@ -0,0 +1,14 @@
import { LayoutVote_DetailKontribusi } from "@/app_modules/vote";
import React from "react";
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
return (
<>
<LayoutVote_DetailKontribusi>{children}</LayoutVote_DetailKontribusi>
</>
);
}

View File

@@ -0,0 +1,9 @@
import { Vote_DetailKontribusi } from "@/app_modules/vote";
export default async function Page() {
return (
<>
<Vote_DetailKontribusi />
</>
);
}

View File

@@ -0,0 +1,14 @@
import { LayoutVote_MainDetail } from "@/app_modules/vote";
import React from "react";
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
return (
<>
<LayoutVote_MainDetail>{children}</LayoutVote_MainDetail>
</>
);
}

View File

@@ -0,0 +1,7 @@
import { Vote_MainDetail } from "@/app_modules/vote";
export default async function Page(){
return<>
<Vote_MainDetail/>
</>
}

View File

@@ -0,0 +1,10 @@
import { LayoutVote_DetailPublish } from "@/app_modules/vote";
import React from "react";
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<>
<LayoutVote_DetailPublish>{children}</LayoutVote_DetailPublish>
</>
);
}

View File

@@ -0,0 +1,7 @@
import { Vote_DetailPublish } from "@/app_modules/vote";
export default function Page(){
return <>
<Vote_DetailPublish/>
</>
}

View File

@@ -0,0 +1,8 @@
import { LayoutVote_DetailReject } from "@/app_modules/vote";
import React from "react";
export default async function Layout({children}: {children: React.ReactNode}) {
return<>
<LayoutVote_DetailReject>{children}</LayoutVote_DetailReject>
</>
}

View File

@@ -0,0 +1,7 @@
import { Vote_DetailReject } from "@/app_modules/vote";
export default async function Page() {
return <>
<Vote_DetailReject/>
</>
}

View File

@@ -0,0 +1,10 @@
import { LayoutVote_DetailReview } from "@/app_modules/vote";
import React from "react";
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<>
<LayoutVote_DetailReview>{children}</LayoutVote_DetailReview>
</>
);
}

View File

@@ -0,0 +1,9 @@
import { Vote_DetailReview } from "@/app_modules/vote";
export default function Page() {
return (
<>
<Vote_DetailReview />
</>
);
}

View File

@@ -0,0 +1,14 @@
import { LayoutVote_DetailRiwayatSaya } from "@/app_modules/vote";
import React from "react";
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
return (
<>
<LayoutVote_DetailRiwayatSaya>{children}</LayoutVote_DetailRiwayatSaya>
</>
);
}

View File

@@ -0,0 +1,9 @@
import { Vote_DetailRiwayatSaya } from "@/app_modules/vote";
export default async function Page() {
return (
<>
<Vote_DetailRiwayatSaya />
</>
);
}

View File

@@ -0,0 +1,14 @@
import { LayoutVote_DetailSemuaRiwayat } from "@/app_modules/vote";
import React from "react";
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
return (
<>
<LayoutVote_DetailSemuaRiwayat>{children}</LayoutVote_DetailSemuaRiwayat>
</>
);
}

View File

@@ -0,0 +1,10 @@
import { Vote_DetailSemuaRiwayat } from "@/app_modules/vote";
export default async function Page() {
return (
<>
<Vote_DetailSemuaRiwayat />
</>
);
}

View File

@@ -0,0 +1,14 @@
import { LayoutVote_Edit } from "@/app_modules/vote";
import React from "react";
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
return (
<>
<LayoutVote_Edit>{children}</LayoutVote_Edit>
</>
);
}

View File

@@ -0,0 +1,9 @@
import { Vote_Edit } from "@/app_modules/vote";
export default async function Page() {
return (
<>
<Vote_Edit />
</>
);
}

View File

@@ -0,0 +1,7 @@
import { Vote_Beranda } from "@/app_modules/vote";
export default async function Page() {
return<>
<Vote_Beranda/>
</>
}

View File

@@ -0,0 +1,10 @@
import { Vote_Kontribusi } from "@/app_modules/vote";
export default async function Page() {
return (
<>
<Vote_Kontribusi />
</>
);
}

View File

@@ -0,0 +1,14 @@
import { LayoutVote_Main } from "@/app_modules/vote";
import React from "react";
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
return (
<>
<LayoutVote_Main>{children}</LayoutVote_Main>
</>
);
}

View File

@@ -0,0 +1,9 @@
import { Vote_Riwayat } from "@/app_modules/vote";
export default async function Page() {
return (
<>
<Vote_Riwayat />
</>
);
}

View File

@@ -0,0 +1,9 @@
import { Vote_Status } from "@/app_modules/vote";
export default async function Page() {
return (
<>
<Vote_Status />
</>
);
}

View File

@@ -0,0 +1,9 @@
import { Vote_Splash } from "@/app_modules/vote";
export default async function Page() {
return (
<>
<Vote_Splash />
</>
);
}

View File

@@ -2,7 +2,7 @@
import AppNotif from "@/app_modules/notif";
// import './globals.css'
import { CacheProvider } from "@emotion/react";
import { MantineProvider, useEmotionCache } from "@mantine/core";
import { Image, MantineProvider, useEmotionCache } from "@mantine/core";
import { Notifications } from "@mantine/notifications";
import { useServerInsertedHTML } from "next/navigation";
import { ToastContainer, toast } from "react-toastify";
@@ -27,10 +27,13 @@ export default function RootStyleRegistry({
return (
<html lang="en" data-theme="light">
<head>
<title>HIPMI</title>
</head>
<body suppressHydrationWarning={true}>
<CacheProvider value={cache}>
<MantineProvider withGlobalStyles withNormalizeCSS>
<Notifications position="top-center" containerWidth="250px" />
<Notifications position="top-center" containerWidth="250px" />
{children}
{/* <ToastContainer position="bottom-center" />
<AppNotif /> */}

View File

@@ -0,0 +1,24 @@
export const RouterVote = {
// main
splash: "/dev/vote/splash",
beranda: "/dev/vote/main/beranda",
status: "/dev/vote/main/status",
kontribusi: "/dev/vote/main/kontribusi",
riwayat: "/dev/vote/main/riwayat",
// create
create: "/dev/vote/create",
//
edit: "/dev/vote/edit",
//detail
main_detail: "/dev/vote/detail/main",
detail_publish: "/dev/vote/detail/publish",
detail_review: "/dev/vote/detail/review",
detail_draft: "/dev/vote/detail/draft",
detail_reject: "/dev/vote/detail/reject",
detail_kontribusi: "/dev/vote/detail/kontribusi",
detail_semua_riwayat: "/dev/vote/detail/semua_riwayat",
detail_riwayat_saya: "/dev/vote/detail/riwayat_saya",
};