From 9002e6a261340f92c4ff6909e52d605a2bd034a8 Mon Sep 17 00:00:00 2001 From: Hafid Nur Date: Sun, 16 Mar 2025 19:13:49 +0700 Subject: [PATCH] feat: merge landing page component into single page file - Component landing page sebelumnya terpisah, tetapi perlu digabungkan lagi karena tidak reusable pada aplikasi --- apps/gacha/src/app/page.tsx | 109 +++++++++++++++++- libs/ui/src/organisms/index.ts | 1 - libs/ui/src/organisms/landing-page/index.ts | 1 - .../organisms/landing-page/landing-page.tsx | 103 ----------------- 4 files changed, 103 insertions(+), 111 deletions(-) delete mode 100644 libs/ui/src/organisms/landing-page/index.ts delete mode 100644 libs/ui/src/organisms/landing-page/landing-page.tsx diff --git a/apps/gacha/src/app/page.tsx b/apps/gacha/src/app/page.tsx index bae1c49..7ad58ef 100644 --- a/apps/gacha/src/app/page.tsx +++ b/apps/gacha/src/app/page.tsx @@ -1,12 +1,109 @@ -import { LandingPage } from '@imphnen-frontend-service/ui/organisms'; -import { FC, ReactElement } from 'react'; +import { ArrowDownOutlined } from '@ant-design/icons'; +import { Button } from '@imphnen-frontend-service/ui/atoms'; +import { FC, Fragment, ReactElement } from 'react'; export const Components: FC = (): ReactElement => { + const scrollToRoulette = () => { + const rouletteSection = document.getElementById('roulette'); + if (rouletteSection) { + rouletteSection.scrollIntoView({ behavior: 'smooth' }); + } + }; + return ( - <> - -
- + + {/* Landing Page */} +
+
+ IMPHNEN Logo + +
+
+

New Merchandise

+

Coming UP

+
+
+ Periode Gacha: 1 - 31 Maret 2025 +
+
+ +
+

Let's Go Checkout Our Merch &

+

Gacha Your Prize Here

+
+ +
+ +
+
+ Merch 1 + +
+
+ Official Merch IMPHNEN +
+
+ ~ 175k ~ +
+ +
+
+
+ Merch 2 + +
+
+ IMPHNEN Mini Merch +
+
+ ~ 90k ~ +
+ +
+
+ {/* Roulette Page */} +
+
); }; diff --git a/libs/ui/src/organisms/index.ts b/libs/ui/src/organisms/index.ts index e75a225..f5899d0 100644 --- a/libs/ui/src/organisms/index.ts +++ b/libs/ui/src/organisms/index.ts @@ -1,2 +1 @@ export * from './navbar'; -export * from './landing-page'; diff --git a/libs/ui/src/organisms/landing-page/index.ts b/libs/ui/src/organisms/landing-page/index.ts deleted file mode 100644 index d78baa5..0000000 --- a/libs/ui/src/organisms/landing-page/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './landing-page'; diff --git a/libs/ui/src/organisms/landing-page/landing-page.tsx b/libs/ui/src/organisms/landing-page/landing-page.tsx deleted file mode 100644 index 711445d..0000000 --- a/libs/ui/src/organisms/landing-page/landing-page.tsx +++ /dev/null @@ -1,103 +0,0 @@ -import { ArrowDownOutlined } from '@ant-design/icons'; -import { Button } from '@imphnen-frontend-service/ui/atoms'; -import { FC, ReactElement } from 'react'; - -export const LandingPage: FC = (): ReactElement => { - const scrollToRoulette = () => { - const rouletteSection = document.getElementById('roulette'); - if (rouletteSection) { - rouletteSection.scrollIntoView({ behavior: 'smooth' }); - } - }; - - return ( -
-
- IMPHNEN Logo - -
-
-

New Merchandise

-

Coming UP

-
-
- Periode Gacha: 1 - 31 Maret 2025 -
-
- -
-

Let's Go Checkout Our Merch &

-

Gacha Your Prize Here

-
- -
- -
-
- Merch 1 - -
-
- Official Merch IMPHNEN -
-
- ~ 175k ~ -
- -
-
-
- Merch 2 - -
-
- IMPHNEN Mini Merch -
-
- ~ 90k ~ -
- -
-
- ); -};