-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
INV-60 UT 초대장 #8
Merged
Merged
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7d589f0
chore: UT 이미지 추가
WooWan 8b7d5ed
design: secondary 색상 추가
WooWan 7955dda
chore: pretendard 폰트 추가
WooWan 2120ae7
add: Sonner
WooWan 450f813
update: pretendard 폰트 설정
WooWan 9ac3009
chore: bun lock
WooWan ba68084
add: ut 초대장 페이지
WooWan eb31cc8
Merge branch 'main' of https://github.com/Nexters/invi into feat/ut-i…
WooWan 1f76618
chore: vercel preview comment 액션 업데이트
WooWan 94e844c
Revert "chore: vercel preview comment 액션 업데이트"
WooWan 44e0369
chore: 지도 아이콘 추가
WooWan 0da770b
update: 네이버, 카카오 지도 열기 지원
WooWan 7e89e6e
design: 헤더 배경 gradient
WooWan be2e2cc
design: html 배경색 추가
WooWan c8ac830
design: 세션 일정 피그마 반영
WooWan 59a2c22
update: 주소 변경
WooWan 6e87c06
design: toast 디자인 반영
WooWan 9c38589
design: 세션 일정 높이 조정
WooWan 4ed1ff0
design: 줄바꿈
WooWan 872d099
chore: 카카오 공유하기 이미지
WooWan 4e6b03b
chore: 로고 변경
WooWan 9023467
feat: 카카오 공유하기
WooWan df491c1
chore: 카카오 공유하기 환경변수 추가
WooWan eb53e55
remove: 카카오톡 공유하기 기능
WooWan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -35,6 +35,8 @@ | |
--ring: 222.2 84% 4.9%; | ||
|
||
--radius: 0.5rem; | ||
|
||
--i-secondary: #6e96ff; | ||
} | ||
|
||
.dark { | ||
|
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 |
---|---|---|
@@ -1,6 +1,15 @@ | ||
import type { Metadata } from "next"; | ||
import localFont from "next/font/local"; | ||
import { Toaster as Sonner } from "~/components/ui/sonner"; | ||
import "./globals.css"; | ||
|
||
const pretendard = localFont({ | ||
src: "../../public/fonts/PretendardVariable.woff2", | ||
display: "swap", | ||
weight: "45 920", | ||
variable: "--font-pretendard", | ||
}); | ||
|
||
export const metadata: Metadata = { | ||
title: "인비", | ||
description: "당신의 환대, 초대장 플랫폼 '인비' 입니다.", | ||
|
@@ -12,7 +21,7 @@ export default function RootLayout({ | |
children: React.ReactNode; | ||
}>) { | ||
return ( | ||
<html lang="ko"> | ||
<html lang="kr" className={`${pretendard.variable} bg-[#1A1A1A]`}> | ||
<head> | ||
<link | ||
rel="stylesheet" | ||
|
@@ -21,7 +30,10 @@ export default function RootLayout({ | |
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-dynamic-subset.min.css" | ||
/> | ||
</head> | ||
<body>{children}</body> | ||
<body className={pretendard.className}> | ||
{children} | ||
<Sonner /> | ||
</body> | ||
</html> | ||
); | ||
} |
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,17 @@ | ||
import Script from "next/script"; | ||
|
||
export default function UTPageLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<> | ||
<Script | ||
type="text/javascript" | ||
src="https://developers.kakao.com/sdk/js/kakao.js" | ||
/> | ||
{children} | ||
</> | ||
); | ||
} |
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,315 @@ | ||
"use client"; | ||
|
||
import Image from "next/image"; | ||
import { toast } from "sonner"; | ||
import { env } from "~/lib/env"; | ||
|
||
type MapType = "naver" | "kakao"; | ||
type MapUrls = Record<MapType, string>; | ||
|
||
const address = "서울시 공익활동지원센터"; | ||
|
||
const Invi = () => { | ||
async function copyTextAsync(text: string) { | ||
try { | ||
await navigator.clipboard.writeText(text); | ||
} catch (err) { | ||
console.error("Failed to copy text: ", err); | ||
} | ||
} | ||
|
||
async function handleCopy(text: string) { | ||
await copyTextAsync(text); | ||
toast("복사되었습니다.", { | ||
duration: 2000, | ||
style: { | ||
backgroundColor: "black", | ||
opacity: 0.9, | ||
height: "56px", | ||
color: "white", | ||
border: 0, | ||
}, | ||
}); | ||
} | ||
|
||
async function shareLocationKakao() { | ||
if (window.Kakao) { | ||
const kakao = window.Kakao; | ||
if (!kakao.isInitialized()) { | ||
kakao.init(env.KAKAO_SHARE_API_KEY); | ||
} | ||
|
||
kakao.Share.sendDefault({ | ||
objectType: "location", | ||
address, | ||
addressTitle: address, | ||
content: { | ||
title: "NEXTERS 세션 안내", | ||
description: `4주차 UT 세션에 초대합니다\n세션 정보를 확인하고 참석여부를 응답해주세요.`, | ||
imageUrl: | ||
"https://github.com/user-attachments/assets/aea7c5d9-bb8b-4895-9aa8-2552154ba8d4", | ||
link: { | ||
mobileWebUrl: `https://invi.my/ut`, | ||
webUrl: "https://invi.my/ut", | ||
}, | ||
}, | ||
buttons: [ | ||
{ | ||
title: "초대장 열기", | ||
link: { | ||
mobileWebUrl: "https://invi.my/ut", | ||
webUrl: "https://invi.my/ut", | ||
}, | ||
}, | ||
], | ||
}); | ||
} | ||
} | ||
|
||
const openMap = (mapType: MapType, address: string) => { | ||
const mapUrls: MapUrls = { | ||
naver: `nmap://search?query=${address}`, | ||
kakao: `kakaomap://search?q=${address}`, | ||
}; | ||
window.open(mapUrls[mapType]); | ||
}; | ||
|
||
return ( | ||
<div className="bg-[#1A1A1A] text-[#FBFBFB]"> | ||
<header className="flex h-[69px] items-center justify-center bg-gradient-to-b from-black to-transparent"> | ||
<Image src="/logo.png" alt="logo" width={52} height={25} /> | ||
</header> | ||
<main className="flex flex-col items-center gap-y-[120px] bg-[#1A1A1A] -tracking-[0.2px] text-[#FBFBFB]"> | ||
<section className="flex w-[320px] flex-col items-center text-xl font-semibold"> | ||
<div className="mb-11 mt-10"> | ||
<Image src="/image.png" alt="logo" width={120} height={120} /> | ||
</div> | ||
<h2 className="text-xl font-semibold text-[#C28BFF]">NEXTERS</h2> | ||
<h1 className="text-3xl font-bold">4주차 세션 안내</h1> | ||
<article className="mt-8 flex w-full flex-col items-center rounded-[20px] bg-[#222222] pb-6 pt-5"> | ||
<p className="mb-4">기획 발표</p> | ||
<ul className="flex flex-col gap-y-2"> | ||
<li className="flex gap-x-4"> | ||
<p className="text-[16px] font-semibold leading-6 text-blue-400"> | ||
일정 | ||
</p> | ||
<p className="text-[16px] leading-6 text-[#D3D3D3]"> | ||
2024년 7월 27일 토요일 | ||
</p> | ||
</li> | ||
<li className="flex gap-4"> | ||
<p className="text-[16px] font-semibold leading-6 text-blue-400"> | ||
시간 | ||
</p> | ||
<p className="text-[16px] leading-6 text-[#D3D3D3]"> | ||
오후 12:30 - 16:30 | ||
</p> | ||
</li> | ||
<li className="flex gap-4"> | ||
<p className="text-[16px] font-semibold leading-6 text-blue-400"> | ||
장소 | ||
</p> | ||
<div> | ||
<p className="whitespace-pre-wrap text-base font-medium leading-[26px] text-[#D3D3D3]"> | ||
{`용산구 백범로 99길 40\n용산베르디움프렌즈\n101동 지하1층`} | ||
</p> | ||
<p className="mt-1.5 text-sm text-gray-500"> | ||
서울공익활동지원센터 | ||
</p> | ||
</div> | ||
</li> | ||
</ul> | ||
</article> | ||
</section> | ||
<section className="flex flex-col items-center"> | ||
<h3 className="text-2xl font-bold">장소 안내</h3> | ||
<Image | ||
src="/place.png" | ||
alt="place" | ||
width={300} | ||
height={218} | ||
className="my-8" | ||
/> | ||
<div className="flex flex-col items-center"> | ||
<p className="mb-3 text-lg font-semibold"> | ||
서울공익활동센터 지하 1층 | ||
</p> | ||
<p className="whitespace-pre-wrap text-center text-sm text-gray-300"> | ||
{`삼각지역 도보 4분 거리입니다\n도착하시면 `} | ||
<span className="text-[#6E96FF]">모이다(다목적홀)</span>로 | ||
모여주세요 | ||
</p> | ||
<article className="mt-4 flex gap-x-3"> | ||
<button onClick={() => openMap("naver", address)}> | ||
<Image | ||
src="/naver-map.png" | ||
alt="naver-map" | ||
width={42} | ||
height={42} | ||
/> | ||
</button> | ||
<button onClick={() => openMap("kakao", address)}> | ||
<Image | ||
src="/kakao-map.png" | ||
alt="kakao-map" | ||
width={42} | ||
height={42} | ||
/> | ||
</button> | ||
<button onClick={() => handleCopy(address)}> | ||
<Image src="/copy.png" width={42} height={42} alt="copy" /> | ||
</button> | ||
</article> | ||
</div> | ||
</section> | ||
<section className="flex flex-col items-center"> | ||
<h3 className="mb-8 text-2xl font-bold">세션 일정</h3> | ||
<ul className="w-full"> | ||
<li className="flex max-h-[80px] min-w-[320px] flex-col justify-center gap-y-3 rounded-t-[20px] py-12 pl-6 text-sm odd:bg-[#222222] even:bg-[#282828]"> | ||
<p className="font-semibold">12:30 - 12:40</p> | ||
<p className="font-medium text-[#D3D3D3]">세션 안내</p> | ||
</li> | ||
<li className="flex max-h-[80px] min-w-[320px] flex-col justify-center gap-y-3 py-12 pl-6 text-sm odd:bg-[#222222] even:bg-[#282828]"> | ||
<p className="font-semibold">12:40 - 13:00</p> | ||
<p className="font-medium text-[#D3D3D3]">UT 준비</p> | ||
</li> | ||
<li className="flex max-h-[80px] min-w-[320px] flex-col justify-center gap-y-3 py-12 pl-6 text-sm odd:bg-[#222222] even:bg-[#282828]"> | ||
<p className="font-semibold">13:00 - 14:20</p> | ||
<p className="font-medium text-[#D3D3D3]"> | ||
UT 1부 진행 및 팀 작업 | ||
</p> | ||
</li> | ||
<li className="flex max-h-[80px] min-w-[320px] flex-col justify-center gap-y-3 py-12 pl-6 text-sm odd:bg-[#222222] even:bg-[#282828]"> | ||
<p className="font-semibold">14:20 - 14:40</p> | ||
<p className="font-medium text-[#D3D3D3]">쉬는 시간</p> | ||
</li> | ||
<li className="flex max-h-[80px] min-w-[320px] flex-col justify-center gap-y-3 py-12 pl-6 text-sm odd:bg-[#222222] even:bg-[#282828]"> | ||
<p className="font-semibold">14:40 - 16:00</p> | ||
<p className="font-medium text-[#D3D3D3]"> | ||
UT 2부 진행 및 팀 작업 | ||
</p> | ||
</li> | ||
<li className="flex max-h-[80px] min-w-[320px] flex-col justify-center gap-y-3 rounded-b-[20px] py-12 pl-6 text-sm odd:bg-[#222222] even:bg-[#282828]"> | ||
<p className="font-semibold">16:00 - 16:30</p> | ||
<p className="font-medium text-[#D3D3D3]"> | ||
추가 작업 및 다음 세션 안내 | ||
</p> | ||
</li> | ||
</ul> | ||
</section> | ||
<section className="flex flex-col items-center"> | ||
<h2 className="text-2xl font-bold">UT 안내</h2> | ||
<div className="flex flex-col items-center gap-y-20"> | ||
<section className="pt-8"> | ||
<div className="text-center"> | ||
<h3 className="mb-5 text-lg font-semibold text-i-secondary"> | ||
UT 순서 안내 | ||
</h3> | ||
<p className="whitespace-pre-wrap text-center text-sm leading-[22px] text-[#D3D3D3]"> | ||
{`1부와 2부로 팀을 나누어서 UT 세션이 진행됩니다.\n해당 안내는 당일 한번 더 공지 예정입니다.`} | ||
</p> | ||
</div> | ||
<Image | ||
src="/ut-timeline.png" | ||
alt="ut-timeline" | ||
width={295} | ||
height={208} | ||
className="mt-5" | ||
/> | ||
</section> | ||
<section className="flex flex-col items-center"> | ||
<h3 className="text-xl font-semibold text-[#6E96FF]"> | ||
UT 공간 안내 | ||
</h3> | ||
<p className="my-5 whitespace-pre-wrap text-center text-sm leading-[22px] text-[#D3D3D3]"> | ||
{`UT를 위한 공간과 팀 작업을 위한\n공간을 제공할 예정입니다.`} | ||
</p> | ||
<Image | ||
src="/ut-place.png" | ||
alt="ut-place" | ||
width={295} | ||
height={208} | ||
/> | ||
</section> | ||
<section className="flex flex-col items-center"> | ||
<h3 className="text-lg font-semibold text-i-secondary"> | ||
UT 진행 방법 | ||
</h3> | ||
<article className="mt-5 flex max-w-[295px] flex-col rounded-[20px] bg-[#222222] px-6 py-8"> | ||
<ul className="flex flex-col gap-y-5 break-keep text-[#D3D3D3]"> | ||
<li className="flex gap-x-2 text-sm leading-[22px]"> | ||
<span>1.</span> | ||
<p>UT는 1부, 2부로 팀을 나누어 진행됩니다.</p> | ||
</li> | ||
<li className="flex gap-x-2 text-sm leading-[22px]"> | ||
<span>2.</span> | ||
<p> | ||
{`1부 팀이 UT 부수를 운영하면,\n2부 팀은 모이다 홀에서 팀 작업을 진행합니다.`} | ||
</p> | ||
</li> | ||
<li className="flex gap-x-2 text-sm leading-[22px]"> | ||
<span>3.</span> | ||
<p>2부팀에서 각 팀당 2명의 테스터를 선출합니다.</p> | ||
</li> | ||
<li className="flex gap-x-2 text-sm leading-[22px]"> | ||
<span>4.</span> | ||
<p className="whitespace-pre-wrap"> | ||
{`선출된 테스터들은 1부 팀들의 부스를 순서대로 방문하여 UT를 수행합니다.\n(각 부스 당 20분)`} | ||
</p> | ||
</li> | ||
<li className="flex gap-x-2 text-sm leading-[22px]"> | ||
<span>5.</span> | ||
<p> | ||
{`2부에서 서로 교대하여 2부팀이 UT 부스를 운영하고,\n1부팀이 테스터가 되어 부스를 돌며 UT를 수행합니다.`} | ||
</p> | ||
</li> | ||
</ul> | ||
</article> | ||
</section> | ||
<section className="text-center"> | ||
<h3 className="text-lg font-semibold text-i-secondary"> | ||
UT 진행 방법 참고 이미지 | ||
</h3> | ||
<p className="my-5 whitespace-pre-wrap text-sm text-[#D3D3D3]"> | ||
{`테스터는 각 부스를 순차적으로 돌며\nUT를 수행합니다.`} | ||
</p> | ||
<Image | ||
src="/ut-procedure.png" | ||
alt="ut-procedure" | ||
width={295} | ||
height={208} | ||
/> | ||
</section> | ||
</div> | ||
</section> | ||
<section className="pb-36 text-center"> | ||
<h3 className="mb-8 text-2xl font-semibold">기타 안내</h3> | ||
<div className="text-sm text-[#D3D3D3]"> | ||
<p className="mb-5 whitespace-pre-wrap text-sm leading-[22px]"> | ||
{`출석 체크를 위해 ID카드는\n`} | ||
<span className="text-[#6E96FF]"> | ||
세션이 끝난 후 꼭 반납해주세요. | ||
</span> | ||
</p> | ||
<p className="mb-5 whitespace-pre-wrap text-sm font-medium leading-[22px]"> | ||
{`음식물 쓰레기통이 없는 관계로\n음식물은 최대한 반입을 지양해주세요.`} | ||
</p> | ||
<p className="whitespace-pre-wrap text-sm leading-[22px]"> | ||
{`당일 비가 많이 오는 경우\n정문이 폐쇄되어 후문으로 입장해야 할 수 있습니다.`} | ||
</p> | ||
</div> | ||
<button className="mx-auto mt-[60px]" onClick={shareLocationKakao}> | ||
<Image | ||
src="/kakao-share.png" | ||
alt="kakao-share" | ||
width={42} | ||
height={42} | ||
/> | ||
</button> | ||
</section> | ||
</main> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Invi; |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저희 카카오계정으로는 카카오톡 접근이 안되서 제 개인계정에 등록해둔 키를 사용합니다