Add Initial WebApp

This commit is contained in:
Ben Parsons 2024-04-14 21:48:31 +10:00
commit c0c69dcdf7
16 changed files with 3880 additions and 1 deletions

View file

@ -0,0 +1,32 @@
<nav>
<ul>
<li><a href="/">Dashboard</a></li>
<li><a href="/ship">Ship</a></li>
<li><a href="/botany">Botanist</a></li>
<li><a href="/explorer">Explorer</a></li>
<li><a href="/options">Options</a></li>
</ul>
</nav>
<slot />
<style>
ul {
display: flex;
list-style-type: none;
}
li {
padding: 1%;
}
:global(body) {
background-color: black;
color: white;
[href] {
color: red;
&:visited {
color: aqua;
}
}
}
</style>

View file

@ -0,0 +1,13 @@
<script lang="ts">
let x = $state(1)
const increment = () => {
x = x + 1;
}
</script>
<h1>Welcome to Pulsar</h1>
<button on:click={increment} > Increment </button>
<span> {x} </span>