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