Redesign footer

This commit is contained in:
Leonardo Murça 2025-04-11 09:05:23 -03:00
parent 44853095b2
commit f6db297b9c
2 changed files with 42 additions and 4 deletions

View file

@ -17,9 +17,16 @@
body {
display: flex;
justify-content: center;
flex-direction: column;
margin: 0;
width: 100%;
min-height: 100vh;
height: 100%;
}
main {
flex: 1; /* This pushes footer to bottom */
padding: 20px;
min-height: 85vh;
}
#app {

View file

@ -4,15 +4,46 @@
</script>
<footer>
<p>{@html $t("main.copyright", { year: new Date().getFullYear(), website: "https://leomurca.xyz" })}</p>
<p>{@html $t("main.version", { version: appVersion() })}</p>
<div class="footer-content">
<p>{@html $t("main.copyright", { year: new Date().getFullYear(), website: "https://leomurca.xyz" })}</p>
<p>{@html $t("main.version", { version: appVersion() })}</p>
</div>
</footer>
<style>
footer {
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
background-color: #f8f9fa;
border-top: 1px solid #ddd;
width: 100%;
bottom: 0;
}
p {
.footer-content {
text-align: center;
}
footer p {
margin: 5px 0;
font-size: 14px;
color: #333;
}
footer p:first-child {
font-weight: bold;
}
@media (max-width: 768px) {
footer {
padding: 15px;
}
footer p {
font-size: 12px;
}
}
</style>