From 91f32ab6000ae0893616286f06371290d7db02ae Mon Sep 17 00:00:00 2001 From: Denis Chiron Date: Mon, 1 Apr 2024 18:12:58 +0200 Subject: [PATCH] Fiche personne (Timeline, Carousel) et autres ajustements mobile --- src/components/PersonDataCarousel.vue | 34 +++- src/components/PersonDataTimeline.vue | 252 ++++++++++++++++++++------ src/components/PersonPagination.vue | 2 +- src/components/PersonSearchBox.vue | 18 +- src/views/FacSimileView.vue | 3 +- src/views/PersonDataView.vue | 8 + src/views/PersonView.vue | 12 +- 7 files changed, 260 insertions(+), 69 deletions(-) diff --git a/src/components/PersonDataCarousel.vue b/src/components/PersonDataCarousel.vue index 514a103..dca8c88 100644 --- a/src/components/PersonDataCarousel.vue +++ b/src/components/PersonDataCarousel.vue @@ -6,6 +6,7 @@
@@ -47,6 +48,20 @@ export default { data() { return { isOpened: true, + breakpoints: { + 300: { + itemsToShow: 1.5, + itemsToScroll: 1 + }, + 700: { + itemsToShow: 2, + itemsToScroll: 2 + }, + 1024: { + itemsToShow: 3, + itemsToScroll: 3 + }, + }, } }, computed: { @@ -103,6 +118,7 @@ export default { .box-iconography-collecta.is-opened .box-content { background-color: var(--panel-bg-color); margin-bottom: var(--right-column-bottom-padding-desktop); + width: 100%; } .box-header { @@ -117,6 +133,7 @@ export default { font-style: italic; color: #272727; margin-bottom: 6px; + padding-right: 25px; } .logo-collecta { @@ -189,14 +206,14 @@ li.carousel__slide a { li.carousel__slide a:before { content: ""; display: block; - width: 100%; - height: 100%; + width: 50%; + height: 50%; background-color: #3b3b3b; position: absolute; - top: -114px; - left: 67px; - transform-origin: bottom center; - transform: scale(0.4) rotate3d(1, -0.2, 0.4, 25deg); + top: 58%; + left: 35%; + transform-origin: bottom right; + transform: translateY(-50%) skewX(-10deg); z-index: 1; } @@ -274,10 +291,15 @@ li.carousel__slide a::after { } @media screen and (max-width: 1024px) { + .box-iconography-collecta .box-header { padding: 0 var(--mobile-side-padding) var(--right-column-bottom-padding-mobile) !important; } + .box-iconography-collecta.is-opened .box-header { + padding: 0 var(--mobile-side-padding) 0 !important; + } + } diff --git a/src/components/PersonDataTimeline.vue b/src/components/PersonDataTimeline.vue index c8203af..fd93f74 100644 --- a/src/components/PersonDataTimeline.vue +++ b/src/components/PersonDataTimeline.vue @@ -1,61 +1,67 @@