🎨 Formatted files and fixed warnings

This commit is contained in:
Mawoka
2022-04-15 10:48:40 +02:00
parent 95ca55dcdd
commit bf27803e39
4 changed files with 183 additions and 183 deletions
+27 -28
View File
@@ -1,7 +1,7 @@
<script context='module' lang='ts'>
<script context="module" lang="ts">
import { signedIn } from '$lib/stores';
export async function load({ url, session }) {
export async function load({ session }) {
if (session.authenticated) {
signedIn.set(true);
}
@@ -9,7 +9,6 @@
}
</script>
<script>
import '../app.css';
import Navbar from '$lib/navbar.svelte';
@@ -20,7 +19,7 @@
import { browser } from '$app/env';
if (browser) {
pathname.set(window.location.pathname)
pathname.set(window.location.pathname);
}
initLocalizationContext();
@@ -41,37 +40,37 @@
{#if $navbarVisible}
<Navbar />
<div class='pt-16 h-screen'>
<div class="pt-16 h-screen">
<slot />
</div>
{:else}
<slot />
{/if}
<style lang='scss'>
:global(body) {
// height: 100%;
// width: 100%;
background: linear-gradient(to right, #009444, #39b54a, #8dc63f) repeat-y;
background-size: cover;
/*background: linear-gradient(-225deg, #231557 0%, #44107A 29%, #FF1361 67%, #FFF800 100%); */
/*background: linear-gradient(-225deg, #22E1FF 0%, #1D8FE1 48%, #625EB1 100%); */
color: black;
<style lang="scss">
:global(body) {
// height: 100%;
// width: 100%;
background: linear-gradient(to right, #009444, #39b54a, #8dc63f) repeat-y;
background-size: cover;
/*background: linear-gradient(-225deg, #231557 0%, #44107A 29%, #FF1361 67%, #FFF800 100%); */
/*background: linear-gradient(-225deg, #22E1FF 0%, #1D8FE1 48%, #625EB1 100%); */
color: black;
// background-size: 400% 400%;
// background-size: 400% 400%;
//animation: background_animation 5s ease infinite;
}
//animation: background_animation 5s ease infinite;
}
@keyframes background_animation {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
@keyframes background_animation {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
</style>