Fixed Footer Style

Fixed an issue where the footer text would wrap in a wrong way on smaller screens and not be aligned correctly.
This commit is contained in:
Jonas_Jones 2023-10-02 19:40:44 +02:00
parent 3c3e128475
commit 6f855a9f45

View file

@ -4,23 +4,25 @@
<!-- Footer.svelte -->
<footer>
<a href="/">Home</a>
<div class="footer-flex">
<a href="/">Home</a>
<nav>
<ul>
<li>
<a href="https://jonasjones.dev/">Homepage</a>
</li>
<li>
<a href="/about">About</a>
</li>
<li>
<a href="/contact">Contact</a>
</li>
</ul>
</nav>
</div>
<div class="footer">
<p>Website by Jonas_Jones 2021 - 2023</p>
</div>
<nav>
<ul>
<li>
<a href="https://jonasjones.dev/">Homepage</a>
</li>
<li>
<a href="/about">About</a>
</li>
<li>
<a href="/contact">Contact</a>
</li>
</ul>
</nav>
</footer>
<style>
@ -30,10 +32,13 @@
margin-bottom: 2rem;
margin-top: 0;
background: var(--container-background-color);
border-radius: 0.5rem;
}
.footer-flex {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
border-radius: 0.5rem;
}
ul {
@ -49,10 +54,8 @@
}
.footer {
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
text-align: center;
}
@media (max-width: 550px) {