collection -> inspiration

This commit is contained in:
isUnknown 2024-09-10 12:09:53 +02:00
parent dfda911664
commit 0d41b27cc3
9 changed files with 61 additions and 16 deletions

View file

@ -19,9 +19,9 @@
<!-- TabPanel -->
<section class="inspiration">
<Header :collection="currentCollection" />
<Header :inspiration="currentInspiration" />
<div class="grid masonry">
<template v-for="(item, index) in currentCollection.media">
<template v-for="(item, index) in currentInspiration.media">
<figure class="flex" :style="'--rows: ' + (index % 2 ? 2 : 3)">
<button
class="favorite"
@ -72,13 +72,15 @@ const tabs = computed(() => {
{
label: "Les inspirations",
id: "all",
count: currentCollection.media.length,
count: currentInspiration.media.length,
isActive: true,
},
];
});
const currentCollection = data.collections[0];
const currentInspiration = data.inspirations[0];
function toggleFavorite() {}
</script>
<style scoped>