From a74f606fdd0efb21df78b43399ca588d69cd2f6c Mon Sep 17 00:00:00 2001 From: myeongheonhong Date: Wed, 20 Nov 2024 11:31:37 +0900 Subject: [PATCH] =?UTF-8?q?[=20feat=20]=20=EA=B3=B5=EC=9C=A0=ED=95=98?= =?UTF-8?q?=EA=B8=B0=20=EB=AA=A8=EB=8B=AC=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/icons/closeSmallIc.svg | 28 ++-- public/assets/images/index.ts | 8 +- src/app/layout.tsx | 9 +- src/app/page.tsx | 4 +- src/app/wishes/create/page.tsx | 8 +- src/app/wishes/page.tsx | 8 + src/app/wishes/share/page.tsx | 27 ---- src/components/Common/Hedaer.tsx | 2 +- .../Common/Modal/CloseIconInModal.tsx | 27 ++-- .../Modal/CloseIconInModalWithVitaminCake.tsx | 25 +++ .../Common/Modal/ShareLinkModal.tsx | 57 +++++++ src/components/UI/CakeTree.tsx | 147 ------------------ src/components/UI/GradientShadow.tsx | 16 +- src/components/UI/PresentList.tsx | 6 +- src/constant/init.ts | 7 +- src/constant/model/cakesTreeData.ts | 2 +- src/constant/model/snsShareList.ts | 76 +++++++++ src/container/present/selectPayment.tsx | 16 +- src/domain/home/container.tsx | 14 +- src/domain/present/[wishId]/component.tsx | 11 +- src/domain/present/[wishId]/container.tsx | 127 ++++++--------- src/domain/present/[wishId]/done.tsx | 2 - src/domain/present/[wishId]/payment.tsx | 10 +- src/domain/wishes/component.tsx | 92 ++++++++++- src/domain/wishes/container.tsx | 94 +++++------ src/domain/wishes/create/container.tsx | 71 ++------- src/domain/wishes/create/service.tsx | 9 ++ src/domain/wishes/share/container.tsx | 4 +- src/hooks/common/useKakaoShare.ts | 25 --- src/hooks/common/useWatchFormValueList.ts | 22 --- src/layouts/MainLayout.tsx | 2 +- 31 files changed, 457 insertions(+), 499 deletions(-) delete mode 100644 src/app/wishes/share/page.tsx create mode 100644 src/components/Common/Modal/CloseIconInModalWithVitaminCake.tsx create mode 100644 src/components/Common/Modal/ShareLinkModal.tsx create mode 100644 src/constant/model/snsShareList.ts delete mode 100644 src/hooks/common/useKakaoShare.ts delete mode 100644 src/hooks/common/useWatchFormValueList.ts diff --git a/public/assets/icons/closeSmallIc.svg b/public/assets/icons/closeSmallIc.svg index 9fb4f122..a7dee92b 100644 --- a/public/assets/icons/closeSmallIc.svg +++ b/public/assets/icons/closeSmallIc.svg @@ -1,15 +1,15 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/public/assets/images/index.ts b/public/assets/images/index.ts index 7849c6c6..f4b3b500 100644 --- a/public/assets/images/index.ts +++ b/public/assets/images/index.ts @@ -24,10 +24,10 @@ export { default as MainEndCakeImg } from '../images/mainEndCakeImg.png'; export { default as LinkBeefCakeImg } from '../images/linkBeefCakeImg.png'; // SNS share -export { default as KaKaoLogoImg } from '../images/sns/kakaoLogoImg.svg'; -export { default as InstaLogoImg } from '../images/sns/instaLogoImg.svg'; -export { default as FacebookLogoImg } from '../images/sns/facebookLogoImg.svg'; -export { default as TwitterLogoImg } from '../images/sns/twitterLogoImg.svg'; +export { default as ShareKaKaoLogoImg } from '../images/sns/kakaoLogoImg.svg'; +export { default as ShareInstaLogoImg } from '../images/sns/instaLogoImg.svg'; +export { default as ShareFacebookLogoImg } from '../images/sns/facebookLogoImg.svg'; +export { default as ShareTwitterLogoImg } from '../images/sns/twitterLogoImg.svg'; //케이크 트리 관련 이미지 export { default as CakeDishTopRibbonImg } from '../images/cakeDishTopRibbonImg.png'; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 4a0ecb4f..e9fe8af3 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -2,6 +2,13 @@ import { Metadata } from 'next'; import '../styles/global.css'; import { Suspense } from 'react'; import Loading from './loading'; +import Script from 'next/script'; + +declare global { + interface Window { + Kakao: any; + } +} export const metadata: Metadata = { title: '조물주 보다 생일 선물주', @@ -14,7 +21,7 @@ export default function RootLayout({ children }: { children: React.ReactNode }) }>{children} - {/* {children} */} +