Skip to content

Commit

Permalink
Footer improvements including simple toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
toadwx committed May 18, 2023
1 parent 1b1161e commit c8baab9
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 1 deletion.
43 changes: 43 additions & 0 deletions css/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,51 @@
}

.footer-container {
display: flex;
position: absolute;
width: 90%;
justify-content: space-around;
}

.footer-row {
position: relative;
display: flex;
width: inherit;
background-color: #222;
justify-content: space-around;
height: 70px;
flex-direction: row;
align-content: center;
}

#footer-toggle {
float: left;
border: none;
border-style: none;
text-decoration: none;
background-color: #222;
color: #A69667;
font-size: 1.7em;
font-family: 'Oswald', sans-serif;
cursor: pointer;
justify-content: center;
height: 70px;
text-align: center;
margin: 0;
}

#footer-toggle h3 {
margin: 0;
font-family: 'Oswald', sans-serif;
text-align: center;
}

.footer-logo {
position: relative;
height: 50px;
width: auto;
margin-top: 10px;
margin-bottom: 10px;
}

.col {
Expand Down
38 changes: 37 additions & 1 deletion footer.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
<div class="footer-row">
<div>
<button id="footer-toggle">
<h3>
<span class="open-text">CLICK FOR MORE</span>
<span class="close-text" hidden>LESS</span>
</h3>
</button>
</div>
<div>
<div class="social-container">
<img alt="UNC Charlotte Logo" class="footer-logo" src="images/charlotte-logo-footer.png"/>
</div>
</div>
</div>

<span id="footer-span" hidden>
<div class="page-footer">
<img src="images/background_clt.jpg" class="back-image"/>
<div class="footer-container">
Expand Down Expand Up @@ -38,4 +55,23 @@
</div>
</div>
</div>
</div>
</div>
</span>

<script type='text/javascript'>
$(function(){
$('.open-text').click(function(){
$('.open-text').hide();
$('.close-text').show();
$('#footer-span').show();
});
$('.close-text').click(function(){
$('.close-text').hide();
$('#footer-span').hide();
$('.open-text').show();
});
});
</script>
Binary file added images/charlotte-logo-footer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c8baab9

Please sign in to comment.