Skip to content

Commit

Permalink
add reload-button (better ux)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w committed Aug 18, 2024
1 parent 0bdfc2c commit aed886c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
16 changes: 14 additions & 2 deletions assets/css/maintenance-frontend.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ body {
border-radius: 30px;
border: none;
font-size: 1em;
}
}

.maintenance-pw-btn {
margin: 1em 1em 1em 1em;
Expand All @@ -70,5 +70,17 @@ body {
color: #ffffff;
border: none;
font-size: 1em;
cursor: default;
cursor: pointer;
}

.maintenance-btn {
display: inline-block;
text-decoration: none;
margin: 1em 1em 1em 1em;
padding: 1em 1em 1em 1em;
background: #5b98d7;
border-radius: 10px;
color: #ffffff;
border: none;
font-size: 1em;
}
1 change: 1 addition & 0 deletions fragments/maintenance/frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
// Subfragment announcement.php ausgeben
echo $this->subfragment('maintenance/announcement.php');
echo $this->subfragment('maintenance/login.php');
echo $this->subfragment('maintenance/reload.php');
?>
</div>
</body>
Expand Down
6 changes: 6 additions & 0 deletions fragments/maintenance/reload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
// reload current frontend page html button
?>
<div class="maintenance-reload">
<a href="<?= $_SERVER['REQUEST_URI']; ?>" class="maintenance-btn">Reload</a>
</div>

0 comments on commit aed886c

Please sign in to comment.