-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.vue
42 lines (38 loc) · 812 Bytes
/
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
<template>
<div>
<Tags :tags="tags" class="tags"></Tags>
<PagePreviews :pages="pages"></PagePreviews>
</div>
</template>
<script>
import Tags from "~/components/Tags";
import PagePreviews from "~/components/PagePreviews";
export default {
title: "Home",
description: "The latest news out of Rich Snapp's blog.",
components: {
Tags,
PagePreviews
},
data() {
return {
tags: require("~/static/api/tags.json"),
pages: require("~/static/api/latest.json")
};
}
};
</script>
<style lang="less" scoped>
@import "../assets/variables.less";
.tags {
font-family: @font-family-sans-serif;
font-size: 20px;
font-weight: 300;
margin: 0 4em 2em;
text-align: center;
@media (max-width: @screen-sm-max) {
margin-left: 0;
margin-right: 0;
}
}
</style>