Skip to content

Commit 8ba187a

Browse files
authored
[25.06.07 / TASK-205] Feature - 서비스 이용동의 및 개인정보처리방침 추가 (#42)
1 parent 540809c commit 8ba187a

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

src/app/TermsOfService.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const TERMS_OF_SERVICE_URL = 'https://nuung.notion.site/terms-of-service';
2+
const PRIVACY_POLICY_URL = 'https://nuung.notion.site/privacy-policy';
3+
4+
export const TermsOfService = () => {
5+
return (
6+
<div className="flex items-center justify-center px-2 py-1 absolute bottom-0 left-0 w-full gap-2">
7+
<a href={TERMS_OF_SERVICE_URL} className="text-TEXT-ALT text-[14px]">
8+
서비스 이용약관
9+
</a>
10+
<div className="w-[1px] h-[15px] bg-TEXT-ALT" />
11+
<a href={PRIVACY_POLICY_URL} className="text-TEXT-ALT text-[14px]">
12+
개인정보처리방침
13+
</a>
14+
</div>
15+
);
16+
};

src/app/layout.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import './globals.css';
99
import HolyLoader from 'holy-loader';
1010
import { ChannelTalkProvider, QueryProvider, ModalProvider } from '@/components';
1111
import { env } from '@/constants';
12+
import { TermsOfService } from './TermsOfService';
1213

1314
export const BASE = 'https://velog-dashboard.kro.kr/';
1415

@@ -39,8 +40,10 @@ export default function RootLayout({ children }: Readonly<{ children: ReactNode
3940
<ChannelTalkProvider>
4041
<ToastContainer autoClose={2000} />
4142
<ModalProvider />
42-
43-
<Suspense>{children}</Suspense>
43+
<Suspense>
44+
{children}
45+
<TermsOfService />
46+
</Suspense>
4447
</ChannelTalkProvider>
4548
</QueryProvider>
4649
</ErrorBoundary>

0 commit comments

Comments
 (0)