Skip to content

Commit

Permalink
still in development modal
Browse files Browse the repository at this point in the history
  • Loading branch information
aweymo-ui committed Mar 8, 2024
1 parent 1a6d7ca commit 799310b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
40 changes: 40 additions & 0 deletions _includes/index/homepage-modal.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<style>
/* Custom styles for the modal */
.modal-content {
background-color: #000;
color: #fff;
font-family: 'Public Sans', sans-serif; /* Use your default font */
}
.modal-header {
border-bottom: none; /* Remove border */
}
.modal-body {
padding: 20px; /* Add padding */
}
</style>

<div class="modal fade" id="developmentModal" tabindex="-1" aria-labelledby="developmentModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="developmentModalLabel">Please Note:</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
This site is still in development.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>

<script>
// Show the modal when the page is loaded
window.addEventListener('DOMContentLoaded', function() {
var myModal = new bootstrap.Modal(document.getElementById('developmentModal'));
myModal.show();
});
</script>

2 changes: 2 additions & 0 deletions _layouts/taylor-home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
---
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid' -%}

{% include index/homepage-modal.html button="display-none?" %}

<div class="row">

<div class="col-md-12 mb-5">
Expand Down

0 comments on commit 799310b

Please sign in to comment.