Link project cards to projects

This commit is contained in:
Oliver Davies 2019-04-28 13:59:51 +02:00
parent df96357eec
commit a14a98c02d
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
<template> <template>
<article class="w-full sm:w-1/2 md:w-1/3 px-4 mb-8"> <article class="w-full sm:w-1/2 md:w-1/3 px-4 mb-8">
<a href="#" class="group block"> <router-link :to="{ name: 'project', params: { id: 1 }}" class="group block">
<span class="block bg-gray-100 shadow-lg rounded overflow-hidden"> <span class="block bg-gray-100 shadow-lg rounded overflow-hidden">
<span class="block p-6"> <span class="block p-6">
<h2 class="font-bold text-gray-800 group-hover:underline">Drupal Bristol</h2> <h2 class="font-bold text-gray-800 group-hover:underline">Drupal Bristol</h2>
@ -14,6 +14,6 @@
<p>Europe (West 1)</p> <p>Europe (West 1)</p>
</span> </span>
</span> </span>
</a> </router-link>
</article> </article>
</template> </template>

View file

@ -15,7 +15,7 @@ export default new Router({
component: Projects component: Projects
}, },
{ {
path: '/project/{id}', path: '/project/:id',
name: 'project', name: 'project',
component: Project component: Project
} }