update
This commit is contained in:
39
pages/design/index.vue
Normal file
39
pages/design/index.vue
Normal file
@@ -0,0 +1,39 @@
|
||||
<template lang="pug">
|
||||
div
|
||||
h1 Design
|
||||
.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: 'Undraw',
|
||||
desc: 'Free vector illustrations for your website.',
|
||||
url: 'https://undraw.co'
|
||||
},
|
||||
]
|
||||
}
|
||||
},
|
||||
components: {
|
||||
Card
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
h1 {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
.cards {
|
||||
display:grid;
|
||||
grid-template-columns: repeat(4, 20%);
|
||||
grid-gap: 3rem;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user