Add frontend boilerplate

This commit is contained in:
2022-09-04 13:07:07 +02:00
parent 77549bffc1
commit c7a07d5b83
17 changed files with 2612 additions and 0 deletions

8
frontend/src/App.svelte Normal file
View File

@@ -0,0 +1,8 @@
<script lang="ts">
import Navbar from "./Navbar.svelte";
</script>
<Navbar />
<section class="section">
Hallo i bims 1 frontend
</section>

View File

@@ -0,0 +1,13 @@
<script lang="ts">
import logo from "./assets/turtle.png";
</script>
<nav class="navbar">
<div class="navbar-brand">
<div class="navbar-item">
<a href="/">
<img src={logo} alt="logo"/>
</a>
</div>
</div>
</nav>

11
frontend/src/app.scss Normal file
View File

@@ -0,0 +1,11 @@
/* Write your global styles here, in SCSS syntax. Variables and mixins from the src/variables.scss file are available here without importing */
/* Import only what you need from Bulma */
@import "bulma/sass/utilities/_all";
@import "bulma/sass/base/_all";
@import "bulma/sass/elements/_all";
@import "bulma/sass/form/_all";
@import "bulma/sass/components/_all";
@import "bulma/sass/grid/_all";
@import "bulma/sass/helpers/_all";
@import "bulma/sass/layout/_all";

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

8
frontend/src/main.ts Normal file
View File

@@ -0,0 +1,8 @@
import "./app.scss";
import App from "./App.svelte";
const app = new App({
target: document.getElementById("app"),
});
export default app;

View File

@@ -0,0 +1,4 @@
/* Variables and mixins declared here will be available in all other SCSS files */
/* https://github.com/jgthms/bulma/issues/1293 */
$body-overflow-y: auto;

2
frontend/src/vite-env.d.ts vendored Normal file
View File

@@ -0,0 +1,2 @@
/// <reference types="svelte" />
/// <reference types="vite/client" />