-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
729357b
commit 490cd39
Showing
10 changed files
with
133 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export const share = { | ||
kakao: ({ | ||
title, | ||
description, | ||
imageUrl, | ||
link, | ||
}: { | ||
title: string | ||
description: string | ||
imageUrl: string | ||
link: string | ||
}) => { | ||
const { Kakao } = window | ||
if (!Kakao.isInitialized()) { | ||
console.log('init') | ||
Kakao.init('f0146584008c5fad855abb3cfad073d7') | ||
} | ||
Kakao.Share.sendDefault({ | ||
objectType: 'feed', | ||
content: { | ||
title, | ||
description, | ||
imageUrl, | ||
link: { | ||
mobileWebUrl: link, | ||
webUrl: link, | ||
}, | ||
}, | ||
buttons: [ | ||
{ | ||
title: '웹으로 보기', | ||
link: { | ||
mobileWebUrl: link, | ||
webUrl: link, | ||
}, | ||
}, | ||
], | ||
}) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
'use client' | ||
|
||
import Header from '@/app/_components/shared/header' | ||
|
||
export default function layout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<main className='h-full pt-20'> | ||
<Header className='bg-dodal-main'> | ||
<div className='w-9' /> | ||
<Header.Title>초대장 도착</Header.Title> | ||
<Header.Close | ||
onClick={() => { | ||
window.close() | ||
}} | ||
/> | ||
</Header> | ||
{children} | ||
</main> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Image from 'next/image' | ||
|
||
export default function InvitationPage() { | ||
return ( | ||
<div className='flex min-h-[100dvh] flex-col items-center justify-center overflow-y-auto'> | ||
<div className='relative aspect-[323/208] w-[323px]'> | ||
<Image src='https://dodals3.s3.ap-northeast-2.amazonaws.com/asset/dodals.png' fill alt='' /> | ||
</div> | ||
<div className='mt-8 flex flex-col justify-center'> | ||
<div className='text-center'> | ||
<span className='text-lg text-[#8A72FF]'>별빛우주</span> | ||
<span className='text-lg'>님이 초대장을 보냈어요</span> | ||
</div> | ||
<span className='text-center text-lg'>목표를 위해 함께 달려볼까요?</span> | ||
</div> | ||
<div className='mt-20 flex w-full flex-col items-center gap-3'> | ||
<button className='h-[56px] w-full max-w-[326px] rounded-[50px] bg-[#482BD9] text-lg font-bold'>좋아요!</button> | ||
<button className='h-[56px] w-full max-w-[326px] rounded-[50px] bg-[#595959] text-lg font-semibold'> | ||
아니요, 괜찮아요 | ||
</button> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/types/global" /> | ||
|
||
interface Window { | ||
Kakao: any | ||
} |