Skip to content

Commit

Permalink
chore: 🤖 openGraphの設定 画像の追加
Browse files Browse the repository at this point in the history
  • Loading branch information
sweshelo committed Feb 14, 2025
1 parent ead2433 commit 589bb5c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"lint": "next lint --fix",
"format": "prettier --write .",
"prepare": "husky",
"check:deps": "depcruise src"
"check:deps": "depcruise src",
"check:types": "tsx --noEmit"
},
"dependencies": {
"@date-fns/tz": "^1.2.0",
Expand Down
Binary file added public/image/banner.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 added public/image/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ export const metadata: Metadata = {
default: '閻魔帳',
},
description: 'チェイスチェイスジョーカーズのプレイ履歴を分析します。',
openGraph: {
title: '閻魔帳',
description: 'チェイスチェイスジョーカーズのプレイ履歴を分析します。',
url: 'https://放課後天地創造.club',
images: '/image/banner.png',
},
twitter: {
title: '閻魔帳',
description: 'チェイスチェイスジョーカーズのプレイ履歴を分析します。',
site: '@sweshelo',
images: '/image/banner.png',
},
icons: '/image/icon.png',
}

export default async function RootLayout({
Expand Down
6 changes: 2 additions & 4 deletions src/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import Link from 'next/link'
export const Header = () => {
return (
<Link href={'/'}>
<div className="w-full bg-blue-900">
<div className="w-full bg-red-900">
<div className="max-w-[800px] mx-auto p-4 flex items-center space-x-4">
<div className="w-12 h-12 bg-gray-800 rounded-lg flex items-center justify-center">
<div className="text-white"></div>
</div>
<div className="w-12 h-12 bg-gray-800 rounded-lg flex items-center justify-center bg-[url('/image/icon.png')] bg-contain" />
<div className="flex-grow">
<h1 className="text-white text-2xl font-bold">閻魔帳</h1>
<p className="text-gray-300 text-xs">v2 &quot;medusa&quot; - @sweshelo</p>
Expand Down

0 comments on commit 589bb5c

Please sign in to comment.