Skip to content

Commit

Permalink
Merge pull request #16 from youngminss/develop
Browse files Browse the repository at this point in the history
포스팅 키워드 뱃지 & url 복사 기능 추가
  • Loading branch information
youngminss authored Sep 18, 2024
2 parents fd3c2b1 + b0bad58 commit ec3e1a4
Show file tree
Hide file tree
Showing 27 changed files with 253 additions and 84 deletions.
9 changes: 9 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
redirects: async () => {
return [
{
source: "/",
destination: "/blog",
permanent: true,
},
];
},
images: {
remotePatterns: [
{
Expand Down
106 changes: 58 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"glob": "^10.3.15",
"gray-matter": "^4.0.3",
"lucide-react": "^0.383.0",
"next": "14.2.3",
"next": "^14.2.12",
"next-mdx-remote": "^5.0.0",
"next-themes": "^0.3.0",
"plaiceholder": "^3.0.0",
Expand All @@ -39,6 +39,7 @@
"remark-unwrap-images": "^4.0.0",
"sharp": "^0.33.4",
"shiki": "^1.12.0",
"sonner": "^1.5.0",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7"
},
Expand Down
1 change: 0 additions & 1 deletion public/next.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/vercel.svg

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Giscus from "@/components/Comments/Giscus";
import PostBody from "@/components/post/PostBody";
import PostFooter from "@/components/post/PostFooter";
import PostHeader from "@/components/post/PostHeader";
Expand All @@ -17,11 +16,10 @@ const PostDetail = async ({

return (
<main>
<div className="mx-auto flex max-w-[64rem] flex-col px-[2rem]">
<div className="mx-auto flex max-w-[64rem] flex-col px-[1.6rem]">
<PostHeader post={post} />
<PostBody post={post} />
<PostFooter />
<Giscus />
</div>

<PostToC />
Expand Down
File renamed without changes.
File renamed without changes.
Binary file modified src/app/favicon.ico
Binary file not shown.
9 changes: 9 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@
}
}

.scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
display: none;
}

html {
font-size: 10px;
}
Expand Down
9 changes: 9 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import FloatingActions from "@/components/layout/FloatingActions";
import Footer from "@/components/layout/Footer";
import Header from "@/components/layout/Header";
import ThemeProvider from "@/components/providers/ThemeProvider";
import Sonnar from "@/components/ui/Sonnar";
import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";
Expand Down Expand Up @@ -31,7 +32,15 @@ export default function RootLayout({
<Header />
{children}
<Footer />

<FloatingActions />
<Sonnar
position="top-center"
duration={1000}
toastOptions={{
className: "bg-[var(--background)] text-[var(--foreground)]",
}}
/>
</ThemeProvider>
</body>
</html>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: "MDX 컴포넌트 스타일링 및 레이아웃"
thumbnail: "/thumbnails/category-1/slug-1/category-1-slug-1-thumbnail.webp"
thumbnail: "/images/blog/category-1/slug-1/category-1-slug-1-thumbnail.webp"
introduction: "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like)."
keywords: "Next.js, MDX, Blog"
createdAt: "2024-06-24 오전 00:00:00"
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "category 1 - slug 2 제목"
introduction: "category 1 - slug 2 부제목"
thumbnail: "/thumbnails/category-1/slug-2/category-1-slug-2-thumbnail.webp"
thumbnail: "/images/blog/category-1/slug-2/category-1-slug-2-thumbnail.webp"
createdAt: "2024-06-23 오후 11:30:00"
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "category 2 - slug 1 제목"
introduction: ""
thumbnail: "/thumbnails/category-2/slug-1/category-2-slug-1-thumbnail.webp"
thumbnail: "/images/blog/category-2/slug-1/category-2-slug-1-thumbnail.webp"
createdAt: "2024-06-23 오후 11:59:00"
---

Expand Down
Loading

0 comments on commit ec3e1a4

Please sign in to comment.