aboutsummaryrefslogtreecommitdiff
path: root/src/views/Home.vue
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-06 20:20:37 -0700
committerFuwn <[email protected]>2021-05-06 20:20:37 -0700
commitdf12123946bbfa0515cb3338f112b931a1bff3c1 (patch)
treea41f897af916417a9b040b599252d4e23a16d658 /src/views/Home.vue
parentInitial commit (diff)
downloadfrontend-df12123946bbfa0515cb3338f112b931a1bff3c1.tar.xz
frontend-df12123946bbfa0515cb3338f112b931a1bff3c1.zip
feat(global): :star:
Diffstat (limited to 'src/views/Home.vue')
-rw-r--r--src/views/Home.vue33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/views/Home.vue b/src/views/Home.vue
new file mode 100644
index 0000000..d70e565
--- /dev/null
+++ b/src/views/Home.vue
@@ -0,0 +1,33 @@
+<template>
+ <div class="home">
+ <h1>home</h1>
+
+ <div v-if="!isLoading" id="random-image">
+ <a :href="random.image">
+ <img :src="random.image">
+ </a>
+ </div>
+ <p v-else>
+ fetching image...
+ </p>
+
+ <p style="white-space: pre-wrap;">hi there, this site is still under construction. if you would
+ like to help with anything, feel
+ free to!
+ <ul>
+ <li><a href="https://github.com/senpy-club/api">api</a></li>
+ <li><a href="https://github.com/senpy-club/frontend">frontend</a></li>
+ </ul>
+ </p>
+ </div>
+</template>
+
+<script>
+import { mixins, Options } from 'vue-class-component';
+import APIExtendableLanguage from '../mixins';
+
+@Options({})
+export default class Language extends mixins(APIExtendableLanguage) {
+ async mounted() { await this.fetchRandom(); }
+}
+</script>