Scale document.body to 100% height, Implement footer
This commit is contained in:
parent
3ac4d2ac82
commit
8651f60645
@ -15,34 +15,51 @@
|
||||
<Router>
|
||||
<Navbar />
|
||||
|
||||
<Route path="/">
|
||||
<section class="section">
|
||||
<p>Hallo i bims 1 frontend</p>
|
||||
</section>
|
||||
</Route>
|
||||
<div class="is-flex-grow-1">
|
||||
<Route path="/">
|
||||
<section class="section">
|
||||
<p>Hallo i bims 1 frontend</p>
|
||||
</section>
|
||||
</Route>
|
||||
|
||||
<Route path="/foo">foo</Route>
|
||||
<Route path="/foo">
|
||||
<section class="hero is-danger is-fullheight">
|
||||
<div class="hero-body">
|
||||
<div class="">
|
||||
<p class="title">Fullheight hero</p>
|
||||
<p class="subtitle">Fullheight subtitle</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</Route>
|
||||
|
||||
<Route path="/bar">bar</Route>
|
||||
<Route path="/bar">bar</Route>
|
||||
|
||||
<Route path="/monitoring">monitoring</Route>
|
||||
<Route path="/monitoring">monitoring</Route>
|
||||
|
||||
<Route path="/mining">mining</Route>
|
||||
<Route path="/mining">mining</Route>
|
||||
|
||||
<Route path="/stats">stats</Route>
|
||||
<Route path="/stats">stats</Route>
|
||||
|
||||
<Route>
|
||||
<section class="section">
|
||||
<div class="container has-text-centered">
|
||||
<h1 class="title is-1">404</h1>
|
||||
<h2 class="subtitle is-5">
|
||||
The page you are trying to reach either
|
||||
<strong>does not exist</strong>
|
||||
or
|
||||
<strong>you are not authorized</strong>
|
||||
to view it.
|
||||
</h2>
|
||||
</div>
|
||||
</section>
|
||||
</Route>
|
||||
<Route>
|
||||
<section class="section">
|
||||
<div class="container has-text-centered">
|
||||
<h1 class="title is-1">404</h1>
|
||||
<h2 class="subtitle is-5">
|
||||
The page you are trying to reach either
|
||||
<strong>does not exist</strong>
|
||||
or
|
||||
<strong>you are not authorized</strong>
|
||||
to view it.
|
||||
</h2>
|
||||
</div>
|
||||
</section>
|
||||
</Route>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="has-text-centered">
|
||||
Test footer please ignore
|
||||
</div>
|
||||
</footer>
|
||||
</Router>
|
||||
|
@ -17,6 +17,12 @@ $fa-font-path: "@fortawesome/fontawesome-free/webfonts";
|
||||
@import "@fortawesome/fontawesome-free/scss/brands.scss";
|
||||
@import "@fortawesome/fontawesome-free/scss/v4-shims.scss";
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
// https://github.com/mefechoel/svelte-navigator#what-are-the-weird-rectangles-around-the-headings-in-my-app
|
||||
h1:focus {
|
||||
outline: none;
|
||||
|
@ -4,7 +4,7 @@ import "./app.scss";
|
||||
import App from "./App.svelte";
|
||||
|
||||
const app = new App({
|
||||
target: document.getElementById("app"),
|
||||
target: document.body,
|
||||
});
|
||||
|
||||
export default app;
|
||||
|
@ -14,7 +14,6 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
{% if dev_mode %}
|
||||
<script type="module" src="http://localhost:5173/@vite/client"></script>
|
||||
<script type="module" src="http://localhost:5173/src/main.ts"></script>
|
||||
|
Loading…
Reference in New Issue
Block a user