@@ -1,7 +1,7 @@
|
|||||||
'use client'
|
'use client'
|
||||||
import { WARNA } from "@/module/_global";
|
import { WARNA } from "@/module/_global";
|
||||||
import LayoutModal from "@/module/_global/layout/layout_modal";
|
import LayoutModal from "@/module/_global/layout/layout_modal";
|
||||||
import { Box, Button, Stack, TextInput } from "@mantine/core";
|
import { Box, Button, Select, Stack, TextInput } from "@mantine/core";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import toast from "react-hot-toast";
|
import toast from "react-hot-toast";
|
||||||
import { HiUser } from "react-icons/hi2";
|
import { HiUser } from "react-icons/hi2";
|
||||||
@@ -30,6 +30,28 @@ export default function EditMember() {
|
|||||||
}}>
|
}}>
|
||||||
<HiUser size={100} color={WARNA.bgWhite} />
|
<HiUser size={100} color={WARNA.bgWhite} />
|
||||||
</Box>
|
</Box>
|
||||||
|
<Select
|
||||||
|
placeholder="Pilih Grup" label="Grup" w={"100%"} size="md" required withAsterisk radius={30}
|
||||||
|
styles={{
|
||||||
|
input: {
|
||||||
|
color: WARNA.biruTua,
|
||||||
|
borderRadius: WARNA.biruTua,
|
||||||
|
borderColor: WARNA.biruTua,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
data={['Dinas', 'Adat', 'LPD', 'PKK']}
|
||||||
|
/>
|
||||||
|
<Select
|
||||||
|
placeholder="Pilih Jabatan" label="Jabatan" w={"100%"} size="md" required withAsterisk radius={30}
|
||||||
|
styles={{
|
||||||
|
input: {
|
||||||
|
color: WARNA.biruTua,
|
||||||
|
borderRadius: WARNA.biruTua,
|
||||||
|
borderColor: WARNA.biruTua,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
data={['Kepala', 'Sekretaris', 'Bendahara', 'Anggota']}
|
||||||
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
size="md" type="number" radius={30} placeholder="NIK" withAsterisk label="NIK" w={"100%"}
|
size="md" type="number" radius={30} placeholder="NIK" withAsterisk label="NIK" w={"100%"}
|
||||||
styles={{
|
styles={{
|
||||||
@@ -70,8 +92,19 @@ export default function EditMember() {
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
<Select
|
||||||
|
placeholder="Pilih Gender" label="Gender" w={"100%"} size="md" required withAsterisk radius={30}
|
||||||
|
styles={{
|
||||||
|
input: {
|
||||||
|
color: WARNA.biruTua,
|
||||||
|
borderRadius: WARNA.biruTua,
|
||||||
|
borderColor: WARNA.biruTua,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
data={['Laki-laki', 'Perempuan']}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Box mt={30} mx={20}>
|
<Box mt={30} mx={20} pb={20}>
|
||||||
<Button
|
<Button
|
||||||
c={"white"}
|
c={"white"}
|
||||||
bg={WARNA.biruTua}
|
bg={WARNA.biruTua}
|
||||||
|
|||||||
@@ -1,65 +1,31 @@
|
|||||||
'use client'
|
'use client'
|
||||||
import { WARNA } from '@/module/_global';
|
import { WARNA } from '@/module/_global';
|
||||||
import { ActionIcon, Box, Group, Text, TextInput } from '@mantine/core';
|
import { Box, rem, Tabs, TextInput } from '@mantine/core';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { HiMagnifyingGlass, HiMiniUser } from 'react-icons/hi2';
|
import { HiMagnifyingGlass, HiMiniUser } from 'react-icons/hi2';
|
||||||
import { useRouter } from 'next/navigation';
|
import { IoMdCheckmarkCircleOutline } from 'react-icons/io';
|
||||||
|
import { IoCloseCircleOutline } from 'react-icons/io5';
|
||||||
const dataMember = [
|
import TabListMember from './ui/tab_list_member';
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
name: 'Ali akbar',
|
|
||||||
desc: 'Perbekel',
|
|
||||||
grup: 'Dinas'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 2,
|
|
||||||
name: 'Fibra Marcell',
|
|
||||||
desc: 'Kasi Kesejahteraan',
|
|
||||||
grup: 'Dinas'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 3,
|
|
||||||
name: 'Burhan',
|
|
||||||
desc: 'Kasi Kesejahteraan',
|
|
||||||
grup: 'Dinas'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 4,
|
|
||||||
name: 'Chandra',
|
|
||||||
desc: 'Kasi Kesejahteraan',
|
|
||||||
grup: 'Dinas'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 5,
|
|
||||||
name: 'Ayu',
|
|
||||||
desc: 'Kasi Kesejahteraan',
|
|
||||||
grup: 'PKK'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 6,
|
|
||||||
name: 'Heriawan',
|
|
||||||
desc: 'Kasi Kesejahteraan',
|
|
||||||
grup: 'Karang Taruna'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 7,
|
|
||||||
name: 'Jinan',
|
|
||||||
desc: 'Kasi Kesejahteraan',
|
|
||||||
grup: 'Dinas'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 8,
|
|
||||||
name: 'Rizal',
|
|
||||||
desc: 'Kasi Kesejahteraan',
|
|
||||||
grup: 'LPD'
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
||||||
export default function ListMember() {
|
export default function ListMember() {
|
||||||
const router = useRouter()
|
const iconStyle = { width: rem(20), height: rem(20) };
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box p={20}>
|
<Box p={20}>
|
||||||
|
<Tabs variant="pills" color='#FF9861' radius="xl" defaultValue="aktif">
|
||||||
|
<Tabs.List bg={"white"} style={{
|
||||||
|
border: `1px solid ${"#EDEDED"}`,
|
||||||
|
padding: 5,
|
||||||
|
borderRadius: 100
|
||||||
|
}}>
|
||||||
|
<Tabs.Tab value="aktif" w={"45%"} leftSection={<IoMdCheckmarkCircleOutline style={iconStyle} />}>
|
||||||
|
Aktif
|
||||||
|
</Tabs.Tab>
|
||||||
|
<Tabs.Tab value="tidak-aktif" w={"53%"} leftSection={<IoCloseCircleOutline style={iconStyle} />}>
|
||||||
|
Tidak Aktif
|
||||||
|
</Tabs.Tab>
|
||||||
|
</Tabs.List>
|
||||||
|
|
||||||
<TextInput
|
<TextInput
|
||||||
styles={{
|
styles={{
|
||||||
input: {
|
input: {
|
||||||
@@ -72,29 +38,17 @@ export default function ListMember() {
|
|||||||
radius={30}
|
radius={30}
|
||||||
leftSection={<HiMagnifyingGlass size={20} />}
|
leftSection={<HiMagnifyingGlass size={20} />}
|
||||||
placeholder="Pencarian"
|
placeholder="Pencarian"
|
||||||
|
my={10}
|
||||||
/>
|
/>
|
||||||
{dataMember.map((v, i) => {
|
|
||||||
return (
|
<Tabs.Panel value="aktif">
|
||||||
<Box pt={20} key={i} onClick={() => {
|
<TabListMember />
|
||||||
router.push(`/member/${v.id}`)
|
</Tabs.Panel>
|
||||||
}}>
|
|
||||||
<Group align='center' style={{
|
<Tabs.Panel value="tidak-aktif">
|
||||||
borderBottom: `1px solid #D9D9D9`,
|
<TabListMember />
|
||||||
padding: 10,
|
</Tabs.Panel>
|
||||||
}} >
|
</Tabs>
|
||||||
<Box>
|
|
||||||
<ActionIcon variant="light" bg={WARNA.biruTua} size={50} radius={100} aria-label="icon">
|
|
||||||
<HiMiniUser color={'white'} size={25} />
|
|
||||||
</ActionIcon>
|
|
||||||
</Box>
|
|
||||||
<Box>
|
|
||||||
<Text fw={'bold'} c={WARNA.biruTua}>{v.name}</Text>
|
|
||||||
<Text fw={'lighter'} fz={12}>{v.grup + ' - ' + v.desc}</Text>
|
|
||||||
</Box>
|
|
||||||
</Group>
|
|
||||||
</Box>
|
|
||||||
)
|
|
||||||
})}
|
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { Box, Flex, SimpleGrid, Stack, Text } from "@mantine/core";
|
|||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import toast from "react-hot-toast";
|
import toast from "react-hot-toast";
|
||||||
import { FaPencil } from "react-icons/fa6";
|
import { FaPencil, FaToggleOff } from "react-icons/fa6";
|
||||||
import { ImUserCheck } from "react-icons/im";
|
import { ImUserCheck } from "react-icons/im";
|
||||||
|
|
||||||
export default function DrawerDetailMember({ onDeleted }: { onDeleted: (val: boolean) => void }) {
|
export default function DrawerDetailMember({ onDeleted }: { onDeleted: (val: boolean) => void }) {
|
||||||
@@ -34,10 +34,10 @@ export default function DrawerDetailMember({ onDeleted }: { onDeleted: (val: boo
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box>
|
<Box>
|
||||||
<ImUserCheck size={30} color={WARNA.biruTua} />
|
<FaToggleOff size={30} color={WARNA.biruTua} />
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
<Text c={WARNA.biruTua} ta='center'>Status</Text>
|
<Text c={WARNA.biruTua} ta='center'>Non Aktifkan</Text>
|
||||||
</Box>
|
</Box>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use client'
|
'use client'
|
||||||
import { LayoutNavbarHome, LayoutIconBack, WARNA, LayoutDrawer } from "@/module/_global";
|
import { LayoutNavbarHome, LayoutIconBack, WARNA, LayoutDrawer } from "@/module/_global";
|
||||||
import { Box, Group, ActionIcon, Stack, Text } from "@mantine/core";
|
import { Box, Group, ActionIcon, Stack, Text, Center, Avatar } from "@mantine/core";
|
||||||
import { HiMenu } from "react-icons/hi";
|
import { HiMenu } from "react-icons/hi";
|
||||||
import { HiUser } from "react-icons/hi2";
|
import { HiUser } from "react-icons/hi2";
|
||||||
import DrawerDetailMember from "./drawer_detail_member";
|
import DrawerDetailMember from "./drawer_detail_member";
|
||||||
@@ -22,9 +22,11 @@ export default function NavbarDetailMember() {
|
|||||||
justify="center"
|
justify="center"
|
||||||
gap="xs"
|
gap="xs"
|
||||||
>
|
>
|
||||||
<HiUser size={100} color='white' />
|
<Center>
|
||||||
|
<Avatar src={'https://i.pravatar.cc/1000?img=25'} alt="it's me" size="xl" />
|
||||||
|
</Center>
|
||||||
<Text c={'white'} fw={'bold'} fz={25}>Fibra Marcell</Text>
|
<Text c={'white'} fw={'bold'} fz={25}>Fibra Marcell</Text>
|
||||||
<Text c={'white'} fw={'lighter'} fz={15}>Kepala Urusan Pengembangan</Text>
|
<Text c={'white'} fw={'lighter'} fz={15}>Dinas - Kepala Urusan Pengembangan</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
</LayoutNavbarHome>
|
</LayoutNavbarHome>
|
||||||
<LayoutDrawer opened={isOpen} title={'Menu'} onClose={() => setOpen(false)}>
|
<LayoutDrawer opened={isOpen} title={'Menu'} onClose={() => setOpen(false)}>
|
||||||
|
|||||||
86
src/module/user/member/component/ui/tab_list_member.tsx
Normal file
86
src/module/user/member/component/ui/tab_list_member.tsx
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
import { WARNA } from "@/module/_global"
|
||||||
|
import { Box, Group, ActionIcon, Text } from "@mantine/core"
|
||||||
|
import { useRouter } from "next/navigation"
|
||||||
|
import { HiMiniUser } from "react-icons/hi2"
|
||||||
|
|
||||||
|
const dataMember = [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
name: 'Ali akbar',
|
||||||
|
desc: 'Perbekel',
|
||||||
|
grup: 'Dinas'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
name: 'Fibra Marcell',
|
||||||
|
desc: 'Kasi Kesejahteraan',
|
||||||
|
grup: 'Dinas'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
name: 'Burhan',
|
||||||
|
desc: 'Kasi Kesejahteraan',
|
||||||
|
grup: 'Dinas'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 4,
|
||||||
|
name: 'Chandra',
|
||||||
|
desc: 'Kasi Kesejahteraan',
|
||||||
|
grup: 'Dinas'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 5,
|
||||||
|
name: 'Ayu',
|
||||||
|
desc: 'Kasi Kesejahteraan',
|
||||||
|
grup: 'PKK'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 6,
|
||||||
|
name: 'Heriawan',
|
||||||
|
desc: 'Kasi Kesejahteraan',
|
||||||
|
grup: 'Karang Taruna'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 7,
|
||||||
|
name: 'Jinan',
|
||||||
|
desc: 'Kasi Kesejahteraan',
|
||||||
|
grup: 'Dinas'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 8,
|
||||||
|
name: 'Rizal',
|
||||||
|
desc: 'Kasi Kesejahteraan',
|
||||||
|
grup: 'LPD'
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
export default function TabListMember() {
|
||||||
|
const router = useRouter()
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{dataMember.map((v, i) => {
|
||||||
|
return (
|
||||||
|
<Box pt={20} key={i} onClick={() => {
|
||||||
|
router.push(`/member/${v.id}`)
|
||||||
|
}}>
|
||||||
|
<Group align='center' style={{
|
||||||
|
borderBottom: `1px solid #D9D9D9`,
|
||||||
|
padding: 10,
|
||||||
|
}} >
|
||||||
|
<Box>
|
||||||
|
<ActionIcon variant="light" bg={WARNA.biruTua} size={50} radius={100} aria-label="icon">
|
||||||
|
<HiMiniUser color={'white'} size={25} />
|
||||||
|
</ActionIcon>
|
||||||
|
</Box>
|
||||||
|
<Box>
|
||||||
|
<Text fw={'bold'} c={WARNA.biruTua}>{v.name}</Text>
|
||||||
|
<Text fw={'lighter'} fz={12}>{v.grup + ' - ' + v.desc}</Text>
|
||||||
|
</Box>
|
||||||
|
</Group>
|
||||||
|
</Box>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@ import { FaSquarePhone } from "react-icons/fa6";
|
|||||||
import { MdEmail } from "react-icons/md";
|
import { MdEmail } from "react-icons/md";
|
||||||
import { RiIdCardFill } from "react-icons/ri";
|
import { RiIdCardFill } from "react-icons/ri";
|
||||||
import NavbarDetailMember from "../component/ui/navbar_detail_member";
|
import NavbarDetailMember from "../component/ui/navbar_detail_member";
|
||||||
|
import { IoMaleFemale } from "react-icons/io5";
|
||||||
|
|
||||||
export default function ViewDetailMember({ data }: { data: string }) {
|
export default function ViewDetailMember({ data }: { data: string }) {
|
||||||
return (
|
return (
|
||||||
@@ -19,7 +20,7 @@ export default function ViewDetailMember({ data }: { data: string }) {
|
|||||||
<Group justify="space-between" grow py={5}>
|
<Group justify="space-between" grow py={5}>
|
||||||
<Group>
|
<Group>
|
||||||
<FaSquarePhone size={28} />
|
<FaSquarePhone size={28} />
|
||||||
<Text fz={18}>NoTelepon</Text>
|
<Text fz={18}>No Telepon</Text>
|
||||||
</Group>
|
</Group>
|
||||||
<Text fz={18} fw={'bold'} ta={"right"}>+62038939293</Text>
|
<Text fz={18} fw={'bold'} ta={"right"}>+62038939293</Text>
|
||||||
</Group>
|
</Group>
|
||||||
@@ -30,6 +31,13 @@ export default function ViewDetailMember({ data }: { data: string }) {
|
|||||||
</Group>
|
</Group>
|
||||||
<Text fz={18} fw={'bold'} ta={"right"}>marcel@gmail.com</Text>
|
<Text fz={18} fw={'bold'} ta={"right"}>marcel@gmail.com</Text>
|
||||||
</Group>
|
</Group>
|
||||||
|
<Group justify="space-between" grow py={5}>
|
||||||
|
<Group>
|
||||||
|
<IoMaleFemale size={28} />
|
||||||
|
<Text fz={18}>Gender</Text>
|
||||||
|
</Group>
|
||||||
|
<Text fz={18} fw={'bold'} ta={"right"}>Laki-laki</Text>
|
||||||
|
</Group>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user