-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fc7549
commit 0e9d73e
Showing
4 changed files
with
29 additions
and
29 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
<template> | ||
<h1>Home</h1> | ||
<div v-if="isLoggedIn"> | ||
<p>Logged in as {{ username }}</p> | ||
<button @click="logout">Logout</button> | ||
</div> | ||
<div v-else> | ||
<button @click="login">Login</button> | ||
</div> | ||
</template> | ||
<div class="mt-4 ml-4 mr-4"> | ||
|
||
<script setup> | ||
import { computed } from 'vue'; | ||
import { getUser, login, logout } from '../js/user'; | ||
<h1>Welcome to Reveal the World!</h1> | ||
|
||
// get userDetails from cookie with regex match | ||
<p>Reveal the World is a platform to visualize your travels. You can mark the places you have already visited on a world map and color in regions. Like with an analog scratch map -- just cooler!</p> | ||
<br> | ||
<p>You can also check the heatmap to see which regions of the world are particularly frequently visited.</p> | ||
<br> | ||
<br> | ||
<strong>Color your world!</strong> | ||
|
||
let isLoggedIn = computed(() => { | ||
return getUser() !== null; | ||
}); | ||
<div class="mt-4"> | ||
<v-img | ||
alt="demo" | ||
:src="`/demo.png`" | ||
width="100%" | ||
/> | ||
|
||
let username = computed(() => { | ||
return getUser().username; | ||
}); | ||
</div> | ||
|
||
console.log(getUser()); | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1.0.3 | ||
v2.0.3 |