add og meta tags

This commit is contained in:
bytedream 2024-11-02 19:09:50 +01:00
parent d1b7fa58b4
commit e41c65e1fc
7 changed files with 13 additions and 0 deletions

View File

@ -84,6 +84,14 @@
}} }}
/> />
<svelte:head>
{#if !onAdminPage}
<meta property="og:url" content={$page.url.toString()} />
<meta property="og:type" content="website" />
<meta property="og:image" content="{env.PUBLIC_BASE_PATH}/img/logo-512.png" />
{/if}
</svelte:head>
<main> <main>
<div class="min-h-[calc(100vh-3.5rem)] h-full w-full" class:min-h-screen={onAdminPage}> <div class="min-h-[calc(100vh-3.5rem)] h-full w-full" class:min-h-screen={onAdminPage}>
<slot /> <slot />

View File

@ -29,6 +29,7 @@
<svelte:head> <svelte:head>
<title>Craftattack</title> <title>Craftattack</title>
<meta property="og:title" content="Craftattack" />
</svelte:head> </svelte:head>
<div class="flex flex-col min-h-screen relative"> <div class="flex flex-col min-h-screen relative">

View File

@ -189,6 +189,7 @@ sind nicht gestattet.</p>`
<svelte:head> <svelte:head>
<title>Craftattack - FAQ</title> <title>Craftattack - FAQ</title>
<meta property="og:title" content="Craftattack - FAQ" />
</svelte:head> </svelte:head>
<h1 class="text-3xl lg:text-5xl mb-16 text-center">FAQ</h1> <h1 class="text-3xl lg:text-5xl mb-16 text-center">FAQ</h1>

View File

@ -17,6 +17,7 @@
<svelte:head> <svelte:head>
<title>Craftattack - Anmeldung</title> <title>Craftattack - Anmeldung</title>
<meta property="og:title" content="Craftattack - Anmeldung" />
</svelte:head> </svelte:head>
<!--the tooltip when not all fields are correctly filled won't completely show if the overflow is hidden--> <!--the tooltip when not all fields are correctly filled won't completely show if the overflow is hidden-->

View File

@ -4,6 +4,7 @@
<svelte:head> <svelte:head>
<title>Craftattack - Regeln</title> <title>Craftattack - Regeln</title>
<meta property="og:title" content="Craftattack - Regeln" />
</svelte:head> </svelte:head>
<h1 class="text-3xl lg:text-5xl mb-4">CraftAttack 7 Regelwerk</h1> <h1 class="text-3xl lg:text-5xl mb-4">CraftAttack 7 Regelwerk</h1>

View File

@ -39,6 +39,7 @@
<svelte:head> <svelte:head>
<title>Craftattack - Team</title> <title>Craftattack - Team</title>
<meta property="og:title" content="Craftattack - Team" />
</svelte:head> </svelte:head>
<h1 class="text-5xl mb-10">Das Team</h1> <h1 class="text-5xl mb-10">Das Team</h1>

BIN
static/img/logo-512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB