Skip to content

Commit 755d13e

Browse files
committed
start on the explain modal
1 parent 3c3c8a8 commit 755d13e

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

src/components/AppExplain.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<template>
2+
<section>
3+
<p>Probably better to explain what this is not. This is not a comprehensive tour of CSS Grid capabilities. It is a way for you to use CSS Grid features quickly.</p>
4+
<h4>Subheading</h4>
5+
<p>Lorem</p>
6+
</section>
7+
</template>
8+
9+
<script>
10+
export default {};
11+
</script>
12+
13+
<style lang="scss" scoped>
14+
</style>

src/components/AppForm.vue

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,40 @@
4444
>
4545
</fieldset>
4646

47-
<button @click="showModal = true">Please may I have some code</button>
48-
<app-modal v-if="showModal" @close="showModal = false">
47+
<button @click="showCodeModal = true">Please may I have some code</button>
48+
<app-modal v-if="showCodeModal" @close="showCodeModal = false">
4949
<h3 slot="header">Your Grid Code</h3>
5050
<div slot="body">
51-
<app-code :columns="columns" :rows="rows" :columngap="columngap" :rowgap="rowgap"/>
51+
<app-code/>
5252
</div>
5353
</app-modal>
5454

55-
<p class="wat">What does this project do?</p>
55+
<p class="wat" @click="showExplainModal = true">What does this project do?</p>
56+
<app-modal v-if="showExplainModal" @close="showExplainModal = false">
57+
<h3 slot="header">Wat is this?</h3>
58+
<div slot="body">
59+
<app-explain/>
60+
</div>
61+
</app-modal>
5662
</aside>
5763
</template>
5864

5965
<script>
66+
import AppExplain from "./AppExplain.vue";
6067
import AppModal from "./AppModal.vue";
6168
import AppCode from "./AppCode.vue";
6269
import { mapState } from "vuex";
6370
6471
export default {
6572
components: {
73+
AppExplain,
6674
AppModal,
6775
AppCode
6876
},
6977
data() {
7078
return {
71-
showModal: false
79+
showCodeModal: false,
80+
showExplainModal: false
7281
};
7382
},
7483
methods: {

0 commit comments

Comments
 (0)