WL-10 Create Grid component + populate with real data #comment test comment
This commit is contained in:
BIN
assets/images/aluna-festival.png
Normal file
BIN
assets/images/aluna-festival.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
BIN
assets/images/jouvanceau.png
Normal file
BIN
assets/images/jouvanceau.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 MiB |
BIN
assets/images/le-tube-les-bourdaines.png
Normal file
BIN
assets/images/le-tube-les-bourdaines.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 MiB |
BIN
assets/images/modjo-production.png
Normal file
BIN
assets/images/modjo-production.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 608 KiB |
BIN
assets/images/olac-festival.png
Normal file
BIN
assets/images/olac-festival.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 MiB |
87
components/Grid.vue
Normal file
87
components/Grid.vue
Normal file
@@ -0,0 +1,87 @@
|
||||
<template>
|
||||
<div id="projects" class="container mx-auto p-16">
|
||||
<h2 class="text-4xl mb-6">Projects</h2>
|
||||
<div class="grid grid-cols-3 gap-8">
|
||||
<div
|
||||
:key="index"
|
||||
v-for="(project, index) in projects"
|
||||
class="max-w-sm rounded overflow-hidden shadow-lg hover:shadow-2xl transition-shadow duration-300 ease-in-out"
|
||||
>
|
||||
<a
|
||||
class="block h-full"
|
||||
:href="`https://${project.link}`"
|
||||
target="_blank"
|
||||
>
|
||||
<img
|
||||
class="w-full"
|
||||
:src="require(`~/assets/images/${project.img}`)"
|
||||
:alt="project.title"
|
||||
/>
|
||||
<div class="flex flex-col">
|
||||
<div class="px-6 py-4">
|
||||
<h3 class="font-semibold text-xl mb-2">{{ project.title }}</h3>
|
||||
<p
|
||||
v-if="project.subtitle"
|
||||
class="text-purple-700 text-sm font-medium"
|
||||
>
|
||||
{{ project.subtitle }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="px-6 pt-4 pb-3">
|
||||
<span
|
||||
:key="index"
|
||||
v-for="(tag, index) in project.tags"
|
||||
class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2"
|
||||
>#{{ tag }}</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
projects: [
|
||||
{
|
||||
img: "aluna-festival.png",
|
||||
link: "aluna-festival.fr",
|
||||
title: "Aluna Festival",
|
||||
subtitle: "2017 / 2018 / 2019 / 2020",
|
||||
tags: ["wordpress", "sketch", "amazonS3", "acf", "svg"]
|
||||
},
|
||||
{
|
||||
img: "le-tube-les-bourdaines.png",
|
||||
link: "le-tube-bourdaines.com",
|
||||
title: "Le Tube - Les Bourdaines",
|
||||
tags: ["wordpress", "sketch", "svg", "acf"]
|
||||
},
|
||||
{
|
||||
img: "modjo-production.png",
|
||||
link: "modjo-production.com",
|
||||
title: "Modjo Production",
|
||||
tags: ["wordpress", "sketch", "acf", "svg"]
|
||||
},
|
||||
{
|
||||
img: "olac-festival.png",
|
||||
link: "olac-festival.fr",
|
||||
title: "O'Lac Festival",
|
||||
tags: ["wordpress", "sketch", "svg", "acf"]
|
||||
},
|
||||
{
|
||||
img: "jouvanceau.png",
|
||||
link: "jouvanceau.com",
|
||||
title: "Jouvanceau",
|
||||
tags: ["wordpress", "photoshop", "svg", "acf"]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
@@ -1,8 +1,7 @@
|
||||
<template>
|
||||
<div
|
||||
class="h-screen bg-gradient-to-r from-blue-300 to-blue-700 flex items-center"
|
||||
>
|
||||
<div>
|
||||
<Hero />
|
||||
<Grid />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -10,4 +9,8 @@
|
||||
export default {};
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
<style>
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user