From a9164e5e5f996d3c1096db41d57d28b235aeac6f Mon Sep 17 00:00:00 2001 From: Hafid Nur Date: Sun, 16 Mar 2025 22:16:52 +0700 Subject: [PATCH] feat: gacha item horizontal scroll snap --- apps/gacha/src/app/page.tsx | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/apps/gacha/src/app/page.tsx b/apps/gacha/src/app/page.tsx index 62c5210..8bb7869 100644 --- a/apps/gacha/src/app/page.tsx +++ b/apps/gacha/src/app/page.tsx @@ -1,10 +1,12 @@ import { ArrowDownOutlined } from '@ant-design/icons'; import { Button } from '@imphnen-frontend-service/ui/atoms'; +import { cn } from '@imphnen-frontend-service/utils'; import { FC, Fragment, ReactElement } from 'react'; interface GachaItemProps { src: string; label: string; + className?: string; } export const Components: FC = (): ReactElement => { @@ -15,14 +17,18 @@ export const Components: FC = (): ReactElement => { } }; - const GachaItem: FC = ({ src, label }): ReactElement => { + const GachaItem: FC = ({ + src, + label, + className, + }): ReactElement => { return ( -
-
+
+

{label}

@@ -151,27 +157,32 @@ export const Components: FC = (): ReactElement => {
Here Take Your Prize
- {/* + - */} +