Penerapan UI Home

# style:
- Tampilan home dan loading
## No issue
This commit is contained in:
2024-06-25 15:47:49 +08:00
parent 1a157846c1
commit 96fb9a8512
11 changed files with 407 additions and 161 deletions

View File

@@ -2,7 +2,7 @@ import { Event_SplashScreen } from "@/app_modules/event";
export default async function Page() {
// await new Promise((a, b) => {
// setTimeout(a, 1000);
// setTimeout(a, 3000);
// });
return <Event_SplashScreen />;
}

View File

@@ -3,7 +3,7 @@ import ComponentGlobal_V2_LoadingPage from "@/app_modules/component_global/loadi
export default async function Page() {
return (
<>
<ComponentGlobal_V2_LoadingPage />
{/* <ComponentGlobal_V2_LoadingPage /> */}
</>
);
}

View File

@@ -1,17 +1,15 @@
import { HomeView } from "@/app_modules/home";
import { cookies } from "next/headers";
import { unsealData } from "iron-session";
import _ from "lodash";
import { user_getOneUserId } from "@/app_modules/fun_global/get_user_token";
import { user_getOneByUserId } from "@/app_modules/home/fun/get/get_one_user_by_id";
import { redirect } from "next/navigation";
import { RouterAdminDashboard } from "@/app/lib/router_hipmi/router_admin";
import { RouterHome } from "@/app/lib/router_hipmi/router_home";
import ComponentGlobal_V2_LoadingPage from "@/app_modules/component_global/loading_page_v2";
import { user_getOneUserId } from "@/app_modules/fun_global/get_user_token";
import { HomeView } from "@/app_modules/home";
import { user_getOneByUserId } from "@/app_modules/home/fun/get/get_one_user_by_id";
import { job_getTwoForHomeView } from "@/app_modules/job/fun/get/get_two_for_home_view";
import { redirect } from "next/navigation";
export default async function Page() {
const userId = await user_getOneUserId();
const dataUser = await user_getOneByUserId(userId);
const dataJob = await job_getTwoForHomeView();
if (dataUser?.active === false) {
return redirect(RouterHome.home_user_non_active);
@@ -23,12 +21,12 @@ export default async function Page() {
// if (dataUser?.Profile === null) return <ComponentGlobal_V2_LoadingPage />;
// await new Promise((a, b) => {
// setTimeout(a, 4000);
// setTimeout(a, 3000);
// });
return (
<>
<HomeView dataUser={dataUser as any} />
<HomeView dataUser={dataUser as any} dataJob={[]} />
</>
);
}