Use CSS Grid for application cards

Fixes #63
This commit is contained in:
Oliver Davies 2020-03-05 00:18:47 +00:00
parent 1a4f884f17
commit 9416b99ec9

View file

@ -14,8 +14,18 @@
</div> </div>
<div class="mt-6"> <div class="mt-6">
<div v-if="displayMode == 'grid'" class="flex flex-wrap -mt-8 mb-4 -mx-4"> <div
<div class="w-full px-4 mt-8 sm:w-1/2 lg:w-1/3" v-for="project in projects" :key="project.id"> v-if="displayMode == 'grid'"
class="
grid gap-8
md:grid-cols-2
xl:grid-cols-3
"
>
<div
v-for="project in projects"
:key="project.id"
>
<project-card :project="project"/> <project-card :project="project"/>
</div> </div>
</div> </div>