From b1573af1b8c5e89ed0a2b3fe1834f99a6b8cba24 Mon Sep 17 00:00:00 2001 From: nico Date: Sun, 5 Jan 2025 15:53:41 +0800 Subject: [PATCH] Collaboration & Create Porotofolio --- src/app_modules/_global/color/color_pallet.ts | 3 +- .../component/comp_load_image_landscape.tsx | 8 +- src/app_modules/auth/login/view.tsx | 9 +- .../card_section_jumlah_partisipan.tsx | 5 +- .../colab/component/card_view/crad_grup.tsx | 8 +- .../colab/component/skeleton_view.tsx | 117 +++++++++--------- src/app_modules/colab/create/index.tsx | 40 +++--- src/app_modules/colab/detail/group/index.tsx | 17 ++- .../colab/detail/proyek/saya/index.tsx | 7 +- src/app_modules/colab/main/layout.tsx | 4 +- src/app_modules/colab/main/proyek/index.tsx | 6 +- .../comp_button_delete_donasi_by_id.tsx | 4 +- .../component/card_view/card_invoice_new.tsx | 4 +- .../detail_main/cerita_penggalang.tsx | 4 +- .../detail_main/cerita_penggalang_new.tsx | 4 +- .../detail_main/informasi_penggalang_new.tsx | 4 +- .../create/create_cerita_penggalang.tsx | 36 +++++- .../donasi/create/create_donasi_new.tsx | 42 ++++++- .../donasi/detail/detail_draft/index.tsx | 14 ++- .../donasi/detail/detail_reject/index.tsx | 12 +- .../donasi/detail/detail_review/index.tsx | 12 +- .../main/galang_dana/ui_galang_dana_new.tsx | 7 +- src/app_modules/donasi/main/layout.tsx | 4 +- .../proses_donasi/proses_transaksi/index.tsx | 10 +- .../detail/portofolio/view_detail_reject.tsx | 9 +- .../_view/edit/skeleton_edit_investasi.tsx | 13 +- .../_view/edit/vew_edit_investasi_new.tsx | 73 +++++++++-- .../katalog/portofolio/create/view.tsx | 88 +++++++------ .../katalog/profile/create/view.tsx | 18 ++- 29 files changed, 368 insertions(+), 214 deletions(-) diff --git a/src/app_modules/_global/color/color_pallet.ts b/src/app_modules/_global/color/color_pallet.ts index 5d6ef09a..658e509e 100644 --- a/src/app_modules/_global/color/color_pallet.ts +++ b/src/app_modules/_global/color/color_pallet.ts @@ -5,7 +5,8 @@ export const MainColor = { white: "#D4D0D0", red: "#FF4B4C", orange: "#FF7043", - green: "#4CAF4F" + green: "#4CAF4F", + login: "#EDEBEBFF" }; export const AccentColor = { diff --git a/src/app_modules/_global/component/comp_load_image_landscape.tsx b/src/app_modules/_global/component/comp_load_image_landscape.tsx index b121dc99..d8d1f9bb 100644 --- a/src/app_modules/_global/component/comp_load_image_landscape.tsx +++ b/src/app_modules/_global/component/comp_load_image_landscape.tsx @@ -3,10 +3,12 @@ import { APIs } from "@/app/lib"; import { pathAssetImage } from "@/app/lib/path_asset_image"; import { RouterImagePreview } from "@/app/lib"; -import { Center, Image, Skeleton } from "@mantine/core"; +import { Center, Image } from "@mantine/core"; import { useShallowEffect } from "@mantine/hooks"; import { useRouter } from "next/navigation"; import { useState } from "react"; +import { MainColor } from "../color"; +import CustomSkeleton from "@/app_modules/components/CustomSkeleton"; export function ComponentGlobal_LoadImageLandscape({ fileId, @@ -34,12 +36,12 @@ export function ComponentGlobal_LoadImageLandscape({ } } - if (isImage === null) return ; + if (isImage === null) return ; if (!isImage) return ( <> -
+
No ImageNomor telepon
{ setPhone(val); diff --git a/src/app_modules/colab/component/card_view/card_section_jumlah_partisipan.tsx b/src/app_modules/colab/component/card_view/card_section_jumlah_partisipan.tsx index 404e7f04..9c241cc7 100644 --- a/src/app_modules/colab/component/card_view/card_section_jumlah_partisipan.tsx +++ b/src/app_modules/colab/component/card_view/card_section_jumlah_partisipan.tsx @@ -1,5 +1,6 @@ "use client"; +import { MainColor } from "@/app_modules/_global/color"; import { Card, Center, Divider, Grid, Stack, Text } from "@mantine/core"; export default function ComponentColab_JumlahPartisipan({ @@ -15,12 +16,12 @@ export default function ComponentColab_JumlahPartisipan({
- + {jumlah?.length ? jumlah?.length : 0} - + Partisipan diff --git a/src/app_modules/colab/component/card_view/crad_grup.tsx b/src/app_modules/colab/component/card_view/crad_grup.tsx index 5b405b30..be945eb3 100644 --- a/src/app_modules/colab/component/card_view/crad_grup.tsx +++ b/src/app_modules/colab/component/card_view/crad_grup.tsx @@ -1,5 +1,5 @@ import { RouterColab } from "@/app/lib/router_hipmi/router_colab"; -import { AccentColor } from "@/app_modules/_global/color/color_pallet"; +import { AccentColor, MainColor } from "@/app_modules/_global/color/color_pallet"; import ComponentGlobal_Loader from "@/app_modules/_global/component/loader"; import { Paper, Grid, Stack, Center, Loader, Text } from "@mantine/core"; import { IconChevronRight } from "@tabler/icons-react"; @@ -17,7 +17,7 @@ export function ComponentColab_CardGrup({ data }: { data: any }) { style={{ border: `2px solid ${AccentColor.blue}`, backgroundColor: AccentColor.darkblue, - color: "white", + color: MainColor.white, borderRadius: "10px", marginBottom: "20px", padding: "15px", @@ -37,7 +37,7 @@ export function ComponentColab_CardGrup({ data }: { data: any }) { {data?.ProjectCollaboration_RoomChat?.name} - + { data?.ProjectCollaboration_RoomChat ?.ProjectCollaboration_AnggotaRoomChat.length @@ -51,7 +51,7 @@ export function ComponentColab_CardGrup({ data }: { data: any }) { {data?.ProjectCollaboration_RoomChat?.id === idRoom ? ( ) : ( - + )}
diff --git a/src/app_modules/colab/component/skeleton_view.tsx b/src/app_modules/colab/component/skeleton_view.tsx index afa4f998..027a227d 100644 --- a/src/app_modules/colab/component/skeleton_view.tsx +++ b/src/app_modules/colab/component/skeleton_view.tsx @@ -1,4 +1,5 @@ import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component"; +import CustomSkeleton from "@/app_modules/components/CustomSkeleton"; import { Center, Grid, Group, Skeleton, Stack } from "@mantine/core"; export { @@ -16,27 +17,27 @@ function Collaboration_SkeletonCreate() { <> - - + + - - + + - - + + - - + + - - + + - + ); @@ -50,45 +51,45 @@ function Collaboration_SkeletonBeranda() { - + - + {/* - + */}
- +
- + - + - + - + - - - + + +
- +
@@ -104,11 +105,11 @@ function Collaboration_SkeletonGrup() { - - + + - + ))} @@ -123,38 +124,38 @@ function Collaboration_SkeletonDetail() { - + - +
- +
- + - + - + - + - - - - + + + +
@@ -168,16 +169,16 @@ function Collaboration_SkeletonListPrtisipanIsUser() {
- +
{Array.from(new Array(2)).map((e, i) => ( - + - + ))} @@ -193,21 +194,21 @@ function Collaboration_SkeletonListPartisipan() { <>
- +
- +
{Array.from(new Array(2)).map((e, i) => ( - + - + ))} @@ -225,47 +226,47 @@ function Collaboration_SkeletonDetailInfoGroup() {
- +
- + - + - + - + - - - - - - + + + + + +
- + {Array.from(new Array(2)).map((e, i) => ( - + - + ))} diff --git a/src/app_modules/colab/create/index.tsx b/src/app_modules/colab/create/index.tsx index 8123fca1..14d10432 100644 --- a/src/app_modules/colab/create/index.tsx +++ b/src/app_modules/colab/create/index.tsx @@ -51,7 +51,7 @@ export default function Colab_Create() { } } - + if (listIndustri == null) { return ( <> @@ -66,9 +66,9 @@ export default function Colab_Create() {