fix: wip blog detail

This commit is contained in:
kmacoders 2021-07-10 00:06:07 +07:00
parent 5822dcc59a
commit 0fd771cc00
2 changed files with 12 additions and 4 deletions

View File

@ -1,7 +1,8 @@
<template>
<b-navbar
fixed-top
shadow
transparent
spaced
>
<template #brand>
<b-navbar-item tag="nuxt-link" :to="{ path: '/' }">

View File

@ -1,15 +1,18 @@
<template>
<div class="blog-detail container is-max-desktop content">
<section class="section blog-detail__featured-img">
<section class="blog-detail__featured-img" style="margin-top: 2rem;">
<img :src="blogDetail.image">
</section>
<section class="section blog-detail__info">
<h1 class="title is-2">
<h1 class="title is-1 has-text-primary">
{{ blogDetail.title }}
</h1>
<div>
{{ blogDetail.description }}
</div>
<div>
<span>{{ blogDetail.author }}</span>
</span>{{ blogDetail.published }}</span>
<span>{{ blogDetail.published }}</span>
</div>
<hr>
</section>
@ -117,5 +120,9 @@ export default class BlogDetail extends Vue {}
section:not(:first-child) {
padding-top: 1rem;
}
[aria-hidden="true"] {
display: none;
}
}
</style>