-
Notifications
You must be signed in to change notification settings - Fork 128
/
index.vue
executable file
·52 lines (49 loc) · 1.13 KB
/
index.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<template>
<div id="home-page" class="page-wrapper home-page">
<site-hero :title="title" :subtitle="subtitle" :image="featureImage">
<button
class="button is-primary"
@click="$eventBus.$emit('modal-triggered', 'newsletter-modal')"
>
Subscribe To Newsletter
</button>
</site-hero>
<main-section theme="one-column">
<template v-slot:default>
<!-- All Posts -->
<posts-grid />
</template>
<template v-slot:sidebar>
Nothing here
</template>
</main-section>
<news-letter-form-modal />
</div>
</template>
<script>
import { mapState } from 'vuex'
import { setPageData } from '../helper'
import NewsLetterFormModal from '~/components/NewsLetterFormModal'
export default {
name: 'HomePage',
head() {
return {
title: `Home | ${this.$siteConfig.siteName}`
}
},
components: {
NewsLetterFormModal
},
computed: {
...mapState(['title', 'subtitle', 'featureImage'])
},
fetch({ store, params }) {
setPageData(store, { slug: 'home' })
}
}
</script>
<style>
.home-page .under-subtitle {
border-top: none;
}
</style>