upd: member
Deskripsi: - create member - list member - detail member No Issues
This commit is contained in:
10
src/app/(application)/member/[id]/page.tsx
Normal file
10
src/app/(application)/member/[id]/page.tsx
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import { ViewDetailMember } from "@/module/user/member";
|
||||||
|
|
||||||
|
function Page({ params }: { params: { id: string } }) {
|
||||||
|
return (
|
||||||
|
<ViewDetailMember data={params.id} />
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Page;
|
||||||
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import { ViewCreateMember } from "@/module/user/member";
|
||||||
|
|
||||||
|
function Page() {
|
||||||
|
return (
|
||||||
|
<ViewCreateMember />
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Page;
|
||||||
23
src/module/user/member/component/ui/navbar_create_member.tsx
Normal file
23
src/module/user/member/component/ui/navbar_create_member.tsx
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
'use client'
|
||||||
|
import { LayoutIconBack, LayoutNavbarHome } from '@/module/_global';
|
||||||
|
import { Box, Grid, Text } from '@mantine/core';
|
||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
export default function NavbarCreateMember() {
|
||||||
|
return (
|
||||||
|
<Box>
|
||||||
|
<LayoutNavbarHome>
|
||||||
|
<Grid justify='center' align='center'>
|
||||||
|
<Grid.Col span="auto">
|
||||||
|
<LayoutIconBack />
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col span={6}>
|
||||||
|
<Text ta={'center'} fw={'bold'} c={'white'}>Tambah Anggota</Text>
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col span="auto"></Grid.Col>
|
||||||
|
</Grid>
|
||||||
|
</LayoutNavbarHome>
|
||||||
|
</Box>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
import ViewCreateMember from "./view/view_create_member";
|
||||||
|
import ViewDetailMember from "./view/view_detail_member";
|
||||||
import ViewListMember from "./view/view_list_member";
|
import ViewListMember from "./view/view_list_member";
|
||||||
|
|
||||||
export { ViewListMember }
|
export { ViewListMember }
|
||||||
|
export { ViewCreateMember }
|
||||||
|
export { ViewDetailMember }
|
||||||
77
src/module/user/member/view/view_create_member.tsx
Normal file
77
src/module/user/member/view/view_create_member.tsx
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
import { Box, Button, Stack, TextInput } from "@mantine/core";
|
||||||
|
import NavbarCreateMember from "../component/ui/navbar_create_member";
|
||||||
|
import { WARNA } from "@/module/_global";
|
||||||
|
import { HiUser } from "react-icons/hi2";
|
||||||
|
|
||||||
|
export default function ViewCreateMember() {
|
||||||
|
return (
|
||||||
|
<Box>
|
||||||
|
<NavbarCreateMember />
|
||||||
|
<Stack
|
||||||
|
align="center"
|
||||||
|
justify="center"
|
||||||
|
gap="xs"
|
||||||
|
pt={30}
|
||||||
|
px={20}
|
||||||
|
>
|
||||||
|
<Box bg={WARNA.biruTua} py={30} px={50}
|
||||||
|
style={{
|
||||||
|
borderRadius: 10,
|
||||||
|
}}>
|
||||||
|
<HiUser size={100} color={WARNA.bgWhite} />
|
||||||
|
</Box>
|
||||||
|
<TextInput
|
||||||
|
size="md" type="number" radius={30} placeholder="NIK" withAsterisk label="NIK" w={"100%"}
|
||||||
|
styles={{
|
||||||
|
input: {
|
||||||
|
color: WARNA.biruTua,
|
||||||
|
borderRadius: WARNA.biruTua,
|
||||||
|
borderColor: WARNA.biruTua,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<TextInput
|
||||||
|
size="md" type="text" radius={30} placeholder="Nama" withAsterisk label="Nama" w={"100%"}
|
||||||
|
styles={{
|
||||||
|
input: {
|
||||||
|
color: WARNA.biruTua,
|
||||||
|
borderRadius: WARNA.biruTua,
|
||||||
|
borderColor: WARNA.biruTua,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<TextInput
|
||||||
|
size="md" type="email" radius={30} placeholder="Email" withAsterisk label="Email" w={"100%"}
|
||||||
|
styles={{
|
||||||
|
input: {
|
||||||
|
color: WARNA.biruTua,
|
||||||
|
borderRadius: WARNA.biruTua,
|
||||||
|
borderColor: WARNA.biruTua,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<TextInput
|
||||||
|
size="md" type="number" radius={30} placeholder="+62...." withAsterisk label="Nomor Telepon" w={"100%"}
|
||||||
|
styles={{
|
||||||
|
input: {
|
||||||
|
color: WARNA.biruTua,
|
||||||
|
borderRadius: WARNA.biruTua,
|
||||||
|
borderColor: WARNA.biruTua,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Stack>
|
||||||
|
<Box mt={30} mx={20}>
|
||||||
|
<Button
|
||||||
|
c={"white"}
|
||||||
|
bg={WARNA.biruTua}
|
||||||
|
size="md"
|
||||||
|
radius={30}
|
||||||
|
fullWidth
|
||||||
|
>
|
||||||
|
Simpan
|
||||||
|
</Button>
|
||||||
|
</Box>
|
||||||
|
</Box>
|
||||||
|
)
|
||||||
|
}
|
||||||
55
src/module/user/member/view/view_detail_member.tsx
Normal file
55
src/module/user/member/view/view_detail_member.tsx
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
import { LayoutNavbarHome, LayoutIconBack, WARNA } from "@/module/_global";
|
||||||
|
import { ActionIcon, Box, Group, Stack, Text } from "@mantine/core";
|
||||||
|
import { BsInfo } from "react-icons/bs";
|
||||||
|
import { FaSquarePhone } from "react-icons/fa6";
|
||||||
|
import { HiUser } from "react-icons/hi2";
|
||||||
|
import { MdEmail } from "react-icons/md";
|
||||||
|
import { RiIdCardFill } from "react-icons/ri";
|
||||||
|
|
||||||
|
export default function ViewDetailMember({ data }: { data: string }) {
|
||||||
|
return (
|
||||||
|
<Box>
|
||||||
|
<LayoutNavbarHome>
|
||||||
|
<Group justify="space-between">
|
||||||
|
<LayoutIconBack />
|
||||||
|
<ActionIcon variant="light" bg={WARNA.bgIcon} size="lg" radius="lg" aria-label="Info">
|
||||||
|
<BsInfo size={20} color='white' />
|
||||||
|
</ActionIcon>
|
||||||
|
</Group>
|
||||||
|
<Stack
|
||||||
|
align="center"
|
||||||
|
justify="center"
|
||||||
|
gap="xs"
|
||||||
|
>
|
||||||
|
<HiUser size={100} color='white' />
|
||||||
|
<Text c={'white'} fw={'bold'} fz={25}>Fibra Marcell</Text>
|
||||||
|
<Text c={'white'} fw={'lighter'} fz={15}>Kepala Urusan Pengembangan</Text>
|
||||||
|
</Stack>
|
||||||
|
</LayoutNavbarHome>
|
||||||
|
<Box p={20}>
|
||||||
|
<Group justify="space-between" grow py={5}>
|
||||||
|
<Group>
|
||||||
|
<RiIdCardFill size={28} />
|
||||||
|
<Text fz={18}>NIK</Text>
|
||||||
|
</Group>
|
||||||
|
<Text fz={18} fw={'bold'} ta={"right"}>513177782899</Text>
|
||||||
|
</Group>
|
||||||
|
<Group justify="space-between" grow py={5}>
|
||||||
|
<Group>
|
||||||
|
<FaSquarePhone size={28} />
|
||||||
|
<Text fz={18}>NoTelepon</Text>
|
||||||
|
</Group>
|
||||||
|
<Text fz={18} fw={'bold'} ta={"right"}>+62038939293</Text>
|
||||||
|
</Group>
|
||||||
|
<Group justify="space-between" grow py={5}>
|
||||||
|
<Group>
|
||||||
|
<MdEmail size={28} />
|
||||||
|
<Text fz={18}>Email</Text>
|
||||||
|
</Group>
|
||||||
|
<Text fz={18} fw={'bold'} ta={"right"}>marcel@gmail.com</Text>
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
</Box>
|
||||||
|
</Box>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user