Begin implementation of the site with Svelte
This commit is contained in:
parent
03f37ae403
commit
90819f50e4
14 changed files with 1294 additions and 0 deletions
28
web-svelte/src/App.svelte
Normal file
28
web-svelte/src/App.svelte
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<script lang="ts">
|
||||
|
||||
// Library imports
|
||||
import Particles from "svelte-particles";
|
||||
|
||||
// View imports
|
||||
import Home from "./views/home.svelte";
|
||||
|
||||
// Store imports
|
||||
import { state } from "./stores";
|
||||
</script>
|
||||
|
||||
<!-- Static particles across all of our pages -->
|
||||
<div id="particles">
|
||||
<Particles url="/particlesConfig.json" />
|
||||
</div>
|
||||
|
||||
<!-- The state the game is in -->
|
||||
{#if $state == "main-menu"}
|
||||
<Home />
|
||||
{/if}
|
||||
|
||||
<style lang="scss">
|
||||
#particles {
|
||||
position: fixed;
|
||||
z-index: -100000;
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue