2024-02-21 00:30:14 +01:00
|
|
|
<template>
|
|
|
|
<main>
|
2024-05-28 00:18:18 +02:00
|
|
|
<Brush />
|
2024-02-21 00:30:14 +01:00
|
|
|
<p>{{ globalData.magasin_explication }}</p>
|
2024-05-27 19:05:43 +02:00
|
|
|
<div class="category">
|
|
|
|
<div>
|
|
|
|
<h3>Toiles</h3>
|
|
|
|
<Projects :contents="toiles" />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h3>Impressions</h3>
|
|
|
|
<Projects :contents="prints" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-02-21 00:30:14 +01:00
|
|
|
</main>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Projects from '@/components/Projects.vue';
|
2024-05-28 00:18:18 +02:00
|
|
|
import Brush from '@/components/Brush.vue';
|
2024-02-21 00:30:14 +01:00
|
|
|
|
|
|
|
export default {
|
2024-04-12 16:14:02 +02:00
|
|
|
async setup() {
|
2024-05-27 19:05:43 +02:00
|
|
|
const toiles = ref([]);
|
|
|
|
const prints = ref([]);
|
2024-04-06 00:46:44 +02:00
|
|
|
|
2024-05-27 19:05:43 +02:00
|
|
|
const { data: toilesData } = useFetch('/api/items/toiles', { server: true });
|
|
|
|
const { data: printsData } = useFetch('/api/items/prints', { server: true });
|
2024-05-28 17:22:38 +02:00
|
|
|
|
|
|
|
onMounted(async () => {
|
2024-05-27 19:05:43 +02:00
|
|
|
if (toilesData.value) {
|
|
|
|
toiles.value = toilesData.value.data;
|
|
|
|
}
|
|
|
|
if (printsData.value) {
|
|
|
|
prints.value = printsData.value.data;
|
2024-04-06 00:46:44 +02:00
|
|
|
}
|
2024-02-21 00:30:14 +01:00
|
|
|
});
|
|
|
|
|
2024-04-12 16:14:02 +02:00
|
|
|
let globalData = await useFetchGlobalData();
|
|
|
|
globalData = globalData.globalData._object.$sglobalData;
|
2024-02-21 00:30:14 +01:00
|
|
|
|
|
|
|
return {
|
|
|
|
globalData,
|
2024-05-27 19:05:43 +02:00
|
|
|
toiles,
|
|
|
|
prints
|
2024-02-21 00:30:14 +01:00
|
|
|
};
|
|
|
|
},
|
|
|
|
components: {
|
2024-05-28 00:18:18 +02:00
|
|
|
Projects,
|
|
|
|
Brush
|
2024-02-21 00:30:14 +01:00
|
|
|
}
|
|
|
|
};
|
2024-05-27 19:05:43 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
h3:first-of-type {
|
2024-05-28 16:48:11 +02:00
|
|
|
margin-top: 3rem;
|
2024-05-27 19:05:43 +02:00
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
2024-05-28 16:48:11 +02:00
|
|
|
div > h3 + main {
|
|
|
|
margin-top: 3vh;
|
|
|
|
}
|
2024-05-27 19:05:43 +02:00
|
|
|
|
|
|
|
@media screen and (min-width: 800px) {
|
2024-05-28 16:48:11 +02:00
|
|
|
div > h3 + main {
|
|
|
|
margin-top: 4vh;
|
|
|
|
}
|
2024-05-27 19:05:43 +02:00
|
|
|
.category {
|
|
|
|
display: flex;
|
|
|
|
> div {
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|