1
0

some styling + headline refactoring

This commit is contained in:
Nicola Clark 2024-10-10 21:46:58 -05:00
parent c0909c2cf3
commit 4086d24f28
Signed by: nicola
GPG Key ID: 3E1710E7FF08956C
3 changed files with 44 additions and 1 deletions

View File

@ -0,0 +1,15 @@
<header>
<h1><slot /></h1>
</header>
<style>
h1 {
text-align: center;
}
header {
background-color: var(--color-dark);
color: var(--color-light);
padding: 0.5em 1em;
}
</style>

24
src/routes/+layout.svelte Normal file
View File

@ -0,0 +1,24 @@
<slot />
<style>
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@600&display=swap');
:global(:root) {
--color-accent-dark: #a8c3b5;
--color-accent-light: #558b6e;
--color-danger: #d64933;
--color-dark: #2e282a;
--color-light: #fbfbfb;
--fonts-sans: Rubik, Arial, sans-serif;
}
:global(body) {
margin: 0;
}
:global(h1) {
font-family: var(--fonts-sans);
margin: 0;
padding: 0;
}
</style>

View File

@ -1,4 +1,8 @@
<script lang="ts">
import Headline from '$lib/components/headline.svelte';
</script>
<svelte:head>
<title>resumarkdown</title>
</svelte:head>
<h1>resumarkdown</h1>
<Headline>resumarkdown</Headline>