Migrating to Svelte User management not done. Footer not done Nav user management icon not positioned correctly

This commit is contained in:
Ben Parsons 2020-08-19 23:54:15 +10:00
commit a21186f362
55 changed files with 2126 additions and 387 deletions

74
src/routes/_layout.svelte Normal file
View file

@ -0,0 +1,74 @@
<script>
import Nav from '../components/Nav.svelte';
import userManager from '../components/userManager.svelte'
export let segment;
</script>
<style>
main {
position: relative;
max-width: 56em;
background-color: white;
padding: 2em;
margin: 0 auto;
box-sizing: border-box;
}
/* Default theme */
:global(:root) {
--background-color: #222222;
--headings-color: #ffffff;
--font-color: #ffffff;
--blue: #007bff;
--indigo: #6610f2;
--purple: #6f42c1;
--pink: #e83e8c;
--red: #dc3545;
--orange: #fd7e14;
--yellow: #ffc107;
--green: #28a745;
--teal: #20c997;
--cyan: #17a2b8;
--white: #fff;
--gray: #6c757d;
--gray-dark: #343a40;
--primary: #007bff;
--secondary: #6c757d;
--success: #28a745;
--info: #17a2b8;
--warning: #ffc107;
--danger: #dc3545;
--light: #f8f9fa;
--dark: #343a40;
--breakpoint-xs: 0;
--breakpoint-sm: 576px;
--breakpoint-md: 768px;
--breakpoint-lg: 992px;
--breakpoint-xl: 1200px;
--font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
/* Dark theme */
:global(html[data-theme='dark']) {
--background-color: #222222;
--headings-color: #ffffff;
--font-color: #ffffff;
}
:global(body) {
font-family: 'Open Sans', sans-serif;
font-size: 1rem;
line-height: 1.8;
background-color: var(--background-color);
color: var(--font-color);
box-sizing: border-box;
}
</style>
<Nav {segment} rightComponent={userManager}/>
<slot></slot>