Update colors to use scss, add Modal

This commit is contained in:
ZXY101
2023-08-04 16:03:03 +02:00
parent 1c3af6df13
commit d525dd1fc9
8 changed files with 118 additions and 99 deletions

View File

@@ -8,7 +8,6 @@
import { currentManga, currentVolume } from '$lib/catalog';
import { colors } from '$lib/theme';
import { writable } from 'svelte/store';
let title: string | undefined = 'Mokuro';
let back: string | undefined = undefined;
@@ -40,7 +39,7 @@
</script>
<nav>
<div style:background-color={colors.primaryColor}>
<div>
{#if back}
<a href={back}><h2>Back</h2></a>
<h2>{title}</h2>
@@ -50,13 +49,14 @@
</div>
</nav>
<style>
<style lang="scss">
nav {
position: relative;
width: 100%;
z-index: 1;
}
div {
background-color: $primary-color;
display: flex;
flex: 1;
justify-content: space-between;