From 729320d39fade0b72f8b75fd16a9b4178bbc64fc Mon Sep 17 00:00:00 2001 From: R40fendt Date: Mon, 21 Apr 2025 19:16:08 +0200 Subject: [PATCH] =?UTF-8?q?Bildschau=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/bildschau/style.sass | 46 +++++++ src/router/index.ts | 1 + src/views/Bildschau.vue | 218 ++++++++++++++++++++++++++++++++ 3 files changed, 265 insertions(+) create mode 100755 src/assets/bildschau/style.sass create mode 100644 src/views/Bildschau.vue diff --git a/src/assets/bildschau/style.sass b/src/assets/bildschau/style.sass new file mode 100755 index 0000000..75740c9 --- /dev/null +++ b/src/assets/bildschau/style.sass @@ -0,0 +1,46 @@ +.flex-card-wrapper + width: 90rem + max-width: 150rem + height: 40rem + max-height: 50rem + display: flex + flex-direction: row + justify-content: center + align-items: stretch + transition: 200ms all ease-in-out + .flex-card-container + padding: 0 0 0 0 + height: 100% + + border-radius: 20px + cursor: pointer + overflow: hidden + position: relative + background-position: center center + background-size: cover + background-repeat: no-repeat + margin: 0 0 0 0 + display: none + transition: 200ms all ease-in-out + + + &:last-child + margin: 0 0 0 0 + &.active + width: 80% + overflow: auto + margin-left: 1% + margin-right: 1% + display: block + background-size: contain + + + &.unactive + width: 5% + display: block + +.main + flex-direction: column + display: flex + justify-content: center + align-items: center diff --git a/src/router/index.ts b/src/router/index.ts index f3fd67a..6c15691 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -6,6 +6,7 @@ const routes = [ { path: '/', component: () => import('../views/Main.vue') }, { path: '/galerie', component: Galerie }, { path: '/bild/:ev/:jahr', component: () => import('../views/Bildvorschau.vue') }, + { path: '/bild/:ev/:jahr/:bild', component: () => import('../views/Bildschau.vue') }, ] export default createRouter({ diff --git a/src/views/Bildschau.vue b/src/views/Bildschau.vue new file mode 100644 index 0000000..00d6cf7 --- /dev/null +++ b/src/views/Bildschau.vue @@ -0,0 +1,218 @@ + + +