Handling images and css via lib folder and +layout.svelte, getting rid of links in app.html; announcement component featuring a message at the top of the site that can be closed by clicking the cross; added Montserrat fonts directly, omitting google api

This commit is contained in:
2024-08-03 21:12:39 +03:00
parent 50f6878502
commit ff71ca8b5b
64 changed files with 96 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
<script>
/** @type {import('./$types').LayoutData} */
import '$lib/css/normalize.css';
import '$lib/css/font_imports.css';
import '$lib/css/fonts.css';
</script>
<slot></slot>

View File

@@ -1,8 +1,9 @@
<script>
import { PUBLIC_TEST } from '$env/static/public'
import Announcement from "../components/announcement.svelte";
</script>
<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
<Announcement message="This is an announcement" color="blue"/>
<p>{PUBLIC_TEST}</p>
<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> <i>(SvelteKit)</i> to read the <b>SvelteKit</b> documentation</p>