Created
December 26, 2017 02:47
-
-
Save sandi-racy/93f493d4c4830ab91f43e187a86083c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="jade"> | |
.page | |
.row | |
.col-md-8.col-md-offset-2 | |
.row.technology__introduction | |
.col-md-12 | |
h1 Technologies that I use | |
.row | |
.col-md-4(v-for="technology in technologies") | |
img(:src="technology.metadata.image.url").img-responsive | |
</template> | |
<script> | |
import Cosmic from 'cosmicjs' | |
export default { | |
data() { | |
return { | |
technologies: [] | |
} | |
}, | |
mounted() { | |
const params = { | |
type_slug: 'technologies', | |
limit: 50, | |
skip: 0, | |
sort: 'created_at' | |
} | |
Cosmic.getObjectsByType(cosmicJsConfig, params, (error, response) => { | |
this.technologies = response.objects.all | |
}) | |
} | |
} | |
</script> | |
<style lang="stylus" scoped> | |
.technology__introduction | |
padding-bottom: 50px | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment