-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
36 lines (33 loc) · 921 Bytes
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<template>
<section id="app-component">
<div class="app-component-wrapper">
<h1>{{title}}</h1>
<div class="flexbox-container">
<brick v-for="brick in brickData" :name="brick.name" :imageURL="brick.imageURL"></brick>
</div>
</div>
</section>
</template>
<script>
import brick from './Brick.vue'
export default {
name: 'appComponent',
data() {
return {
title: 'Hello from the App Component',
brickData: [
{name:'Sports', imageURL:'http://lorempixel.com/200/200/sports/'},
{name:'City', imageURL:'http://lorempixel.com/200/200/city/'},
{name:'People', imageURL:'http://lorempixel.com/200/200/people/'},
{name:'Cats', imageURL:'http://lorempixel.com/200/200/cats/'}
]
}
},
components: { brick }
}
</script>
<style lang="scss" scoped>
.app-component-wrapper {
padding:20px;
}
</style>