Add qa component: makes block of question and answer component

This commit is contained in:
Raymonzut
2020-03-27 20:29:20 +00:00
parent c4d1b02c2e
commit 66b1874a02
+32
View File
@@ -0,0 +1,32 @@
<template>
<div id='qa'>
<question :q='q'/>
<answer :a='a'/>
</div>
</template>
<script>
import question from './question.vue'
import answer from './answer.vue'
export default {
name: 'qa',
components: {
question,
answer,
},
props: {
q: String,
a: String
}
}
</script>
<style scoped>
#qa{
--block-spacing: 7.5em;
margin-top: var(--block-spacing);
margin-bottom: var(--block-spacing);
}
</style>