end animation + dropdown menu

This commit is contained in:
p2405951 committed 2025-12-09 12:55:33 +01:00
1 parent f9da3e10be
commit 36236ac615
6 files changed
+1137 -117

No files matched your search

+202 -44
View File
@@ -6,6 +6,7 @@
box-sizing: border-box;
gap: 20px;
}
/* style a montrer a giovanni prcq il est + bo */
/*.glassCard {
background: rgba(255, 255, 255, 0.2);
@@ -27,41 +28,80 @@
display: flex;
flex-direction: column;
align-items: center;
height:fit-content;
height: fit-content;
}
.participationHeader {
display: flex;
align-items: center;
margin-bottom: 20px;
width: 100%;
}
.partiText{
display: flex;
flex-direction: column;
width: 100%;
}
.participationHeader label{
font-size:20px;
/*justify-content: center;*/
text-align: center;
margin-bottom: 0px;
width: 100%;
}
.participationHeader #months{
text-align:center;
}
.monthsDropdown {
width:25%;
border-radius: 5px;
opacity: 1;
background-color: transparent;
border:none;
.partiText {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 2%;
margin-top: 2%;
animation: slideInEvent 2s;
}
.partiText label {
transition: all 0.3s ease;
}
.participationHeader label {
font-size: 20px;
text-align: right;
}
.participationHeader p{
width:fit-content;
}
.chartContainer {
max-width: 80%;
margin: 0 auto;
position: relative;
animation: slideEvent2 2s;
}
@keyframes slideEvent2 {
from {
opacity: 0;
transform: translateX(-20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.chartWrapper {
position: relative;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
}
.chartPercentage {
position: absolute;
top: 50%;
left: 50%;
text-align: center;
transform: translate(-50%, -50%);
font-size: 60px;
font-weight: bold;
color: #333;
}
.circularProgress {
width: 100%;
@@ -82,7 +122,6 @@
font-family: Arial, sans-serif;
}
.rightSection {
width: 60%;
display: flex;
@@ -93,8 +132,9 @@
.rightBlock {
width: 100%;
}
.rightBlock>h2{
font-size:29px;
.rightBlock > h2 {
font-size: 29px;
}
.eventsContainer {
@@ -102,93 +142,211 @@
flex-direction: row;
gap: 10px;
margin-top: 15px;
overflow-x: auto;
overflow-y: hidden;
padding-bottom: 10px;
scroll-behavior: smooth;
}
/* Style de la scrollbar horizontale */
.eventsContainer::-webkit-scrollbar {
height: 8px;
}
.eventsContainer::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
border-radius: 10px;
}
.eventsContainer::-webkit-scrollbar-thumb {
background: rgba(30, 96, 249, 0.5);
border-radius: 10px;
}
.eventsContainer::-webkit-scrollbar-thumb:hover {
background: rgba(30, 96, 249, 0.7);
}
.eventCard {
flex: 1;
min-width: calc((100% - 20px) / 3);
max-width: calc((100% - 20px) / 3);
flex-shrink: 0;
padding: 10px;
text-align: center;
padding-bottom:200px;
padding-bottom: 200px;
box-sizing: border-box;
opacity: 0;
transform: translateX(20px);
animation: slideInEvent 1s ease forwards;
}
.eventCard>h3{
/* animation card */
.eventCard:nth-child(1) {
animation-delay: 0s;
}
.eventCard:nth-child(2) {
animation-delay: 0.1s;
}
.eventCard:nth-child(3) {
animation-delay: 0.2s;
}
.eventCard:nth-child(4) {
animation-delay: 0.3s;
}
.eventCard:nth-child(5) {
animation-delay: 0.4s;
}
.eventCard:nth-child(6) {
animation-delay: 0.5s;
}
@keyframes slideInEvent {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.eventCard > h3 {
font-size: 24px;
}
.membersContainer {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 15px;
max-height: 181px;
overflow-y: auto;
padding-right: 5px;
scroll-behavior: smooth;
}
/* style scrollbar */
.membersContainer.membersContainer::-webkit-scrollbar {
width: 8px;
}
.membersContainer.membersContainer::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
border-radius: 10px;
}
.membersContainer.membersContainer::-webkit-scrollbar-thumb {
background: red;
border-radius: 10px;
}
.membersContainer.membersContainer::-webkit-scrollbar-thumb:hover {
background: rgba(125, 249, 30, 0.7);
}
/*//////*/
.memberCard {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
flex-shrink: 0;
opacity: 0;
transform: translateY(20px);
animation: slideInMember 0.5s ease forwards;
}
.memberCard p{
/* Animation différée pour chaque carte de membre */
.memberCard:nth-child(1) {
animation-delay: 0s;
}
.memberCard:nth-child(2) {
animation-delay: 0.1s;
}
.memberCard:nth-child(3) {
animation-delay: 0.2s;
}
@keyframes slideInMember {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.memberCard p {
font-weight: bold;
font-size: 20px;
}
.buttonGroup {
display: flex;
gap: 10px;
justify-content: right;
}
@media screen and (max-width: 760px) {
.container {
flex-direction: column;
padding: 10px;
}
.leftBlock {
width: 100%;
margin-bottom: 20px;
height:fit-content;
height: fit-content;
}
.rightSection {
width: 100%;
}
.eventsContainer {
flex-direction: column;
}
.eventCard {
width: 100%;
}
.donutChart {
width: 120px;
height: 120px;
}
.memberCard {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.buttonGroup {
width: 100%;
justify-content: space-between;
}
.validateButton,
.rejectButton {
flex: 1;
text-align: center;
padding: 8px;
}
}
.membersContainer {
max-height: 300px;
}
}