web: navigation & sidebar
This commit is contained in:
41
web/src/routes/+layout.svelte
Normal file
41
web/src/routes/+layout.svelte
Normal file
@@ -0,0 +1,41 @@
|
||||
<script>
|
||||
import "@fontsource/ibm-plex-mono/400.css";
|
||||
import "@fontsource/ibm-plex-mono/500.css";
|
||||
import Sidebar from "../components/sidebar/Sidebar.svelte";
|
||||
</script>
|
||||
|
||||
<div id="cobalt">
|
||||
<Sidebar />
|
||||
<div id="content">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
:global(:root) {
|
||||
--accent: #ffffff;
|
||||
--background: #000000;
|
||||
--sidebar-width: 80px;
|
||||
--sidebar-font-size: 11px;
|
||||
--sidebar-padding: 12px;
|
||||
}
|
||||
:global(html),
|
||||
:global(body) {
|
||||
font-family: "IBM Plex Mono", "Noto Sans Mono", monospace;
|
||||
margin: 0;
|
||||
}
|
||||
:global(a) {
|
||||
text-decoration: none;
|
||||
text-decoration-line: none;
|
||||
}
|
||||
#cobalt {
|
||||
height: 100vh;
|
||||
display: grid;
|
||||
grid-template-columns: var(--sidebar-width) 1fr;
|
||||
overflow: hidden;
|
||||
}
|
||||
#content {
|
||||
display: flex;
|
||||
overflow: scroll;
|
||||
}
|
||||
</style>
|
||||
@@ -1 +1,2 @@
|
||||
<h1>hello world</h1>
|
||||
<!-- home (save) page -->
|
||||
<div>home</div>
|
||||
|
||||
2
web/src/routes/about/+page.svelte
Normal file
2
web/src/routes/about/+page.svelte
Normal file
@@ -0,0 +1,2 @@
|
||||
<!-- about page -->
|
||||
<div>about</div>
|
||||
2
web/src/routes/convert/+page.svelte
Normal file
2
web/src/routes/convert/+page.svelte
Normal file
@@ -0,0 +1,2 @@
|
||||
<!-- convert page -->
|
||||
<div>convert</div>
|
||||
2
web/src/routes/crop/+page.svelte
Normal file
2
web/src/routes/crop/+page.svelte
Normal file
@@ -0,0 +1,2 @@
|
||||
<!-- crop page -->
|
||||
<div>crop</div>
|
||||
2
web/src/routes/donate/+page.svelte
Normal file
2
web/src/routes/donate/+page.svelte
Normal file
@@ -0,0 +1,2 @@
|
||||
<!-- donate page -->
|
||||
<div>donate</div>
|
||||
2
web/src/routes/settings/+page.svelte
Normal file
2
web/src/routes/settings/+page.svelte
Normal file
@@ -0,0 +1,2 @@
|
||||
<!-- settings page -->
|
||||
<div>settings</div>
|
||||
2
web/src/routes/trim/+page.svelte
Normal file
2
web/src/routes/trim/+page.svelte
Normal file
@@ -0,0 +1,2 @@
|
||||
<!-- trim page -->
|
||||
<div>trim</div>
|
||||
2
web/src/routes/updates/+page.svelte
Normal file
2
web/src/routes/updates/+page.svelte
Normal file
@@ -0,0 +1,2 @@
|
||||
<!-- updates (changelog) page -->
|
||||
<div>updates</div>
|
||||
Reference in New Issue
Block a user