Re-added footer and footer styling
This commit is contained in:
parent
37633c8a38
commit
e1ca4263d4
4
app.js
4
app.js
@ -1,3 +1,7 @@
|
||||
// Full year for footer
|
||||
const todayDate = new Date();
|
||||
jsyear.innerText = todayDate.getFullYear();
|
||||
|
||||
const disp = document.querySelector(".display");
|
||||
|
||||
fetch("FavouriteQuotes.json")
|
||||
|
@ -11,6 +11,9 @@
|
||||
|
||||
<body>
|
||||
<div class="display"></div>
|
||||
<footer class="footer">
|
||||
©<span id="jsyear"></span> Camille Frantz (<a href="https://github.com/fyrfli" target="_blank">@fyrfli</a>).
|
||||
</footer>
|
||||
<script src="app.js"></script>
|
||||
</body>
|
||||
|
||||
|
21
style.css
21
style.css
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user