Link project cards to projects
This commit is contained in:
parent
df96357eec
commit
a14a98c02d
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue