Skip to content

Commit 0692f9d

Browse files
committed
Merge branch 'dev' into feat/write#19
2 parents 64d9a8e + fe809c9 commit 0692f9d

File tree

82 files changed

+1780
-512
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1780
-512
lines changed

next.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import type { NextConfig } from 'next';
22

33
const nextConfig: NextConfig = {
44
images: {
5-
domains: ['www.thecocktaildb.com'],
5+
remotePatterns: [
6+
{
7+
protocol: 'https',
8+
hostname:'www.thecocktaildb.com'
9+
}
10+
]
611
},
712
env: {
813
NPUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL,

src/app/api/kakao/KaKaoScript.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
'use client';
2+
3+
import Script from 'next/script';
4+
5+
declare global {
6+
interface Window {
7+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
8+
Kakao: any;
9+
}
10+
}
11+
function KaKaoScript() {
12+
const onLoad = () => {
13+
window.Kakao.init(process.env.NEXT_PUBLIC_KAKAO_JAVASCRIPT_KEY);
14+
};
15+
return <Script src="https://developers.kakao.com/sdk/js/kakao.js" async onLoad={onLoad} />;
16+
}
17+
export default KaKaoScript;

src/app/community/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PageHeader from '@/domains/shared/components/page-header/PageHeader';
33
import { Metadata } from 'next';
44

55
export const metadata: Metadata = {
6-
title: 'SSOUL | 커뮤니티',
6+
title: '커뮤니티',
77
description: '칵테일에 관한 모든 이야기',
88
};
99

src/app/layout.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ import { Toaster } from 'react-hot-toast';
44
import Header from '@/shared/components/header/Header';
55
import FooterWrapper from '@/shared/components/footer/FooterWrapper';
66
import ScrollTopBtnWrapper from '@/shared/components/scroll-top/ScrollTopBtnWrapper';
7+
import KaKaoScript from './api/kakao/KaKaoScript';
8+
79
export const metadata: Metadata = {
8-
title: 'SSOUL',
10+
title: { default: 'SSOUL', template: 'SSOUL | %s' },
11+
metadataBase: new URL('http://www.ssoul.life'),
912
description: '칵테일을 좋아하는 사람들을 위한 서비스',
1013
};
1114

@@ -35,6 +38,7 @@ export default function RootLayout({
3538

3639
<ScrollTopBtnWrapper />
3740
</body>
41+
<KaKaoScript />
3842
</html>
3943
);
4044
}

src/app/login/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import loginBg from '@/shared/assets/images/login_bg.webp';
44
import SocialLogin from '@/domains/login/main/SocialLogin';
55

66
export const metadata: Metadata = {
7-
title: 'SSOUL | 로그인',
7+
title: '로그인',
88
description: '칵테일을 좋아하는 사람들을 위한 서비스 로그인 페이지',
99
};
1010

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// import CommentList from '@/domains/shared/components/comment/CommentList';
1+
import MyComment from '@/domains/mypage/components/pages/my-active/MyComment';
22
import { Metadata } from 'next';
33

44
export const metadata: Metadata = {
5-
title: 'SSOUL | 마이페이지',
5+
title: '마이페이지',
66
description: 'SSOUL 서비스에서 나의 활동을 관리할 수 있는 페이지입니다',
77
};
88

99
function Page() {
10-
return <>{/* <CommentList /> */}</>;
10+
return <MyComment />;
1111
}
1212
export default Page;
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// import PostCard from '@/domains/community/main/PostCard';
2+
import MyLike from '@/domains/mypage/components/pages/my-active/MyLike';
23
import { Metadata } from 'next';
34

45
export const metadata: Metadata = {
5-
title: 'SSOUL | 마이페이지',
6+
title: '마이페이지',
67
description: 'SSOUL 서비스에서 나의 활동을 관리할 수 있는 페이지입니다',
78
};
89

910
function Page() {
10-
return <section>{/* <PostCard posts={posts} isLoading={isLoading} /> */}</section>;
11+
// return <MyLike />;
1112
}
1213
export default Page;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// import PostCard from '@/domains/community/main/PostCard';
1+
import MyPost from '@/domains/mypage/components/pages/my-active/MyPost';
22
import { Metadata } from 'next';
33

44
export const metadata: Metadata = {
5-
title: 'SSOUL | 마이페이지',
5+
title: '마이페이지',
66
description: 'SSOUL 서비스에서 나의 활동을 관리할 수 있는 페이지입니다',
77
};
88

99
function Page() {
10-
return <div>{/* <PostCard posts={posts} isLoading={isLoading} /> */}</div>;
10+
return <MyPost />;
1111
}
1212
export default Page;

src/app/mypage/my-alarm/page.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
import Alarm from '@/domains/mypage/components/Alarm';
1+
import MyAlarm from '@/domains/mypage/components/pages/my-alarm/MyAlarm';
22

33
import { Metadata } from 'next';
44

55
export const metadata: Metadata = {
6-
title: 'SSOUL | 마이페이지',
6+
title: '마이페이지',
77
description: 'SSOUL 서비스에서 나의 활동을 관리할 수 있는 페이지입니다',
88
};
99

1010
function Page() {
1111
return (
1212
<div className="flex flex-col gap-3">
13-
<Alarm></Alarm>
14-
<Alarm></Alarm>
15-
<Alarm></Alarm>
16-
<Alarm></Alarm>
13+
<MyAlarm />
1714
</div>
1815
);
1916
}

src/app/mypage/my-bar/page.tsx

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
1-
import CocktailCard from '@/domains/shared/components/cocktail-card/CocktailCard';
1+
import MyBar from '@/domains/mypage/components/pages/my-bar/MyBar';
22
import { Metadata } from 'next';
33

44
export const metadata: Metadata = {
5-
title: 'SSOUL | 마이페이지',
5+
title: '마이페이지',
66
description: 'SSOUL 서비스에서 나의 활동을 관리할 수 있는 페이지입니다',
77
};
88

99
function Page() {
10-
return (
11-
<div
12-
className="grid grid-cols-1 justify-items-center mt-10 gap-8 sm:[grid-template-columns:repeat(2,minmax(0,320px))] sm:justify-evenly md:[grid-template-columns:repeat(3,minmax(0,250px))]
13-
"
14-
>
15-
<CocktailCard
16-
src=""
17-
textSize1="text-xl"
18-
name="Old Pashioned"
19-
nameKo="올드 패션드"
20-
keep={false}
21-
></CocktailCard>
22-
</div>
23-
);
10+
return <MyBar />;
2411
}
2512
export default Page;

0 commit comments

Comments
 (0)