feat(website): add embed metadata

This commit is contained in:
daimond113 2024-03-16 18:34:56 +01:00
parent 9a35ea7f5e
commit 118174d4ba
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C
6 changed files with 20 additions and 4 deletions

View file

@ -11,6 +11,8 @@
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#ffa360"> <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#ffa360">
<meta name="msapplication-TileColor" content="#da532c"> <meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#f8e4d5"> <meta name="theme-color" content="#f8e4d5">
<meta content="https://pesde.daimond113.com" property="og:url" />
<meta content="https://pesde.daimond113.com/logo.png" property="og:image" />
%sveltekit.head% %sveltekit.head%
</head> </head>

View file

@ -50,7 +50,7 @@
<header <header
class="flex-0 flex flex-col lg:flex-row relative items-center gap-4 lg:gap-0 min-h-12 w-full" class="flex-0 flex flex-col lg:flex-row relative items-center gap-4 lg:gap-0 min-h-12 w-full"
> >
<div class="flex items-center gap-8"> <div class="flex items-center gap-8 z-10">
<a href="/" class="inline-block lg:absolute top-0 left-0"> <a href="/" class="inline-block lg:absolute top-0 left-0">
<img src="/logo.svg" alt="pesde" class="h-12" /> <img src="/logo.svg" alt="pesde" class="h-12" />
</a> </a>
@ -69,10 +69,10 @@
<Menu class="size-8" /> <Menu class="size-8" />
</button> </button>
<div <div
class="absolute top-8 right-0 bg-paper-1-alt z-10 flex flex-col gap-4 px-2 py-4 rounded-md *:no-underline *:text-standard-text hover:*:brightness-110 *:max-w-60 *:w-max" class="absolute top-8 right-0 bg-paper-1-alt z-10 flex flex-col gap-4 p-4 rounded-md *:no-underline *:text-standard-text hover:*:brightness-110 *:max-w-60"
class:hidden={!linksOpen} class:hidden={!linksOpen}
> >
<a href="https://github.com/daimond113/pesde">GitHub Repository</a> <a href="https://github.com/daimond113/pesde" class="w-max">GitHub Repository</a>
<a href="/policies">Policies</a> <a href="/policies">Policies</a>
</div> </div>
</div> </div>

View file

@ -2,10 +2,16 @@
import type { PageData } from './$types'; import type { PageData } from './$types';
export let data: PageData; export let data: PageData;
const tagline =
'pesde is a package manager for Roblox that is designed to be feature-rich and easy to use.';
</script> </script>
<svelte:head> <svelte:head>
<title>pesde</title> <title>pesde</title>
<meta content="pesde" property="og:title" />
<meta content={tagline} name="description" />
<meta content={tagline} property="og:description" />
</svelte:head> </svelte:head>
<section <section
@ -15,7 +21,7 @@
pesde - the feature-rich Roblox package manager pesde - the feature-rich Roblox package manager
</h1> </h1>
<div class="text-xl font-medium text-balance"> <div class="text-xl font-medium text-balance">
pesde is a package manager for Roblox that is designed to be feature-rich and easy to use. {tagline}
</div> </div>
<div> <div>
<a <a

View file

@ -60,6 +60,11 @@
<svelte:head> <svelte:head>
<title>{data.scope}/{data.name}@{data.version}</title> <title>{data.scope}/{data.name}@{data.version}</title>
<meta content="{data.scope}/{data.name}@{data.version} - pesde" property="og:title" />
{#if data.description}
<meta content={data.description} name="description" />
<meta content={data.description} property="og:description" />
{/if}
</svelte:head> </svelte:head>
<div class="flex flex-col lg:flex-row"> <div class="flex flex-col lg:flex-row">

View file

@ -1,5 +1,8 @@
<svelte:head> <svelte:head>
<title>Policies</title> <title>Policies</title>
<meta content="Policies for content on the public pesde registry" property="og:title" />
<meta content="Rules about content on the public pesde registry" name="description" />
<meta content="Rules about content on the public pesde registry" property="og:description" />
</svelte:head> </svelte:head>
<div class="max-w-prose"> <div class="max-w-prose">

BIN
website/static/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB