mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-07-04 09:33:43 -04:00
Add Initial WebApp
This commit is contained in:
32
Pulsar/WebApp/src/routes/+layout.svelte
Normal file
32
Pulsar/WebApp/src/routes/+layout.svelte
Normal 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>
|
13
Pulsar/WebApp/src/routes/+page.svelte
Normal file
13
Pulsar/WebApp/src/routes/+page.svelte
Normal 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>
|
Reference in New Issue
Block a user