fix di katalog, tambahan di event dan investasi
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { AccentColor } from "@/app_modules/_global/color/color_pallet";
|
||||
import { AccentColor, MainColor } from "@/app_modules/_global/color/color_pallet";
|
||||
import {
|
||||
ComponentGlobal_CardLoadingOverlay,
|
||||
ComponentGlobal_CardStyles,
|
||||
@@ -33,17 +33,17 @@ export default function ComponentEvent_BoxListStatus({
|
||||
>
|
||||
<Stack>
|
||||
<Group w={"100%"} position="apart" grow>
|
||||
<Title order={5} lineClamp={1}>
|
||||
<Title color={MainColor.white} order={5} lineClamp={1}>
|
||||
{data.title}
|
||||
</Title>
|
||||
<Text align="right" fz={"sm"} lineClamp={1}>
|
||||
<Text c={MainColor.white} align="right" fz={"sm"} lineClamp={1}>
|
||||
{new Intl.DateTimeFormat("id-ID", {
|
||||
dateStyle: "medium",
|
||||
}).format(data.tanggal)}
|
||||
</Text>
|
||||
</Group>
|
||||
|
||||
<Text fz={"sm"} lineClamp={2}>
|
||||
<Text c={MainColor.white} fz={"sm"} lineClamp={2}>
|
||||
{data.deskripsi}
|
||||
</Text>
|
||||
</Stack>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { RouterEvent } from "@/app/lib/router_hipmi/router_event";
|
||||
import { MainColor } from "@/app_modules/_global/color";
|
||||
import {
|
||||
ComponentGlobal_AvatarAndUsername,
|
||||
ComponentGlobal_CardLoadingOverlay,
|
||||
@@ -31,7 +32,7 @@ export function ComponentEvent_CardBeranda({ data }: { data: any }) {
|
||||
}}
|
||||
>
|
||||
<Group w={"100%"} position="apart" grow>
|
||||
<Title order={5} lineClamp={1}>
|
||||
<Title c={MainColor.white} order={5} lineClamp={1}>
|
||||
{data.title}
|
||||
</Title>
|
||||
{/* <Text align="right" fz={"sm"} lineClamp={1}>
|
||||
@@ -41,7 +42,7 @@ export function ComponentEvent_CardBeranda({ data }: { data: any }) {
|
||||
</Text> */}
|
||||
</Group>
|
||||
|
||||
<Text fz={"sm"} lineClamp={2}>
|
||||
<Text c={MainColor.white} fz={"sm"} lineClamp={2}>
|
||||
{data.deskripsi}
|
||||
</Text>
|
||||
</Stack>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component";
|
||||
import { Grid, Stack, Text, Title } from "@mantine/core";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MainColor } from "@/app_modules/_global/color";
|
||||
|
||||
export default function ComponentEvent_DetailData({
|
||||
data,
|
||||
@@ -13,42 +14,42 @@ export default function ComponentEvent_DetailData({
|
||||
<>
|
||||
<ComponentGlobal_CardStyles marginBottom={"16px"}>
|
||||
<Stack px={"sm"} spacing={"xl"}>
|
||||
<Title lineClamp={2} align="center" w={"100%"} order={4}>
|
||||
<Title color={MainColor.white} lineClamp={2} align="center" w={"100%"} order={4}>
|
||||
{data ? data?.title : null}
|
||||
</Title>
|
||||
<Grid>
|
||||
<Grid.Col span={4}>
|
||||
<Text fw={"bold"}>Lokasi</Text>
|
||||
<Text c={MainColor.white} fw={"bold"}>Lokasi</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={1}>:</Grid.Col>
|
||||
<Grid.Col span={"auto"}>
|
||||
<Text>{data ? data?.lokasi : null}</Text>
|
||||
<Text c={MainColor.white}>{data ? data?.lokasi : null}</Text>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
<Grid>
|
||||
<Grid.Col span={4}>
|
||||
<Text fw={"bold"}>Tipe Acara</Text>
|
||||
<Text c={MainColor.white} fw={"bold"}>Tipe Acara</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={1}>:</Grid.Col>
|
||||
<Grid.Col span={"auto"}>
|
||||
<Text>{data ? data.EventMaster_TipeAcara?.name : null}</Text>
|
||||
<Text c={MainColor.white}>{data ? data.EventMaster_TipeAcara?.name : null}</Text>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
<Stack spacing={"xs"}>
|
||||
<Text fw={"bold"}>Tanggal & Waktu</Text>
|
||||
<Text c={MainColor.white} fw={"bold"}>Tanggal & Waktu</Text>
|
||||
<Grid>
|
||||
<Grid.Col span={4}>
|
||||
<Text fw={"bold"}>Mulai</Text>
|
||||
<Text c={MainColor.white} fw={"bold"}>Mulai</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={1}>:</Grid.Col>
|
||||
<Grid.Col span={"auto"}>
|
||||
<Text>
|
||||
<Text c={MainColor.white}>
|
||||
{" "}
|
||||
{new Intl.DateTimeFormat("id-ID", {
|
||||
dateStyle: "full",
|
||||
}).format(data?.tanggal)}
|
||||
,{" "}
|
||||
<Text span inherit>
|
||||
<Text span inherit c={MainColor.white}>
|
||||
{new Intl.DateTimeFormat("id-ID", {
|
||||
timeStyle: "short",
|
||||
}).format(data?.tanggal)}
|
||||
@@ -58,17 +59,17 @@ export default function ComponentEvent_DetailData({
|
||||
</Grid>
|
||||
<Grid>
|
||||
<Grid.Col span={4}>
|
||||
<Text fw={"bold"}>Selesai</Text>
|
||||
<Text c={MainColor.white} fw={"bold"}>Selesai</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={1}>:</Grid.Col>
|
||||
<Grid.Col span={"auto"}>
|
||||
<Text>
|
||||
<Text c={MainColor.white}>
|
||||
{" "}
|
||||
{new Intl.DateTimeFormat("id-ID", {
|
||||
dateStyle: "full",
|
||||
}).format(data?.tanggalSelesai)}
|
||||
,{" "}
|
||||
<Text span inherit>
|
||||
<Text span inherit c={MainColor.white}>
|
||||
{new Intl.DateTimeFormat("id-ID", {
|
||||
timeStyle: "short",
|
||||
}).format(data?.tanggalSelesai)}
|
||||
@@ -79,8 +80,8 @@ export default function ComponentEvent_DetailData({
|
||||
</Stack>
|
||||
|
||||
<Stack spacing={2}>
|
||||
<Text fw={"bold"}>Deskripsi</Text>
|
||||
<Text>{data ? data?.deskripsi : null}</Text>
|
||||
<Text c={MainColor.white} fw={"bold"}>Deskripsi</Text>
|
||||
<Text c={MainColor.white}>{data ? data?.deskripsi : null}</Text>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</ComponentGlobal_CardStyles>
|
||||
|
||||
@@ -12,6 +12,7 @@ import { API_RouteEvent } from "@/app/lib/api_user_router/route_api_event";
|
||||
import { Event_ComponentSkeletonDetail } from "../skeleton/comp_skeleton_detail";
|
||||
import moment from "moment";
|
||||
import "moment/locale/id";
|
||||
import { MainColor } from "@/app_modules/_global/color";
|
||||
|
||||
export default function ComponentEvent_DetailMainData({
|
||||
eventId,
|
||||
@@ -44,37 +45,37 @@ export default function ComponentEvent_DetailMainData({
|
||||
/>
|
||||
|
||||
<Stack spacing={"xl"}>
|
||||
<Title align="center" order={4}>
|
||||
<Title color={MainColor.white} align="center" order={4}>
|
||||
{data ? data.title : null}
|
||||
</Title>
|
||||
<Grid>
|
||||
<Grid.Col span={4}>
|
||||
<Text fw={"bold"}>Lokasi</Text>
|
||||
<Text c={MainColor.white} fw={"bold"}>Lokasi</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={1}>:</Grid.Col>
|
||||
<Grid.Col span={"auto"}>
|
||||
<Text>{data ? data.lokasi : null}</Text>
|
||||
<Text c={MainColor.white}>{data ? data.lokasi : null}</Text>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
<Grid>
|
||||
<Grid.Col span={4}>
|
||||
<Text fw={"bold"}>Tipe Acara</Text>
|
||||
<Text c={MainColor.white} fw={"bold"}>Tipe Acara</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={1}>:</Grid.Col>
|
||||
<Grid.Col span={"auto"}>
|
||||
<Text>{data ? data.EventMaster_TipeAcara.name : null}</Text>
|
||||
<Text c={MainColor.white}>{data ? data.EventMaster_TipeAcara.name : null}</Text>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
|
||||
<Stack spacing={"xs"}>
|
||||
<Text fw={"bold"}>Tanggal & Waktu</Text>
|
||||
<Text c={MainColor.white} fw={"bold"}>Tanggal & Waktu</Text>
|
||||
<Grid>
|
||||
<Grid.Col span={4}>
|
||||
<Text fw={"bold"}>Mulai</Text>
|
||||
<Text c={MainColor.white} fw={"bold"}>Mulai</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={1}>:</Grid.Col>
|
||||
<Grid.Col span={"auto"}>
|
||||
<Text>
|
||||
<Text c={MainColor.white}>
|
||||
{moment(
|
||||
data.tanggal?.toLocaleString("id-ID", {
|
||||
dateStyle: "full",
|
||||
@@ -85,11 +86,11 @@ export default function ComponentEvent_DetailMainData({
|
||||
</Grid>
|
||||
<Grid>
|
||||
<Grid.Col span={4}>
|
||||
<Text fw={"bold"}>Selesai</Text>
|
||||
<Text c={MainColor.white} fw={"bold"}>Selesai</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={1}>:</Grid.Col>
|
||||
<Grid.Col span={"auto"}>
|
||||
<Text>
|
||||
<Text c={MainColor.white}>
|
||||
{moment(
|
||||
data.tanggalSelesai?.toLocaleString("id-ID", {
|
||||
dateStyle: "full",
|
||||
@@ -101,8 +102,8 @@ export default function ComponentEvent_DetailMainData({
|
||||
</Stack>
|
||||
|
||||
<Stack spacing={2}>
|
||||
<Text fw={"bold"}>Deskripsi</Text>
|
||||
<Text>{data ? data?.deskripsi : null}</Text>
|
||||
<Text c={MainColor.white} fw={"bold"}>Deskripsi</Text>
|
||||
<Text c={MainColor.white}>{data ? data?.deskripsi : null}</Text>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Stack>
|
||||
|
||||
@@ -34,6 +34,7 @@ import { API_RouteEvent } from "@/app/lib/api_user_router/route_api_event";
|
||||
import Event_ComponentSkeletonListPeserta from "../skeleton/comp_skeleton_list_peserta";
|
||||
import { ScrollOnly } from "next-scroll-loader";
|
||||
import { event_newGetListPesertaById } from "../../fun";
|
||||
import { MainColor } from "@/app_modules/_global/color";
|
||||
|
||||
export default function ComponentEvent_ListPeserta({
|
||||
total,
|
||||
@@ -74,12 +75,12 @@ export default function ComponentEvent_ListPeserta({
|
||||
<ComponentGlobal_CardStyles>
|
||||
<Stack spacing={"md"} px={"sm"}>
|
||||
<Center>
|
||||
<Title order={5}>Daftar Peserta ({total})</Title>
|
||||
<Title color={MainColor.white} order={5}>Daftar Peserta ({total})</Title>
|
||||
</Center>
|
||||
|
||||
{_.isEmpty(data) ? (
|
||||
<Center>
|
||||
<Text fz={"xs"} fw={"bold"}>
|
||||
<Text c={MainColor.white} fz={"xs"} fw={"bold"}>
|
||||
- Tidak ada peserta -
|
||||
</Text>
|
||||
</Center>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component";
|
||||
import { Stack, Center, Skeleton, Grid } from "@mantine/core";
|
||||
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||
import { Center, Grid, Stack } from "@mantine/core";
|
||||
|
||||
export default function Event_ComponentSkeletonListPeserta() {
|
||||
return (
|
||||
@@ -7,20 +8,20 @@ export default function Event_ComponentSkeletonListPeserta() {
|
||||
<ComponentGlobal_CardStyles>
|
||||
<Stack spacing={"lg"}>
|
||||
<Center>
|
||||
<Skeleton height={20} width={"50%"} />
|
||||
<CustomSkeleton height={20} width={"50%"} />
|
||||
</Center>
|
||||
|
||||
<Stack>
|
||||
{Array.from(new Array(3)).map((e, i) => (
|
||||
<Grid key={i} align="center">
|
||||
<Grid.Col span={"content"}>
|
||||
<Skeleton radius={"100%"} h={30} w={30} />
|
||||
<CustomSkeleton radius={"100%"} h={30} w={30} />
|
||||
</Grid.Col>
|
||||
<Grid.Col span={"auto"}>
|
||||
<Skeleton h={20} w={"50%"} />
|
||||
<CustomSkeleton h={20} w={"50%"} />
|
||||
</Grid.Col>
|
||||
<Grid.Col span={2}>
|
||||
<Skeleton h={20} w={"50%"} />
|
||||
<CustomSkeleton h={20} w={"50%"} />
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user