Skip to content

Commit

Permalink
feat: 푸터 기본 형태 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
junseokku committed Jun 8, 2024
1 parent e868fe2 commit 09aee2a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { myInfo } from 'app/constants/myInfo';

export const Footer = () => {
return (
<footer className="flex flex-col gap-4">
<hr className="border-1 border-gray-200 dark:border-gray-800" />
<p className="text-center text-xs text-gray-400">
<span>© 2024</span>
<a
href={myInfo.repoUrl}
target="_black"
rel="noopener noreferrer"
className="text-textColor"
>{` Junseokku Blog `}</a>
<span>Powered by Next.js</span>
</p>
</footer>
);
};
1 change: 1 addition & 0 deletions app/constants/myInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const myInfo = {
github: 'https://github.com/junseokku',
linkedin: 'https://linkedin.com/in/junseokku',
},
repoUrl: 'https://github.com/junseokku/contentlayer-blog',
comment: {
repo: 'junseokku/contentlayer-blog',
repoId: 'R_kgDOKedY1A',
Expand Down
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { pretendard } from './libs/font';
import { Providers } from './components/Providers';
import { SEOConfig } from './constants/SEOConfig';
import { GoogleAnlytics } from './libs/GoogleAnalytics';
import { Footer } from './components/Footer';

export default function RootLayout({
children,
Expand All @@ -19,6 +20,7 @@ export default function RootLayout({
<div className="max-md:px-6 max-w-3xl w-full py-8 flex flex-col gap-8">
<Header />
{children}
<Footer />
</div>
</div>
</Providers>
Expand Down
1 change: 1 addition & 0 deletions app/posts/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const PostLayout = ({ params }: Params) => {
<article className="prose prose-stone dark:prose-invert max-w-3xl">
<MDXContent />
</article>
{/* TODO - post footer */}
{/* post comment */}
<Giscus />
</section>
Expand Down

0 comments on commit 09aee2a

Please sign in to comment.