This repository has been archived on 2025-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
mojotrollz-app/pages/index.vue
2020-12-10 15:54:34 +01:00

98 lines
1.7 KiB
Vue

<!--
<div>
<nuxt-content :document="page" />
<Logo />
<h1 class="title">Mojotrollz</h1>
<div class="links">
<a
href="https://nuxtjs.org/"
target="_blank"
rel="noopener noreferrer"
class="button--green"
>
Documentation
</a>
<a
href="https://github.com/nuxt/nuxt.js"
target="_blank"
rel="noopener noreferrer"
class="button--grey"
>
GitHub
</a>
</div>
</div>
<script lang="ts">
import Vue from 'vue'
export default Vue.extend({
async asyncData ({ $content }) {
const page = await $content('mojotrollz').fetch()
return {
page
}
}
})
</script>
<style>
.title {
font-family: 'Quicksand', 'Source Sans Pro', -apple-system, BlinkMacSystemFont,
'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
display: block;
font-weight: 300;
font-size: 100px;
color: #35495e;
letter-spacing: 1px;
}
.subtitle {
font-weight: 300;
font-size: 42px;
color: #526488;
word-spacing: 5px;
padding-bottom: 15px;
}
.links {
padding-top: 15px;
}
</style>
-->
<template>
<div class="container">
<article>
<nuxt-content :document="page" />
</article>
</div>
</template>
<script lang="ts">
export default {
async asyncData({ $content }) {
const page = await $content('home').fetch()
return { page }
},
}
</script>
<style>
/* Sample `apply` at-rules with Tailwind CSS
.container {
@apply min-h-screen flex justify-center items-center text-center mx-auto;
}
*/
.container {
margin: 0 auto;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
</style>