From 0d6bd4aefc4e651be3f2fff15043d598e852df54 Mon Sep 17 00:00:00 2001
From: Santo Cariotti <santo@dcariotti.me>
Date: Fri, 19 Mar 2021 16:22:41 +0100
Subject: feat: add loading

---
 src/components/HeaderBlue.vue | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 src/components/HeaderBlue.vue

(limited to 'src/components/HeaderBlue.vue')

diff --git a/src/components/HeaderBlue.vue b/src/components/HeaderBlue.vue
new file mode 100644
index 0000000..d4ffa9f
--- /dev/null
+++ b/src/components/HeaderBlue.vue
@@ -0,0 +1,19 @@
+<template lang="pug">
+  header(:class="{active: loading}")
+    #big-loading(v-if="loading")
+      b-overlay(:show="true" spinner-large)
+    b-container
+      h1
+        a(href="/" rel="home") Gico
+</template>
+
+<script>
+export default {
+  name: "HeaderBlue",
+  computed: {
+    loading: function() {
+      return this.$store.getters.loading;
+    },
+  }
+}
+</script>
-- 
cgit v1.2.3-18-g5258

