Skip to content

Commit

Permalink
Finish alert popup
Browse files Browse the repository at this point in the history
  • Loading branch information
AsteroidusTv committed May 20, 2024
1 parent 9550e35 commit df3df37
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
13 changes: 8 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,17 @@ <h1 class="main-header-title-text2">cl</h1>
</div>
</div>

<div class="standard-popup" id="alertPopup">
<div class="standard-popup-whole-section-content alert">
<p>Votre vote a été mis a jour</p>
<!-- PUT EVERYTHING YOU WANT FOR EROR -->
<button class="standard-button alert" onclick="closePopup('alertPopup')">Fermer</button>
<!-- Alert popup -->
<div id="alertPopup" class="standard-popup">
<div class="standard-popup-whole-section">
<div class="standard-popup-whole-section-content alert-popup">
<h1 class="alert-text"><!-- Insert alert text --> Votre vote a été mis a jour</h1>
<button class="standard-button alert-button" onclick="closePopup('alertPopup')">fermer</button>
</div>
</div>
</div>

<!-- Welcome popup -->
<div id="welcomePopup" class="standard-popup">
<div class="standard-popup-whole-section welcome-popup">
<div class="standard-popup-whole-section-content welcome-popup">
Expand Down
27 changes: 16 additions & 11 deletions styles/standard-assets/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
background: var(--main-background);
}

.standard-popup-whole-section-content.alert-popup-popup-popup {
width: 300px;
height: 100px;
}

.standard-popup-whole-section-content.add-popup {
width: 250px;
Expand Down Expand Up @@ -77,13 +73,6 @@
height: 35px;
}

.standard-button.alert-popup {
transform: translateY(10px);
width: 280px;
font-size: 16px;
}


.select-image {
border: var(--border-width) var(--border-style) var(--border-color);
position: relative;
Expand Down Expand Up @@ -211,6 +200,22 @@
font-size: 25px;
}

/* Alert Popup */
.standard-popup-whole-section-content.alert-popup {
padding: 10px;
width: 350px;
height: auto;
}

.alert-text {
font-size: 25px;
height: 100%;
}

.alert-button {
width: 100%;
}

/* Welcome popup */
.standard-popup-whole-section-content.welcome-popup {
padding: 50px;
Expand Down

0 comments on commit df3df37

Please sign in to comment.