Skip to content
Snippets Groups Projects
Commit e8d79687 authored by Clement Franckelemon's avatar Clement Franckelemon
Browse files

:lipstick: add project image visualizer

parent e85f25d9
No related branches found
No related tags found
No related merge requests found
Pipeline #59436 passed
<template>
<q-dialog>
<div class="column justify-center items-center content-center" >
<q-btn icon="close" size="lg" class="absolute q-mt-md bg-secondary" style="top: 0px; z-index: 20000" text-color="primary" unelevated round v-close-popup />
<div class="absolute" style="margin: 10%; height: auto">
<img class="full-height full-width" style="border-radius: 10px" :src="src" />
</div>
</div>
</q-dialog>
</template>
<script setup lang="ts">
defineProps({
src: {
type: String,
required: true
}
})
</script>
<style scoped>
</style>
...@@ -19,9 +19,11 @@ ...@@ -19,9 +19,11 @@
> >
<swiper-slide v-for="{src,nb} in imageProjet" zoom :key="nb"> <swiper-slide v-for="{src,nb} in imageProjet" zoom :key="nb">
<img <img
class="cursor-pointer"
:src="src" :src="src"
loading="lazy" loading="lazy"
style="border-radius: 10px" style="border-radius: 10px"
@click="showImg = true;imgSelected = src"
/> />
<div <div
class="swiper-lazy-preloader swiper-lazy-preloader-white" class="swiper-lazy-preloader swiper-lazy-preloader-white"
...@@ -29,6 +31,7 @@ ...@@ -29,6 +31,7 @@
> >
</swiper> </swiper>
</div> </div>
<image-dialog v-model="showImg" :src="imgSelected" />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
...@@ -44,6 +47,10 @@ import 'swiper/css/navigation'; ...@@ -44,6 +47,10 @@ import 'swiper/css/navigation';
import TitleComposant from 'components/TitleComposant.vue'; import TitleComposant from 'components/TitleComposant.vue';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import images from './images'; import images from './images';
import ImageDialog from 'components/ImageDialog.vue'
const imgSelected = ref('')
const showImg = ref(false)
const props = defineProps({ const props = defineProps({
id: { id: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment