add page titles to static pages
This commit is contained in:
parent
1a21828815
commit
8541f54f90
8 changed files with 31 additions and 14 deletions
|
|
@ -1,2 +1,9 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import PageMeta from '$lib/components/PageMeta.svelte'
|
||||||
|
import * as m from '$lib/paraglide/messages'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<PageMeta title={m.page_title_home()} description={m.page_desc_home()} />
|
||||||
|
|
||||||
<h1>Welcome to SvelteKit</h1>
|
<h1>Welcome to SvelteKit</h1>
|
||||||
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
|
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { m } from '$lib/paraglide/messages'
|
import PageMeta from '$lib/components/PageMeta.svelte'
|
||||||
export let data: { status: unknown; seo: string }
|
import * as m from '$lib/paraglide/messages'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>{@html data.seo}</svelte:head>
|
<PageMeta title={m.page_title_about()} description={m.page_desc_about()} />
|
||||||
|
|
||||||
<h1>{m.hello_world({ name: 'World' })}</h1>
|
<h1>About</h1>
|
||||||
<pre>{JSON.stringify(data, null, 2)}</pre>
|
<p>About granblue.team</p>
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from '$app/stores'
|
import { page } from '$app/stores'
|
||||||
|
import PageMeta from '$lib/components/PageMeta.svelte'
|
||||||
|
import * as m from '$lib/paraglide/messages'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<PageMeta title={m.page_title_collection()} description={m.page_desc_collection()} />
|
||||||
<title>Collection</title>
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Collection</h1>
|
<h1>Collection</h1>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,14 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { AccountCookie } from '$lib/types/AccountCookie'
|
import type { AccountCookie } from '$lib/types/AccountCookie'
|
||||||
import type { UserCookie } from '$lib/types/UserCookie'
|
import type { UserCookie } from '$lib/types/UserCookie'
|
||||||
|
import PageMeta from '$lib/components/PageMeta.svelte'
|
||||||
|
import * as m from '$lib/paraglide/messages'
|
||||||
|
|
||||||
export let data: { account: AccountCookie; user: UserCookie }
|
export let data: { account: AccountCookie; user: UserCookie }
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<PageMeta title={m.page_title_settings()} description={m.page_desc_home()} />
|
||||||
|
|
||||||
<h1>Welcome, {data.account.username}!</h1>
|
<h1>Welcome, {data.account.username}!</h1>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@
|
||||||
import { IsInViewport } from 'runed'
|
import { IsInViewport } from 'runed'
|
||||||
import Icon from '$lib/components/Icon.svelte'
|
import Icon from '$lib/components/Icon.svelte'
|
||||||
import Button from '$lib/components/ui/Button.svelte'
|
import Button from '$lib/components/ui/Button.svelte'
|
||||||
|
import PageMeta from '$lib/components/PageMeta.svelte'
|
||||||
|
import * as m from '$lib/paraglide/messages'
|
||||||
|
|
||||||
const { data } = $props() as { data: PageData }
|
const { data } = $props() as { data: PageData }
|
||||||
|
|
||||||
|
|
@ -53,6 +55,8 @@
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<PageMeta title={m.page_title_teams()} description={m.page_desc_teams()} />
|
||||||
|
|
||||||
<section class="explore">
|
<section class="explore">
|
||||||
<header>
|
<header>
|
||||||
<h1>Explore Teams</h1>
|
<h1>Explore Teams</h1>
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { PageData } from './$types'
|
import type { PageData } from './$types'
|
||||||
|
import PageMeta from '$lib/components/PageMeta.svelte'
|
||||||
|
import * as m from '$lib/paraglide/messages'
|
||||||
import WeaponGrid from '$lib/components/grids/WeaponGrid.svelte'
|
import WeaponGrid from '$lib/components/grids/WeaponGrid.svelte'
|
||||||
import SummonGrid from '$lib/components/grids/SummonGrid.svelte'
|
import SummonGrid from '$lib/components/grids/SummonGrid.svelte'
|
||||||
import CharacterGrid from '$lib/components/grids/CharacterGrid.svelte'
|
import CharacterGrid from '$lib/components/grids/CharacterGrid.svelte'
|
||||||
|
|
@ -615,6 +617,8 @@
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<PageMeta title={m.page_title_new()} description={m.page_desc_home()} />
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<section class="party-content">
|
<section class="party-content">
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
import AuthCard from '$lib/components/auth/AuthCard.svelte'
|
import AuthCard from '$lib/components/auth/AuthCard.svelte'
|
||||||
import Input from '$lib/components/ui/Input.svelte'
|
import Input from '$lib/components/ui/Input.svelte'
|
||||||
import Button from '$lib/components/ui/Button.svelte'
|
import Button from '$lib/components/ui/Button.svelte'
|
||||||
|
import PageMeta from '$lib/components/PageMeta.svelte'
|
||||||
import * as m from '$lib/paraglide/messages'
|
import * as m from '$lib/paraglide/messages'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
@ -19,9 +20,7 @@
|
||||||
const randomPlaceholder = placeholders[Math.floor(Math.random() * placeholders.length)]
|
const randomPlaceholder = placeholders[Math.floor(Math.random() * placeholders.length)]
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<PageMeta title={m.page_title_login()} description={m.page_desc_home()} />
|
||||||
<title>{m.auth_login_title()}</title>
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
<AuthCard title={m.auth_login_title()}>
|
<AuthCard title={m.auth_login_title()}>
|
||||||
<form
|
<form
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
import AuthCard from '$lib/components/auth/AuthCard.svelte'
|
import AuthCard from '$lib/components/auth/AuthCard.svelte'
|
||||||
import Input from '$lib/components/ui/Input.svelte'
|
import Input from '$lib/components/ui/Input.svelte'
|
||||||
import Button from '$lib/components/ui/Button.svelte'
|
import Button from '$lib/components/ui/Button.svelte'
|
||||||
|
import PageMeta from '$lib/components/PageMeta.svelte'
|
||||||
import { userAdapter } from '$lib/api/adapters/user.adapter'
|
import { userAdapter } from '$lib/api/adapters/user.adapter'
|
||||||
import * as m from '$lib/paraglide/messages'
|
import * as m from '$lib/paraglide/messages'
|
||||||
|
|
||||||
|
|
@ -224,9 +225,7 @@
|
||||||
)
|
)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<PageMeta title={m.page_title_register()} description={m.page_desc_home()} />
|
||||||
<title>{m.auth_register_title()}</title>
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
<AuthCard title={m.auth_register_title()}>
|
<AuthCard title={m.auth_register_title()}>
|
||||||
<form
|
<form
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue