feat: landing page for tablet viewport

- change "scroll for gacha" to button to roulette page
This commit is contained in:
Hafid Nur
2025-03-16 07:11:06 +07:00
parent 02863ebc8b
commit 00033b9c68
@@ -1,11 +1,26 @@
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 (
<section className="my-12">
<div className="order-1 lg:order-2 flex flex-col items-center gap-7 text-primary-500">
<img src="/logos/logo.svg" alt="IMPHNEN Logo" width={170} />
<section
id="landing-page"
className="my-12 md:my-24 flex flex-col md:flex-row flex-wrap"
>
<div className="order-none lg:order-1 flex flex-col md:w-full items-center gap-7 md:gap-13 text-primary-500 mb-10 md:mb-20">
<img
src="/logos/logo.svg"
alt="IMPHNEN Logo"
className="w-[170px] md:w-[317px]"
/>
<div className="font-semibold text-center">
<div className="text-p1 md:text-h2 text-center">
@@ -17,51 +32,60 @@ export const LandingPage: FC = (): ReactElement => {
</div>
</div>
<div className="text-center font-semibold text-p3">
<div className="text-center font-semibold text-p3 md:text-p1">
<p>Let's Go Checkout Our Merch &</p>
<p>Gacha Your Prize Here</p>
</div>
<div className="flex gap-3 px-3 py-2 bg-primary-100 border border-primary-500 border-dashed rounded animate-bounce">
<Button
size="sm"
variant="bordered"
className="flex gap-3 px-3 py-2 bg-primary-100 border border-primary-500 border-dashed rounded animate-bounce text-label2 md:text-p2"
onClick={scrollToRoulette}
>
<ArrowDownOutlined />
<span className="font-label2">Scroll For Gacha</span>
<span>Scroll For Gacha</span>
<ArrowDownOutlined />
</div>
</Button>
</div>
<div className="flex flex-col justify-center items-center my-10">
<div className="relative h-[150px]">
<div className="order-1 flex flex-col flex-1 justify-center items-center mb-8">
<div className="relative h-[150px] md:h-[250px]">
<img
src="/merch/1.png"
alt="Merch 1"
className="relative top-[3px] left-[4px] z-10 w-[165px]"
className="relative top-[3px] md:top-[6px] left-[4px] md:left-[7px] z-10 w-[165px] md:w-[266px]"
/>
<img
className="absolute top-0 left-0 min-w-[174px] z-0"
className="absolute top-0 left-0 min-w-[174px] md:min-w-[280px] z-0"
src="/merch/Vector-1.svg"
alt=""
/>
</div>
<div className="px-3 py-1 text-primary-500 font-semibold text-base bg-white shadow-md rounded">
<div className="px-3 py-1 text-primary-500 font-semibold text-base md:text-p2 bg-white shadow-md rounded">
Official Merch IMPHNEN
</div>
<div className="mt-2 text-primary-500 font-bold text-p2">~ 175k ~</div>
<div className="mt-2 text-primary-500 font-bold text-p2 md:text-h3">
~ 175k ~
</div>
</div>
<div className="flex flex-col justify-center items-center my-10">
<div className="relative h-[130px]">
<div className="order-2 flex flex-col flex-1 justify-center items-center mb-8">
<div className="relative h-[130px] md:h-[250px]">
<img
src="/merch/2.png"
alt="Merch 2"
className="relative top-[5px] left-[5px] z-10 w-[165px]"
className="relative top-[5px] md:top-[8px] left-[5px] md:left-[12px] z-10 w-[165px] md:w-[277px]"
/>
<img
className="absolute top-0 left-0 z-0 min-w-[174px]"
className="absolute top-0 left-0 z-0 min-w-[174px] md:min-w-[302px]"
src="/merch/Vector-2.svg"
alt=""
/>
</div>
<div className="px-3 py-1 text-primary-500 font-semibold text-base bg-white shadow-md rounded">
<div className="px-3 py-1 text-primary-500 font-semibold text-base md:text-p2 bg-white shadow-md rounded">
IMPHNEN Mini Merch
</div>
<div className="mt-2 text-primary-500 font-bold text-p2">~ 90k ~</div>
<div className="mt-2 text-primary-500 font-bold text-p2 md:text-h3">
~ 90k ~
</div>
</div>
</section>
);