Selaa lähdekoodia

add presentation page

axolotle 3 vuotta sitten
vanhempi
commit
ad8575b7c9
1 muutettua tiedostoa jossa 38 lisäystä ja 2 poistoa
  1. 38 2
      src/pages/Introduction.vue

+ 38 - 2
src/pages/Introduction.vue

@@ -1,12 +1,48 @@
 <template>
-  <component-debug :component="this" />
+  <b-overlay
+    class="intro"
+    :show="page === undefined"
+    z-index="0"
+  >
+    <page-view v-if="page" :page="page" slug="intro" />
+  </b-overlay>
 </template>
 
 <script>
+import { PageView } from '@/components/layouts'
+
+
 export default {
-  name: 'Introduction'
+  name: 'Introduction',
+
+  components: {
+    PageView
+  },
+
+  data () {
+    return {
+      page: undefined
+    }
+  },
+
+  async created () {
+    this.page = await this.$store.dispatch('QUERY_PAGE', 'intro')
+  }
 }
 </script>
 
 <style lang="scss" scoped>
+.intro {
+  min-height: 100%;
+  min-width: 100%;
+
+  .page-intro {
+    font-family: $font-family-text;
+    font-size: 3rem;
+
+    @include media-breakpoint-up($size-bp) {
+      font-size: 5rem;
+    }
+  }
+}
 </style>