Add Svelte app boilerplate (#27)

* Add Svelte app boilerplate

* Delete www folder

* Web app setup

* Fix vector images

* README
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2022-12-07 12:43:33 -05:00
1 parent f71c70d90b
commit 9031f51d5d
31 files changed
+3403 -68

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
<script lang="ts">
import playletLogo from "./assets/logo-dark.svg";
import Counter from "./lib/Counter.svelte";
import CurrentInstance from "./lib/CurrentInstance.svelte";
import { GetHost } from "./lib/Host";
</script>
<main>
<div>
<img src={playletLogo} class="logo" alt="Playlet Logo" />
</div>
<h1>Playlet</h1>
<div class="card">
<Counter />
</div>
<div class="card">
Host: {GetHost()}
</div>
<div class="card">
<CurrentInstance />
</div>
</main>
<style>
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
</style>