Blog.vue 1.21 KB
Newer Older
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 53 54 55 56 57 58 59 60 61
<template>
  <Common :sidebar="false">
    <template #sidebar-bottom>
      <BlogInfo />
    </template>

    <Password v-if="isGlobalEncrypted" @password-verify="checkGlobalPassword" />
    <Password
      v-else-if="isPathEncrypted"
      @password-verify="checkPathPassword"
    />
    <main v-else class="page blog">
      <div class="blog-page-wrapper">
        <BlogPage />

        <MyTransition :delay="0.16">
          <BlogInfo />
        </MyTransition>
      </div>
    </main>
  </Common>
</template>

<script src="./Blog" />

<style lang="stylus">
.page.blog
  box-sizing border-box
  min-height 100vh
  margin 0px auto
  padding-top $navbarHeight
  padding-bottom 2rem
  background var(--bgcolor-light)
  display flex
  flex-direction column
  justify-content space-between

  @media (max-width $MQMobile)
    padding $navbarMobileHeight 1.5rem 2rem

  @media (max-width $MQMobileNarrow)
    padding-left 0
    padding-right 0

.blog-page-wrapper
  box-sizing border-box
  width 100%
  margin 0 auto
  display flex
  justify-content center
  align-items flex-start

  @media (min-width $MQMobile)
    padding 0 1rem

  @media (min-width $MQNarrow)
    padding 0 2rem

  @media (min-width $MQWide)
    padding 0
</style>