# 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

@@ -0,0 +1,30 @@
"use client";
import { RouterVote } from "@/app/lib/router_hipmi/router_vote";
import { Center, Image, Paper, Stack, Text } from "@mantine/core";
import { useShallowEffect } from "@mantine/hooks";
import { useAtom } from "jotai";
import { useRouter } from "next/navigation";
import { gs_vote_hotMenu } from "../global_state";
export default function Vote_Splash() {
const router = useRouter();
const [hotMenu, setHotMenu] = useAtom(gs_vote_hotMenu);
useShallowEffect(() => {
setTimeout(() => {
setHotMenu(0)
router.replace(RouterVote.beranda);
}, 2000);
}, []);
return (
<>
<Center h={"100vh"}>
<Paper>
<Image alt="logo" src={"/aset/vote/logo.png"} />
</Paper>
</Center>
</>
);
}