About me

I'm a cool guy from the Mars, nice to meet you folks.

<template>
  <div class="container mx-auto">
    <Navbar />
    <slot name="default" />
    <div class="links">
      <div v-if="page.prevPost">
        <router-link :to="page.prevPost.permalink">
          <arrow-left-icon /> {{ page.prevPost.title }}
        </router-link>
      </div>
      <div v-if="page.nextPost">
        <router-link :to="page.nextPost.permalink">
         {{ page.nextPost.title }} <arrow-right-icon /> 
        </router-link>
      </div>
    </div>
    <Footer />
  </div>
</template>

<script>
import Navbar from '../components/Navbar.vue'
import Footer from '../components/Footer.vue'
import ArrowLeftIcon from 'vue-material-design-icons/ArrowLeft.vue'
import ArrowRightIcon from 'vue-material-design-icons/ArrowRight.vue'
export default {
  props: ['page'],
  components: {
    Navbar,
    Footer,
    ArrowLeftIcon,
    ArrowRightIcon
  },
  head() {
    const {title: pageTitle} = this.page
    return {
      title: pageTitle ?
        `${pageTitle} - ${this.$siteConfig.title}` :
        this.$siteConfig.title
    }
  }
}
</script>

<style scoped>
p {
  font-family: Helvetica;
}
.page-enter-active, .page-leave-active {
  transition: opacity .5s;
}
.page-enter, .page-leave-to {
  opacity: 0;
}

/**Add outward arrow images or icons at some point*/
.links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.img {
  max-width: 100%;
}
</style>
Created By David Li
2020
Created using saber