Skip to content

Commit

Permalink
refactor: 파비콘 변경 및 정적 댓글 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
khj0426 committed Dec 6, 2024
1 parent 37a6e4e commit 74d62e6
Show file tree
Hide file tree
Showing 12 changed files with 7,231 additions and 10,164 deletions.
3 changes: 3 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ export const metadata: Metadata = {
card: 'summary_large_image',
images: [siteMetadata.socialBanner],
},
icons: {
icon: '/static/favicons/logo.png',
},
}

export default function RootLayout({ children }: { children: React.ReactNode }) {
Expand Down
2 changes: 1 addition & 1 deletion app/tag-data.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "all": 12, "frontend": 7, "backend": 20, "backend-frontend": 2 }
{ "all": 11, "frontend": 8, "backend": 20, "backend-frontend": 2 }
19 changes: 2 additions & 17 deletions components/Comments.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
'use client'

import { Comments as CommentsComponent } from 'pliny/comments'
import { useState } from 'react'
import siteMetadata from '@/data/siteMetadata'
import Giscus from './Gitcus'

export default function Comments({ slug }: { slug: string }) {
const [loadComments, setLoadComments] = useState(false)

if (!siteMetadata.comments?.provider) {
return null
}
return (
<>
{loadComments ? (
<CommentsComponent commentsConfig={siteMetadata.comments} slug={slug} />
) : (
<button onClick={() => setLoadComments(true)}>Load Comments</button>
)}
</>
)
return <Giscus />
}
16 changes: 16 additions & 0 deletions components/Gitcus.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use client'

import dynamic from 'next/dynamic'
const DynamicGiscus = dynamic(() => import('@giscus/react'))

export default function Comments() {
return (
<DynamicGiscus
repo="WE-ARE-RACCOONS/RACCOONS"
repoId="R_kgDONOeDQg"
mapping="pathname"
lang="ko"
category="General"
/>
)
}
2 changes: 1 addition & 1 deletion data/siteMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const siteMetadata = {
siteUrl: 'https://tailwind-nextjs-starter-blog.vercel.app',
siteRepo: 'https://github.com/WE-ARE-RACCOONS/RACCOONS',
siteLogo: `${process.env.BASE_PATH || ''}/static/images/logo.png`,
email: '706shin1728@naver.com',
email: 'grad.kimseonbae@gmail.com',
analytics: {
umamiAnalytics: {
umamiWebsiteId: process.env.NEXT_UMAMI_ID, // e.g. 123e4567-e89b-12d3-a456-426614174000
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"prepare": "husky"
},
"dependencies": {
"@giscus/react": "^3.0.0",
"@headlessui/react": "2.2.0",
"@next/bundle-analyzer": "15.0.2",
"@tailwindcss/forms": "^0.5.9",
Expand Down
Binary file modified public/static/favicons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/static/favicons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/static/favicons/favicon.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
sans: ['var(--font-space-grotesk)', ...fontFamily.sans],
},
colors: {
primary: colors.pink,
primary: colors.green,
gray: colors.gray,
},
zIndex: {
Expand Down Expand Up @@ -58,7 +58,7 @@ module.exports = {
invert: {
css: {
a: {
color: theme('colors.primary.500'),
color: theme('colors.gray.400'),
'&:hover': {
color: `${theme('colors.primary.400')}`,
},
Expand Down
Loading

0 comments on commit 74d62e6

Please sign in to comment.