Skip to content

Commit

Permalink
fix footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Xillians committed Nov 22, 2024
1 parent 9feb783 commit 8e69b41
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 8 deletions.
69 changes: 61 additions & 8 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script>
import logo from './logo.svg';
import darkLogo from './dark-logo.svg';
const title = 'Style guide';
</script>

Expand All @@ -9,38 +10,90 @@

<main>
<header>
<img src={logo} alt="Svelte logo" />
<img src={logo} alt="Tabetalt logo" />
<section id="menu">
<button class="ghost"> Menu </button>
</section>
</header>
<section class="container">
<slot></slot>
</section>
<footer></footer>
<footer>
<img src={darkLogo} alt="Tabetalt logo" />
<div class="link-menu">
<section id="sub-menu" class="footer-menu">
<b>
Sub-menu
</b>
<a href="/"> Home </a>
<a href="/"> About </a>
<a href="/"> Contact </a>
</section>
<section id="legal" class="footer-menu">
<b>
Legal
</b>
<a href="/"> Privacy </a>
<a href="/"> Terms </a>
<a href="/"> Cookies </a>
</section>
<section id="find-us" class="footer-menu">
<b>
Finn oss
</b>
<a href="/"> Facebook </a>
<a href="/"> Instagram </a>
<a href="/"> Twitter </a>
</section>
</div>
</footer>
</main>

<style scoped>
header {
display: flex;
justify-content: space-between;
display: grid;
grid-template-columns: 1fr 3fr;
align-items: center;
padding: 1em;
background-color: var(--header-background);
min-height: 100px;
button {
width: fit-content;
padding: 1em;
}
section {
display: flex;
justify-content: flex-end;
}
img {
justify-self: center;
}
}
img {
width: clamp(50px, 50%, 300px);
}
footer {
display: flex;
justify-content: center;
flex-direction: row;
padding: 1em;
background-color: var(--footer-background);
color: var(--light-color);
min-height: 100px;
padding: 1em;
display: grid;
grid-template-columns: 1fr 3fr;
justify-content: center;
img {
justify-self: center;
}
}
.link-menu {
display: flex;
flex-direction: row;
justify-content: space-around;
}
.footer-menu {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 1em;
}
</style>
11 changes: 11 additions & 0 deletions src/routes/dark-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/routes/logo.png
Binary file not shown.

0 comments on commit 8e69b41

Please sign in to comment.