collection -> inspiration
This commit is contained in:
parent
dfda911664
commit
0d41b27cc3
9 changed files with 61 additions and 16 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue