Add qa component: makes block of question and answer component

master
Raymonzut 4 years ago
parent c4d1b02c2e
commit 66b1874a02
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 32
      src/components/qa.vue

@ -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>
Loading…
Cancel
Save