fix : social networks preview card

This commit is contained in:
GuillaumeSD
2025-05-17 16:51:41 +02:00
parent 96b07b97b0
commit 419f82e849
3 changed files with 20 additions and 7 deletions

View File

@@ -24,24 +24,36 @@ export default function Document() {
/>
<meta
name="description"
content="Analyze your chess games for free on any device with Stockfish !"
content="Analyze your chess games for free on any device with Stockfish!"
/>
{/* Balises OG (Facebook & Twitter) */}
{/* OG (Social networks) */}
<meta property="og:title" content="chesskit.org" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Chesskit.org" />
<meta property="og:site_name" content="chesskit.org" />
<meta property="og:url" content="https://chesskit.org/" />
<meta
property="og:image"
content="https://chesskit.org/android-chrome-512x512.png"
content="https://chesskit.org/social-networks-1200x630.png"
/>
<meta
property="og:description"
content="Analyze your chess games for free on any device with Stockfish !"
content="Analyze your chess games for free on any device with Stockfish!"
/>
{/* Balise Twitter */}
{/* Twitter */}
<meta name="twitter:title" content="chesskit.org" />
<meta name="twitter:domain" content="chesskit.org" />
<meta name="twitter:url" content="https://chesskit.org/" />
<meta
name="twitter:description"
content="Analyze your chess games for free on any device with Stockfish!"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta
name="twitter:image"
content="https://chesskit.org/social-networks-1200x630.png"
/>
</Head>
<body>
<Main />

View File

@@ -23,7 +23,6 @@ const StyledIconButtonLink = styled("a")({
alignItems: "center",
justifyContent: "center",
textDecoration: "none", // Remove underline from link
// Add any other styles to make it look like a button, e.g., padding, borderRadius
"&:hover": {
cursor: "pointer", // Change cursor on hover
},
@@ -59,12 +58,14 @@ export default function NavBar({ darkMode, switchDarkMode }: Props) {
>
<Icon icon="mdi:menu" />
</IconButton>
<Image
src="/favicon-32x32.png"
alt="Chesskit logo"
width={32}
height={32}
/>
<NavLink href="/">
<Typography
variant="h6"