Skip to content

Commit

Permalink
Merge pull request #5 from chedakr/feature/footer
Browse files Browse the repository at this point in the history
feat: 푸터 추가
  • Loading branch information
Xvezda authored May 13, 2024
2 parents 62dded0 + aaaeb61 commit 80b7479
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apps/web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { GoogleAnalytics } from '@next/third-parties/google';
import ReactQueryProvider from "@/components/react-query-provider";
import { ThemeProvider } from '@/components/theme-provider';
import Header from '@/components/header';
import Footer from '@/components/footer';
import { cn } from '@/lib/utils';
import { notoSans } from './fonts';

Expand Down Expand Up @@ -37,6 +38,7 @@ export default function RootLayout({
<main className="flex flex-col items-center justify-center">
{children}
</main>
<Footer />
</div>
</ReactQueryProvider>
</ThemeProvider>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import useAuth from '@/hooks/useAuth';

export default function LoginPage() {
return (
<div className="flex flex-col space-y-5 justify-center items-center min-h-[calc(100vh-100px)]">
<div className="flex flex-col space-y-5 justify-center items-center min-h-[calc(100vh-200px)]">
<h2 className="text-3xl font-bold">
체다 서비스에 로그인
</h2>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import bufferLogoImage from './icon-resized.png';

export default function Home() {
return (
<div className="flex flex-col min-h-[100dvh] break-keep">
<div className="flex flex-col min-h-[calc(100vh-200px)] break-keep">
<main className="flex-1">
<section className="w-full py-6 md:py-12 lg:py-16 xl:py-24">
<div className="container grid gap-4 px-4 text-center md:px-6 xl:gap-10">
Expand Down
13 changes: 13 additions & 0 deletions apps/web/components/footer/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default function Footer() {
return (
<footer className="px-4 lg:px-6 py-7 break-keep flex flex-col max-sm:space-y-3 sm:flex-row justify-between">
<div className="text-sm text-gray-400 dark:text-gray-500">
&copy; 2024 체다 All rights reserved.
</div>
<div className="text-sm text-gray-400 dark:text-gray-500">
<p>본 사이트는 NAVER Corp.에서 운영하는 사이트가 아닙니다.</p>
<p>&quot;치지직&quot; 혹은 &quot;chzzk&quot;은 NAVER Corp.의 등록 상표입니다.</p>
</div>
</footer>
);
}

0 comments on commit 80b7479

Please sign in to comment.