Re-added footer and footer styling

This commit is contained in:
Camille Frantz 2022-05-18 10:38:58 -05:00
parent 37633c8a38
commit e1ca4263d4
3 changed files with 28 additions and 0 deletions

4
app.js
View File

@ -1,3 +1,7 @@
// Full year for footer
const todayDate = new Date();
jsyear.innerText = todayDate.getFullYear();
const disp = document.querySelector(".display");
fetch("FavouriteQuotes.json")

View File

@ -11,6 +11,9 @@
<body>
<div class="display"></div>
<footer class="footer">
&copy;<span id="jsyear"></span> Camille Frantz (<a href="https://github.com/fyrfli" target="_blank">@fyrfli</a>).
</footer>
<script src="app.js"></script>
</body>

View File

@ -9,10 +9,31 @@
}
.display {
width: 80vw;
max-width: 500px;
margin-top: 12rem;
background: linear-gradient(to bottom right, #0c024d, #0dbcc5);
background-attachment: fixed;
color: white;
font-size: 1.3rem;
padding: 2rem;
border-radius: 12px;
}
.footer {
display: block;
position: relative;
top: 30rem;
text-align: center;
font-size: 0.8rem;
margin: 2rem auto;
}
.footer a:any-link {
text-decoration: none;
color: #0c024d;
}
.footer a:hover {
color: #0dbcc5;
}