Skip to content

Instantly share code, notes, and snippets.

@jesperlandberg
Created March 14, 2016 19:34
Show Gist options
  • Save jesperlandberg/d1ce6e20578a25d4a0ef to your computer and use it in GitHub Desktop.
Save jesperlandberg/d1ce6e20578a25d4a0ef to your computer and use it in GitHub Desktop.
<template>
<div class="home" transition="slideHome">
<h1>{{ msg }}</h1>
<div id="work">
<article class="project-item" v-for="project in projects">
<a v-link="project.url">
<div class="project-item__inner">
<h1 class="project-item__title">{{ project.title }}</h1>
<div class="project-item__thumb" v-bind:style=""></div>
</div>
</a>
</article>
</div>
</div>
</template>
<script>
import Vue from 'vue'
export default {
data () {
return {
msg: 'homepage',
projects: [
{
title: "test",
url: "single/:test",
thumb: "test.jpg"
},
{
title: "test2",
url: "single/:test2",
thumb: "test2.jpg"
}
]
}
}
}
</script>
<style>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment