From 84d92a4109c58f52b3c21e5abedeade1e438f72c Mon Sep 17 00:00:00 2001 From: Theo DUPIN Date: Tue, 8 Nov 2022 16:44:38 +0100 Subject: [PATCH] =?UTF-8?q?d=C3=A9bug=20calendrier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Calendrier.js | 4 +- src/styles/components/_calendrier.scss | 78 +++++++++++++++----------- 2 files changed, 47 insertions(+), 35 deletions(-) diff --git a/src/pages/Calendrier.js b/src/pages/Calendrier.js index 0e33cc7..a5b3f2f 100644 --- a/src/pages/Calendrier.js +++ b/src/pages/Calendrier.js @@ -85,8 +85,10 @@ const Calendrier = () => { selected={newEvent.Début} onChange={(Début) => setNewEvent({...newEvent, Début})} /> setNewEvent({...newEvent, Fin})} /> - + diff --git a/src/styles/components/_calendrier.scss b/src/styles/components/_calendrier.scss index d81a95c..b991477 100644 --- a/src/styles/components/_calendrier.scss +++ b/src/styles/components/_calendrier.scss @@ -125,48 +125,58 @@ body { } } - .Calendrier { - display: flex; - flex-direction: row; - background: rgba(255, 255, 255, 0.3); - border-radius: 15px; - box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); - backdrop-filter: blur(3px); - -webkit-backdrop-filter: blur(15px); - width: 100%; - margin: 5px 10px 10px 5px; - text-align: center; - - .mini_formulaire_evenement { + .Calendrier { display: flex; flex-direction: row; - margin-top: 10px; - height: 100px; + background: rgba(255, 255, 255, 0.3); + border-radius: 15px; + box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); + backdrop-filter: blur(3px); + -webkit-backdrop-filter: blur(15px); + width: 100%; + margin: 5px 10px 10px 5px; + text-align: center; - .bouton_ajout { - width: 300px; - height: 50px; - border-radius: 10px; - border: 0.5px solid; - border: 0; - background-color: rgba(163, 163, 163, 0.371); - border: 1px solid rgba(255,255,255,0.1); - backdrop-filter: blur(30px); - color: rgb(255, 255, 255); - cursor: pointer; - font-size: 15px; - &:hover{ - background-color: rgba(114, 114, 114, 0.371); + .Titre { + display: flex; + flex-direction: column; + justify-content: space-around; + width: 200px; + + + .mini_formulaire_evenement { + display: flex; + flex-direction: column; + margin-top: 10px; + height: 100px; } - &:active{ - background-color:rgba(68, 68, 68, 0.972); + + .bouton_ajout { + display: flex; + flex-direction: column; + justify-content: space-around; + margin: 5px; + height: 50px; + align-items: center; + border-radius: 10px; + background-color: rgba(163, 163, 163, 0.371); + border: 1px solid rgba(255,255,255,0.1); + backdrop-filter: blur(30px); + color: rgb(255, 255, 255); + cursor: pointer; + font-size: 15px; + &:hover{ + background-color: rgba(114, 114, 114, 0.371); + } + &:active{ + background-color:rgba(68, 68, 68, 0.972); + } + } } } .rbc-calendar { - margin-top: 200px; - .rbc-day-bg { border-radius: 5px; } @@ -181,4 +191,4 @@ body { } } } -} \ No newline at end of file +}