UI Forum untuk user

- UI selesai
- Realtime dan notifikasi selesai
## No Issuee
This commit is contained in:
2024-07-02 17:38:13 +08:00
parent 11b5e8f722
commit bca5a2ac15
43 changed files with 719 additions and 638 deletions

View File

@@ -6,15 +6,7 @@ import {
MainColor,
} from "@/app_modules/component_global/color/color_pallet";
import { MODEL_USER } from "@/app_modules/home/model/interface";
import {
Center,
Avatar,
Stack,
Button,
Divider,
Grid,
Text,
} from "@mantine/core";
import { Avatar, Button, Center, Grid, Stack, Text } from "@mantine/core";
import { IconCircleFilled } from "@tabler/icons-react";
import { useRouter } from "next/navigation";
@@ -30,17 +22,16 @@ export default function ComponentForum_ViewForumProfile({
const router = useRouter();
const [loading, setLoading] = useState(false);
// if (loading) return <ComponentGlobal_V2_LoadingPage />;
return (
<>
<Center>
<Avatar
bg={"gray"}
radius={"100%"}
sx={{
borderStyle: "solid",
borderWidth: "0.5px",
borderColor: "black",
borderColor: AccentColor.yellow,
}}
size={100}
alt="foto"

View File

@@ -1,6 +1,10 @@
"use client";
import { RouterForum } from "@/app/lib/router_hipmi/router_forum";
import {
AccentColor,
MainColor,
} from "@/app_modules/component_global/color/color_pallet";
import { MODEL_USER } from "@/app_modules/home/model/interface";
import {
ActionIcon,
@@ -14,15 +18,13 @@ import {
import { useWindowScroll } from "@mantine/hooks";
import { IconPencilPlus, IconSearchOff } from "@tabler/icons-react";
import _ from "lodash";
import { ScrollOnly } from "next-scroll-loader";
import { useRouter } from "next/navigation";
import { useState } from "react";
import ComponentForum_ForumkuMainCardView from "../component/forumku_component/forumku_view";
import { forum_getAllPostingByAuhtorId } from "../fun/get/get_list_posting_by_author_id";
import { MODEL_FORUM_POSTING } from "../model/interface";
import ComponentForum_ViewForumProfile from "./forum_profile";
import ComponentForum_PostinganPribadi from "./postingan_pribadi";
import { ScrollOnly } from "next-scroll-loader";
import { forum_getAllPostingByAuhtorId } from "../fun/get/get_list_posting_by_author_id";
import ComponentForum_ForumkuMainCardView from "../component/forumku_component/forumku_view";
import { AccentColor } from "@/app_modules/component_global/color/color_pallet";
export default function Forum_Forumku({
auhtorSelectedData,
@@ -72,7 +74,7 @@ export default function Forum_Forumku({
""
)}
<Stack spacing={"xl"} px={"sm"}>
<Stack spacing={"xl"}>
<ComponentForum_ViewForumProfile
auhtorSelectedData={auhtorSelectedData}
totalPosting={totalPosting}
@@ -90,10 +92,10 @@ export default function Forum_Forumku({
) : (
// --- Main component --- //
<ScrollOnly
height="80vh"
height={data.length < 5 ? "60vh" : "100vh"}
renderLoading={() => (
<Center mt={"lg"}>
<Loader />
<Loader color={"yellow"} />
</Center>
)}
data={data}