feat(frontend): appease pagespeed insights

This commit is contained in:
Sam 2023-03-27 15:48:03 +02:00
parent 4a17611766
commit bcdcb1e0d5
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
5 changed files with 7 additions and 6 deletions

View File

@ -6,8 +6,9 @@
<svelte:head>
<title>pronouns.cc</title>
<meta property="description" content="Create and share your preferred names and pronouns!" />
<meta property="og:title" content="pronouns.cc" />
<meta property="og:description" content="Name and pronoun cards!" />
<meta property="og:description" content="Create and share your preferred names and pronouns!" />
<meta property="og:url" content={PUBLIC_BASE_URL} />
</svelte:head>

View File

@ -111,7 +111,7 @@
{#if data.display_name}
<div>
<h2>{data.display_name}</h2>
<h5 class="text-body-secondary">@{data.name}</h5>
<p class="fs-5 text-body-secondary">@{data.name}</p>
</div>
{:else}
<h2>@{data.name}</h2>

View File

@ -20,7 +20,7 @@
};
</script>
<Icon name="globe" aria-label="Link" />
<Icon name="globe" aria-hidden />
{#if isLink}
<a href={link} rel="me nofollow noreferrer" target="_blank">{displayLink}</a>
{:else}

View File

@ -49,7 +49,7 @@
</div>
<div class="col-md">
<h2>{data.display_name ?? data.name}</h2>
<h5 class="text-body-secondary">{data.name} (@{data.user.name})</h5>
<p class="fs-5 text-body-secondary">{data.name} (@{data.user.name})</p>
{#if profileEmpty && $userStore?.id === data.user.id}
<hr />
<p>

View File

@ -113,8 +113,8 @@
expand="lg"
class="mb-4"
>
<NavbarBrand href="/"><Logo /></NavbarBrand>
<NavbarToggler on:click={toggleMenu} />
<NavbarBrand href="/" aria-label="pronouns.cc landing page"><Logo /></NavbarBrand>
<NavbarToggler on:click={toggleMenu} aria-label="Toggle menu" />
<Collapse isOpen={showMenu} navbar expand="lg">
<Nav class="ms-auto" navbar>
{#if currentUser}