2016-11-07 01:34:58 +00:00
|
|
|
<template lang="html">
|
|
|
|
<div class="main">
|
2018-11-24 18:49:19 +00:00
|
|
|
<Post title="My first blog post">
|
|
|
|
<VP>Hello there</VP>
|
|
|
|
<VP>This is an example of a componentized blog post</VP>
|
|
|
|
</Post>
|
2016-11-07 01:34:58 +00:00
|
|
|
|
2018-11-24 18:49:19 +00:00
|
|
|
<VHr />
|
2016-11-07 01:34:58 +00:00
|
|
|
|
2018-11-24 18:49:19 +00:00
|
|
|
<Post title="My second blog post">
|
|
|
|
<VP>Hello there</VP>
|
|
|
|
<VP>This is another example.</VP>
|
|
|
|
<VP>Wa-hoo!</VP>
|
|
|
|
</Post>
|
2016-11-07 01:34:58 +00:00
|
|
|
|
2018-11-24 18:49:19 +00:00
|
|
|
<VHr />
|
2016-11-07 01:34:58 +00:00
|
|
|
|
2018-11-24 18:49:19 +00:00
|
|
|
<Post title="The final blog post">
|
|
|
|
<VP>C'est la fin !</VP>
|
|
|
|
</Post>
|
2016-11-07 01:34:58 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2017-07-08 18:01:57 +00:00
|
|
|
import Post from '~/components/post'
|
2018-11-24 18:49:19 +00:00
|
|
|
import VP from '~/components/paragraph'
|
|
|
|
const VHr = { render: h => h('hr', { class: 'hr' }) }
|
2016-11-07 01:34:58 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Post,
|
2018-11-24 18:49:19 +00:00
|
|
|
VP,
|
|
|
|
VHr
|
2016-11-07 01:34:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.main {
|
|
|
|
margin: auto;
|
|
|
|
max-width: 420px;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
.hr {
|
|
|
|
width: 100px;
|
|
|
|
border-width: 0;
|
|
|
|
margin: 20px auto;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
hr::before {
|
|
|
|
content: '***';
|
|
|
|
color: #ccc;
|
|
|
|
}
|
|
|
|
</style>
|