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:
10
frontend/src/routes/+layout.svelte
Normal file
10
frontend/src/routes/+layout.svelte
Normal 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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user