Merge branch 'join' into lukman-sdm-3-juni-2024
This commit is contained in:
9
src/app/(application)/profile/page.tsx
Normal file
9
src/app/(application)/profile/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { ViewProfile } from "@/module/user";
|
||||||
|
|
||||||
|
function Page() {
|
||||||
|
return (
|
||||||
|
<ViewProfile />
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Page;
|
||||||
@@ -20,7 +20,8 @@ function ViewLogin() {
|
|||||||
"Kami akan mengirim kode verifikasi melalui WhatsApp, guna mengonfirmasikan nomor Anda.";
|
"Kami akan mengirim kode verifikasi melalui WhatsApp, guna mengonfirmasikan nomor Anda.";
|
||||||
|
|
||||||
function onMasuk() {
|
function onMasuk() {
|
||||||
router.push("/verification")
|
// router.push("/verification")
|
||||||
|
window.location.href = "/verification"
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ export default function ViewVerification() {
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
function onNext() {
|
function onNext() {
|
||||||
router.push("/welcome");
|
// router.push("/welcome");
|
||||||
|
window.location.href = "/welcome"
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -37,7 +37,8 @@ export function ViewWelcome() {
|
|||||||
|
|
||||||
function onLanjutkan() {
|
function onLanjutkan() {
|
||||||
if (index === listTextWellcome.length - 1) {
|
if (index === listTextWellcome.length - 1) {
|
||||||
return router.push("/home");
|
// return router.push("/home");
|
||||||
|
return window.location.href = "/home"
|
||||||
}
|
}
|
||||||
setIndex(index + 1);
|
setIndex(index + 1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
'use client'
|
||||||
import React, { useRef } from 'react';
|
import React, { useRef } from 'react';
|
||||||
import { Carousel } from '@mantine/carousel';
|
import { Carousel } from '@mantine/carousel';
|
||||||
import { WARNA } from '@/module/_global';
|
import { WARNA } from '@/module/_global';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
'use client'
|
||||||
import { WARNA } from '@/module/_global';
|
import { WARNA } from '@/module/_global';
|
||||||
import { ActionIcon, Box, Center, Grid, SimpleGrid, Text } from '@mantine/core';
|
import { ActionIcon, Box, Center, Grid, SimpleGrid, Text } from '@mantine/core';
|
||||||
import { useRouter } from 'next/navigation';
|
import { useRouter } from 'next/navigation';
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
"use client"
|
|
||||||
import { LayoutNavbarHome, WARNA } from '@/module/_global';
|
import { LayoutNavbarHome, WARNA } from '@/module/_global';
|
||||||
import { ActionIcon, Box, Group, rem, Stack, Text } from '@mantine/core';
|
import { ActionIcon, Box, Group, rem, Stack, Text } from '@mantine/core';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
@@ -26,12 +25,10 @@ export default function ViewHome() {
|
|||||||
<HiOutlineUser size={20} color='white' />
|
<HiOutlineUser size={20} color='white' />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
|
||||||
</LayoutNavbarHome>
|
|
||||||
<Box p={20}>
|
<Box p={20}>
|
||||||
<Stack >
|
<Stack >
|
||||||
<Carosole />
|
<Carosole />
|
||||||
<Features/>
|
<Features />
|
||||||
</Stack>
|
</Stack>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
import ViewProfile from "./profile/view/view_profile";
|
||||||
|
|
||||||
|
export { ViewProfile }
|
||||||
29
src/module/user/profile/view/view_profile.tsx
Normal file
29
src/module/user/profile/view/view_profile.tsx
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
import { LayoutNavbarHome, WARNA } from "@/module/_global";
|
||||||
|
import { ActionIcon, Group, Stack, Text } from "@mantine/core";
|
||||||
|
import { BsInfo } from "react-icons/bs";
|
||||||
|
import { HiUser } from "react-icons/hi2";
|
||||||
|
|
||||||
|
export default function ViewProfile() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<LayoutNavbarHome>
|
||||||
|
<Group justify="space-between">
|
||||||
|
<Text fw={'bold'} c={'white'}>Profile</Text>
|
||||||
|
<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={150} 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>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user