Restructured core content components
This commit is contained in:
parent
17e15712af
commit
03b4faa17e
@ -1,19 +1,13 @@
|
|||||||
<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">
|
|
||||||
<h1 class="text-4xl text-center pb-1 border-b-2 border-solid border-lime-600 mb-6 uncial-antiqua">
|
|
||||||
<slot name="header"></slot>
|
|
||||||
</h1>
|
|
||||||
<div>
|
<div>
|
||||||
<slot name="content">
|
<slot>
|
||||||
<p>Where will the text go?</p>
|
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
<style>
|
<style>
|
||||||
</style>
|
</style>
|
12
client/src/components/Header.vue
Normal file
12
client/src/components/Header.vue
Normal 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>
|
12
client/src/components/TextFrame.vue
Normal file
12
client/src/components/TextFrame.vue
Normal 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>
|
Loading…
Reference in New Issue
Block a user