This commit is contained in:
André Weller
2019-05-12 00:53:44 +02:00
parent b4dfd58208
commit e2d8f8ff05
11 changed files with 281 additions and 125 deletions

View File

@@ -1,10 +1,44 @@
<template lang="pug">
h1 CSS resources
div
h1 CSS
.cards
template(v-for='resource in resources')
Card(:title='resource.title' :desc='resource.desc' :url='resource.url')
</template>
<script>
export default {}
import Card from '../../components/Card'
export default {
data() {
return {
resources: [
{
title: 'Flexbox froggy',
desc: 'A game to learn Flexbox',
url: 'https://flexboxfroggy.com'
},
{
title: 'CSS Gridgarden',
desc: 'A game to learn Grid',
url: 'https://cssgridgarden.com'
},
]
}
},
components: {
Card
}
}
</script>
<style lang="scss" scoped>
h1 {
margin-bottom: 2rem;
}
.cards {
display:grid;
grid-template-columns: repeat(4, 20%);
grid-gap: 3rem;
}
</style>