make use of vite's asset optimization
All checks were successful
Push to cloudflare pages / deploy (push) Successful in 41s
All checks were successful
Push to cloudflare pages / deploy (push) Successful in 41s
This commit is contained in:
parent
11cedc0abd
commit
865fc9bfd2
7 changed files with 26 additions and 5 deletions
|
@ -14,3 +14,7 @@ body {
|
||||||
.emoji {
|
.emoji {
|
||||||
@apply w-6 inline-block;
|
@apply w-6 inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
@apply hover:text-sky-500 hover:underline text-gray-400;
|
||||||
|
}
|
|
@ -2,8 +2,8 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<p>Logo art by <a class="hover:text-sky-500 hover:underline text-gray-400" href="https://bsky.app/profile/did:plc:sqwkomf6gkzbhnctiqexepzx">Aegiscarr</a></p>
|
<p>Logo art by <a href="https://bsky.app/profile/did:plc:sqwkomf6gkzbhnctiqexepzx">Aegiscarr</a></p>
|
||||||
<p>© {new Date().getFullYear()} Lara The Protogen. All rights reserved.</p>
|
<p>© {new Date().getFullYear()} <a href="https://laratheprotogen.dev">Lara The Protogen</a>. All rights reserved.</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
10
src/routes/+error.svelte
Normal file
10
src/routes/+error.svelte
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import { page } from '$app/state';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<h1 class="text-4xl font-bold">No secrets here</h1>
|
||||||
|
<p>{page.status} {page.error?.message}</p>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
|
||||||
|
</style>
|
|
@ -3,13 +3,22 @@
|
||||||
import { ParaglideJS } from '@inlang/paraglide-sveltekit';
|
import { ParaglideJS } from '@inlang/paraglide-sveltekit';
|
||||||
import '../app.scss';
|
import '../app.scss';
|
||||||
|
|
||||||
|
import logo from '$lib/images/logo.png'
|
||||||
|
|
||||||
import Footer from '$lib/components/Footer.svelte';
|
import Footer from '$lib/components/Footer.svelte';
|
||||||
|
import { onMount } from 'svelte';
|
||||||
|
|
||||||
let { children } = $props();
|
let { children } = $props();
|
||||||
|
|
||||||
|
let div: HTMLDivElement;
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
div.style.backgroundImage = `url(${logo})`;
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ParaglideJS {i18n}>
|
<ParaglideJS {i18n}>
|
||||||
<div class="background">
|
<div class="background" bind:this={div}>
|
||||||
<article class="content">
|
<article class="content">
|
||||||
{@render children()}
|
{@render children()}
|
||||||
</article>
|
</article>
|
||||||
|
@ -20,7 +29,6 @@
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.background {
|
.background {
|
||||||
@apply relative w-full h-screen bg-cover bg-center bg-no-repeat;
|
@apply relative w-full h-screen bg-cover bg-center bg-no-repeat;
|
||||||
background-image: url('/backdrop-logo.png');
|
|
||||||
background-size: 40%;
|
background-size: 40%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
<a href="/demo/paraglide">paraglide</a>
|
|
Binary file not shown.
Before Width: | Height: | Size: 938 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 938 KiB |
Loading…
Add table
Reference in a new issue