|
@@ -16,7 +16,8 @@ Section "Solutions" de la page d'accueil
|
|
|
<v-col
|
|
<v-col
|
|
|
v-for="(solution, index) in solutions"
|
|
v-for="(solution, index) in solutions"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
- cols="4"
|
|
|
|
|
|
|
+ cols="12"
|
|
|
|
|
+ lg="4"
|
|
|
>
|
|
>
|
|
|
<v-container>
|
|
<v-container>
|
|
|
<div class="d-flex justify-center align-left flex-column">
|
|
<div class="d-flex justify-center align-left flex-column">
|
|
@@ -38,7 +39,7 @@ Section "Solutions" de la page d'accueil
|
|
|
<v-row>
|
|
<v-row>
|
|
|
<div :class="['image-container', solution.class]" >
|
|
<div :class="['image-container', solution.class]" >
|
|
|
<v-img :src="solution.image" />
|
|
<v-img :src="solution.image" />
|
|
|
- <v-btn>Découvrir</v-btn>
|
|
|
|
|
|
|
+ <v-btn v-if="xlAndUp">Découvrir</v-btn>
|
|
|
</div>
|
|
</div>
|
|
|
</v-row>
|
|
</v-row>
|
|
|
</nuxt-link>
|
|
</nuxt-link>
|
|
@@ -68,6 +69,10 @@ Section "Solutions" de la page d'accueil
|
|
|
</v-col>
|
|
</v-col>
|
|
|
</div>
|
|
</div>
|
|
|
</v-row>
|
|
</v-row>
|
|
|
|
|
+
|
|
|
|
|
+ <v-row v-if="lgAndDown">
|
|
|
|
|
+ <v-btn :to="solution.link">Découvrir</v-btn>
|
|
|
|
|
+ </v-row>
|
|
|
</div>
|
|
</div>
|
|
|
</v-container>
|
|
</v-container>
|
|
|
</v-col>
|
|
</v-col>
|
|
@@ -86,6 +91,9 @@ Section "Solutions" de la page d'accueil
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
|
|
|
|
|
import type { SolutionItem } from "~/types/interface";
|
|
import type { SolutionItem } from "~/types/interface";
|
|
|
|
|
+import { useDisplay } from "vuetify";
|
|
|
|
|
+
|
|
|
|
|
+const { xlAndUp, lgAndDown } = useDisplay()
|
|
|
|
|
|
|
|
const solutions: Array<SolutionItem> = [
|
|
const solutions: Array<SolutionItem> = [
|
|
|
{
|
|
{
|
|
@@ -148,6 +156,10 @@ const solutions: Array<SolutionItem> = [
|
|
|
margin-bottom: 15rem;
|
|
margin-bottom: 15rem;
|
|
|
height: 36rem;
|
|
height: 36rem;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
|
|
+
|
|
|
|
|
+ @media (max-width: 1240px) {
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
|
h4 {
|
|
@@ -157,6 +169,10 @@ h4 {
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
color: var(--on-primary-color);
|
|
color: var(--on-primary-color);
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
|
|
+
|
|
|
|
|
+ @media (max-width: 1240px) {
|
|
|
|
|
+ width: 90%;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 600px) {
|
|
@media (min-width: 600px) {
|
|
@@ -166,7 +182,6 @@ h4 {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.v-row.solutions {
|
|
.v-row.solutions {
|
|
|
-
|
|
|
|
|
small {
|
|
small {
|
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
|
font-size: 10px;
|
|
font-size: 10px;
|
|
@@ -216,6 +231,12 @@ h4 {
|
|
|
right: 0;
|
|
right: 0;
|
|
|
width: 200px;
|
|
width: 200px;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @media (max-width: 1240px) {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.image-container::before {
|
|
.image-container::before {
|
|
@@ -232,18 +253,27 @@ h4 {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.v-btn {
|
|
.v-btn {
|
|
|
- position: absolute;
|
|
|
|
|
- z-index: 100;
|
|
|
|
|
- bottom: 40%;
|
|
|
|
|
- left: 50%;
|
|
|
|
|
- transform: translateX(-50%);
|
|
|
|
|
- display: none;
|
|
|
|
|
font-size: 0.8rem;
|
|
font-size: 0.8rem;
|
|
|
border-radius: 6px;
|
|
border-radius: 6px;
|
|
|
background: var(--secondary-color);
|
|
background: var(--secondary-color);
|
|
|
color: var(--on-primary-color);
|
|
color: var(--on-primary-color);
|
|
|
|
|
+
|
|
|
|
|
+ @media (min-width: 1240px) {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ z-index: 100;
|
|
|
|
|
+ bottom: 40%;
|
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
|
+ display: none;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @media (max-width: 1240px) {
|
|
|
|
|
+ width: 90%;
|
|
|
|
|
+ margin: 24px auto;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
.image-container:hover .v-btn {
|
|
.image-container:hover .v-btn {
|
|
|
display: block;
|
|
display: block;
|
|
|
}
|
|
}
|
|
@@ -291,7 +321,13 @@ h4 {
|
|
|
margin-left: 1rem;
|
|
margin-left: 1rem;
|
|
|
line-height: 18px;
|
|
line-height: 18px;
|
|
|
color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
|
|
|
+
|
|
|
|
|
+ @media (max-width: 1240px) {
|
|
|
|
|
+ font-size: 1.1rem;
|
|
|
|
|
+ color: var(--on-primary-color);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -299,6 +335,11 @@ h4 {
|
|
|
p {
|
|
p {
|
|
|
text-align: right;
|
|
text-align: right;
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
|
|
|
+
|
|
|
|
|
+ @media (max-width: 1240px) {
|
|
|
|
|
+ font-size: 1.1rem;
|
|
|
|
|
+ color: var(--on-primary-color);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|