This is the code that runs https://bandolier.learnjsthehardway.com/ for you to review. It uses the https://git.learnjsthehardway.com/learn-javascript-the-hard-way/bandolier-template to create the documentation for the project.
https://bandolier.learnjsthehardway.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
397 B
17 lines
397 B
<script>
|
|
import { user } from "$/client/stores.js";
|
|
import LoggedIn from "$/client/components/LoggedIn.svelte";
|
|
</script>
|
|
|
|
<LoggedIn>
|
|
<callout slot="yes">
|
|
<h1>You are logged in.</h1>
|
|
</callout>
|
|
|
|
<callout class="error" slot="no">
|
|
<h1>You are NOT logged in</h1>
|
|
</callout>
|
|
</LoggedIn>
|
|
|
|
<button on:click={ () => $user.authenticated = !$user.authenticated }>Change Login</button>
|
|
|
|
|