Files
wondif_vue/app/components/Chiffres.vue
2026-04-07 22:02:43 +02:00

96 lines
2.1 KiB
Vue

<template>
<section class="chiffres_cont">
<DsHeading as="h1" tone="default" textcase="uppercase">
{{ title }}
</DsHeading>
<div class="chiffres_list">
<div
v-for="(item, index) in items"
:key="`${item.value}-${index}`"
class="chiffres_item"
>
<div class="chiffres_nombre">{{ item.value }}</div>
<div class="chiffres_descriptioin">{{ item.label }}</div>
</div>
</div>
</section>
</template>
<script setup>
import DsHeading from '@root/design-system/primitives/DsHeading.vue'
defineProps({
title: {
type: String,
required: true
},
items: {
type: Array,
required: true
}
})
</script>
<style lang="scss">
.chiffres_cont {
display: flex;
flex-direction: column;
align-items: center;
@media (max-width: 599px) {
padding-left: 10px;
padding-right: 10px;
}
font-family: var(--font-roboto);
margin-top: 30px;
margin-bottom: 50px;
.chiffres_list {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
row-gap: 50px;
column-gap: 50px;
margin-top: 60px;
.chiffres_item {
max-width: 200px;
display: flex;
flex-direction: column;
align-items: center;
row-gap: 15px;
text-align: center;
.chiffres_nombre {
color: var(--c-brand_rouge);
font-weight: var(--fw-extrabold);
font-size: 50px;
@media (max-width: 899px) {
font-size: 45px;
}
@media (max-width: 599px) {
font-size: 40px;
}
}
.chiffres_descriptioin {
font-weight: var(--fw-regular);
font-size: 25px;
@media (max-width: 899px) {
font-size: 23px;
}
@media (max-width: 599px) {
font-size: 21px;
}
}
}
}
}
</style>