Restructured core content components

This commit is contained in:
Vivek Santayana 2022-08-31 00:51:32 +01:00
parent 17e15712af
commit 03b4faa17e
3 changed files with 28 additions and 10 deletions

View File

@ -1,18 +1,12 @@
<script> <script>
export default { export default {
props: ['contentTitle'] name: 'Content'
} }
</script> </script>
<template> <template>
<div class="max-w-2xl mx-auto bg-lime-50 p-3 rounded-xl"> <div>
<h1 class="text-4xl text-center pb-1 border-b-2 border-solid border-lime-600 mb-6 uncial-antiqua"> <slot>
<slot name="header"></slot> </slot>
</h1>
<div>
<slot name="content">
<p>Where will the text go?</p>
</slot>
</div>
</div> </div>
</template> </template>
<style> <style>

View File

@ -0,0 +1,12 @@
<script>
export default {
name: 'Header'
}
</script>
<template>
<h1 class="text-4xl text-center pb-1 border-b-2 border-solid border-lime-600 mb-6 uncial-antiqua">
<slot></slot>
</h1>
</template>
<style>
</style>

View File

@ -0,0 +1,12 @@
<script>
export default {
name: 'TextFrame'
}
</script>
<template>
<div class="max-w-2xl mx-auto bg-lime-50 p-3 rounded-xl">
<slot></slot>
</div>
</template>
<style>
</style>