aboutsummaryrefslogtreecommitdiff
path: root/pages/blog/index.vue
blob: 5619e6b90e1e7f81aa1f4bbbdc029b619d24ec83 (plain) (blame)
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
<template>
    <div>
        <v-card>
            <header id="showcase">
                <h1 class="display-3">Blog</h1>
                <h1>This is where I post stuff here.</h1>
            </header>
        </v-card>
        <v-container>
            <div v-for="post in blogPosts" :key="post.title">
                <v-card :to="'/blog/' + post.slug">
                    <v-card-title>{{ post.title }}</v-card-title>
                    <v-card-subtitle>Created on {{post.date}}</v-card-subtitle>
                    <v-card-text>{{ post.description }}</v-card-text>
                </v-card>
            </div>
        </v-container>
    </div>
</template>

<script>
export default {
  name: 'blog',
  head: {
    title: 'Blog'
  },
  computed: {
    blogPosts () {
      return this.$store.state.blogPosts
    }
  }
}

</script>

<style scoped>
    #showcase {
        background-image:url("../../assets/img/landing_page.png");
        background-size: cover;
        background-position: center;
        height: 30vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 20px;
    }
</style>