Files
webgems/pages/css/index.vue
André Weller 0ab7d5c877 Fix mobile
2019-05-12 01:35:18 +02:00

40 lines
708 B
Vue

<template lang="pug">
div
h1 CSS
.cards
template(v-for='resource in resources')
Card(:title='resource.title' :desc='resource.desc' :url='resource.url')
</template>
<script>
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;
}
</style>