#style: UI Katalog
Desc: - Tampilan UI katalog selesai diubah ## No Issuee
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import KatalogView from "./view";
|
||||
import KatalogView from "./view_katalog";
|
||||
import KatalogLayout from "./layout";
|
||||
|
||||
export {KatalogView, KatalogLayout}
|
||||
@@ -1,103 +1,38 @@
|
||||
"use client";
|
||||
|
||||
import { Logout } from "@/app_modules/auth";
|
||||
import {
|
||||
ActionIcon,
|
||||
AppShell,
|
||||
Group,
|
||||
Header,
|
||||
Text,
|
||||
Title,
|
||||
} from "@mantine/core";
|
||||
import {
|
||||
IconUserSearch,
|
||||
IconAward,
|
||||
IconQrcode,
|
||||
IconArrowLeft,
|
||||
IconPencilPlus,
|
||||
IconChevronLeft,
|
||||
IconDashboard,
|
||||
} from "@tabler/icons-react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import ComponentKatalog_HeaderTamplate from "../component/header_tamplate";
|
||||
import { RouterProfile } from "@/app/lib/router_hipmi/router_katalog";
|
||||
import { RouterHome } from "@/app/lib/router_hipmi/router_home";
|
||||
import { title } from "process";
|
||||
import { RouterAdminDashboard } from "@/app/lib/router_hipmi/router_admin";
|
||||
import AppComponentGlobal_LayoutTamplate from "@/app_modules/component_global/component_layout_tamplate";
|
||||
import LayoutGlobal_UI_HeaderTamplate from "@/app_modules/component_global/ui/ui_header_tamplate";
|
||||
import LayoutGlobal_UI_Tamplate from "@/app_modules/component_global/ui/ui_layout_tamplate";
|
||||
import { ComponentKatalog_ButtonHeaderRight } from "../component/button_header_right";
|
||||
|
||||
export default function KatalogLayout({
|
||||
children,
|
||||
profileId,
|
||||
userLoginId,
|
||||
authorId,
|
||||
}: {
|
||||
children: any;
|
||||
profileId: any;
|
||||
userLoginId: string;
|
||||
authorId: string;
|
||||
}) {
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
<>
|
||||
<AppComponentGlobal_LayoutTamplate
|
||||
<LayoutGlobal_UI_Tamplate
|
||||
header={
|
||||
<Header height={50} sx={{ borderStyle: "none" }} bg={"black"}>
|
||||
<Group h={50} position="apart" px={"md"}>
|
||||
<ActionIcon
|
||||
variant="transparent"
|
||||
onClick={() => {
|
||||
router.back();
|
||||
}}
|
||||
>
|
||||
<IconChevronLeft />
|
||||
</ActionIcon>
|
||||
<Title order={5} c={"white"}>
|
||||
Katalog
|
||||
</Title>
|
||||
<ActionIcon variant="transparent" disabled></ActionIcon>
|
||||
{/* <ActionIcon
|
||||
variant="transparent"
|
||||
onClick={() => router.push(RouterAdminDashboard.splash_admin)}
|
||||
>
|
||||
<IconDashboard />
|
||||
</ActionIcon> */}
|
||||
</Group>
|
||||
</Header>
|
||||
<LayoutGlobal_UI_HeaderTamplate
|
||||
title="KATALOG"
|
||||
customButtonRight={
|
||||
<ComponentKatalog_ButtonHeaderRight
|
||||
profileId={profileId}
|
||||
userLoginId={userLoginId}
|
||||
authorId={authorId as any}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
}
|
||||
>
|
||||
{children}
|
||||
</AppComponentGlobal_LayoutTamplate>
|
||||
</>
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
<AppShell
|
||||
header={
|
||||
<Header height={50} sx={{ borderStyle: "none" }} bg={"black"}>
|
||||
<Group h={50} position="apart" px={"md"}>
|
||||
<ActionIcon
|
||||
variant="transparent"
|
||||
onClick={() => {
|
||||
router.back();
|
||||
}}
|
||||
>
|
||||
<IconChevronLeft />
|
||||
</ActionIcon>
|
||||
<Title order={5} c={"white"}>
|
||||
Katalog
|
||||
</Title>
|
||||
<ActionIcon variant="transparent" disabled></ActionIcon>
|
||||
{/* <ActionIcon
|
||||
variant="transparent"
|
||||
onClick={() => router.push(RouterAdminDashboard.splash_admin)}
|
||||
>
|
||||
<IconDashboard />
|
||||
</ActionIcon> */}
|
||||
</Group>
|
||||
</Header>
|
||||
}
|
||||
>
|
||||
{children}
|
||||
</AppShell>
|
||||
</LayoutGlobal_UI_Tamplate>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
"use client";
|
||||
|
||||
import { Warna } from "@/app/lib/warna";
|
||||
import {
|
||||
ActionIcon,
|
||||
BackgroundImage,
|
||||
Box,
|
||||
Center,
|
||||
Flex,
|
||||
Grid,
|
||||
Group,
|
||||
Image,
|
||||
Paper,
|
||||
Stack,
|
||||
Text,
|
||||
} from "@mantine/core";
|
||||
import { ProfileView } from "../profile";
|
||||
import { ListPortofolioView } from "../portofolio";
|
||||
import { MODEL_PROFILE_OLD } from "@/app_modules/home/model/user_profile";
|
||||
import { MODEL_PORTOFOLIO_Lama } from "@/app_modules/model_global/portofolio";
|
||||
import User_Logout from "@/app_modules/auth/logout/view";
|
||||
import { MODEL_PORTOFOLIO } from "../portofolio/model/interface";
|
||||
import { MODEL_PROFILE } from "../profile/model/interface";
|
||||
|
||||
export default function KatalogView({
|
||||
profile,
|
||||
listPorto,
|
||||
userLoginId,
|
||||
}: {
|
||||
profile: MODEL_PROFILE;
|
||||
listPorto: MODEL_PORTOFOLIO;
|
||||
userLoginId: string;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<Stack>
|
||||
<ProfileView profile={profile as any} userLoginId={userLoginId} />
|
||||
<ListPortofolioView
|
||||
listPorto={listPorto as any}
|
||||
profile={profile}
|
||||
userLoginId={userLoginId}
|
||||
/>
|
||||
<Stack my={"lg"} w={"100%"}>
|
||||
{profile?.User.id === userLoginId ? <User_Logout /> : ""}
|
||||
</Stack>
|
||||
</Stack>
|
||||
</>
|
||||
);
|
||||
}
|
||||
33
src/app_modules/katalog/main/view_katalog.tsx
Normal file
33
src/app_modules/katalog/main/view_katalog.tsx
Normal file
@@ -0,0 +1,33 @@
|
||||
"use client";
|
||||
|
||||
import Component_Logout from "@/app_modules/auth/logout/view";
|
||||
import {
|
||||
Stack
|
||||
} from "@mantine/core";
|
||||
import { MODEL_PORTOFOLIO } from "../portofolio/model/interface";
|
||||
import { Portofolio_UiView } from "../portofolio/ui_portofolio";
|
||||
import { MODEL_PROFILE } from "../profile/model/interface";
|
||||
import { Profile_UiView } from "../profile/ui_profile";
|
||||
|
||||
export default function KatalogView({
|
||||
profile,
|
||||
listPorto,
|
||||
userLoginId,
|
||||
}: {
|
||||
profile: MODEL_PROFILE;
|
||||
listPorto: MODEL_PORTOFOLIO;
|
||||
userLoginId: string;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<Stack>
|
||||
<Profile_UiView profile={profile as any} userLoginId={userLoginId} />
|
||||
<Portofolio_UiView
|
||||
listPorto={listPorto as any}
|
||||
profile={profile}
|
||||
userLoginId={userLoginId}
|
||||
/>
|
||||
</Stack>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user