Post header has post date and more spacing under.

This commit is contained in:
2021-01-03 16:52:29 +01:00
parent 9285ae4b7e
commit c1bcf7b3f6

View File

@@ -1,9 +1,11 @@
<template>
<div>
<h2>{{ post.title }}</h2>
<header>
<h2>{{ post.title }}</h2>
<p>{{ post.date }} by {{ post.author }}</p>
</header>
<article>
<p>{{ post.date }} by {{ post.author }}</p>
<img :src="post.thumbnail" />
<p v-html="post.description"></p>
@@ -35,17 +37,37 @@ A lot has changed in my life over the last 6 months or so, moving out of my flat
</script>
<style lang="scss" scoped>
h2 {
font-size: 3rem;
header {
text-align: center;
margin-top: 4rem;
h2 {
font-size: 3rem;
margin-top: 4rem;
margin-bottom: 0;
font-weight: normal;
}
p {
font-size: 1.1rem;
margin-top: 0.5rem;
margin-bottom: 0;
}
margin-bottom: 4rem;
}
article {
margin: 0 auto;
width: 80vw;
font-size: 1.2rem;
p, span {
width: 80%;
margin: 0 auto;
}
}
img {