footer & menu right side

This commit is contained in:
Robin Grenzdörfer 2023-07-13 20:45:49 +00:00
parent 09a150f102
commit 90b4c95cd8
5 changed files with 159 additions and 27 deletions

View File

@ -0,0 +1,3 @@
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.634 2.105a.375.375 0 0 0-.52.54l4.138 3.98H1.874a.375.375 0 0 0 0 .75h9.376l-4.136 3.98a.375.375 0 0 0 .52.54l4.713-4.535a.5.5 0 0 0 0-.72L7.634 2.105z" fill="#fff"/>
</svg>

After

Width:  |  Height:  |  Size: 286 B

View File

@ -1,4 +1,5 @@
<script lang="ts"> <script lang="ts">
import Footer from "./lib/components/Footer.svelte"
import Header from "./lib/components/Menu/Header.svelte" import Header from "./lib/components/Menu/Header.svelte"
import Menu from "./lib/components/Menu/Menu.svelte" import Menu from "./lib/components/Menu/Menu.svelte"
import { location } from "./store" import { location } from "./store"
@ -23,14 +24,20 @@
<main class=""> <main class="">
<Header bind:active="{activeMenu}" /> <Header bind:active="{activeMenu}" />
<Menu bind:active="{activeMenu}" /> <Footer />
</main> </main>
<Menu bind:active="{activeMenu}" />
<style lang="less" global> <style lang="less" global>
@import "./lib/assets/css/main.less"; @import "./lib/assets/css/main.less";
@import "./lib/assets/css/base.less"; @import "./lib/assets/css/base.less";
main { main {
overflow: hidden; overflow: hidden;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%; height: 100%;
width: 100%; width: 100%;
@media @mobile { @media @mobile {

View File

@ -59,6 +59,3 @@ select {
color: #333; color: #333;
width: 100%; width: 100%;
} }
.text-container {
}

View File

@ -0,0 +1,80 @@
<script lang="ts">
</script>
<div class="footer">
<button class="upper-part">
<div class="upper"><img src="/media/arrow-right.svg" alt="arrow" /> nächstes Thema</div>
<div class="lower">Ihre&nbsp;Bedürfnisse</div>
</button>
<div class="lower-part">
<div class="links">
<button>Datenschutz</button>
<button>Impressum</button>
</div>
<div class="contact">
<button>0711 644 700-0</button>
<button>info@fontis.de</button>
</div>
</div>
</div>
<style lang="less">
@import "../assets/css/main.less";
.footer {
display: flex;
flex-direction: column;
align-items: flex-end;
background-color: @bg-color-secondary;
color: @font-color-secondary;
.upper-part {
padding: 10px 40px;
display: flex;
flex-direction: column;
width: fit-content;
.upper {
color: @font-color-secondary;
font-size: 12px;
display: flex;
gap: 10px;
@media @tablet {
font-size: 14px;
}
}
.lower {
color: @font-color-secondary;
font-size: 22px;
@media @tablet {
font-size: 24px;
}
}
}
.lower-part {
padding: 40px 40px;
width: 100%;
display: flex;
flex-direction: column;
.links,
.contact {
display: flex;
justify-content: space-between;
padding: 10px 0px;
}
button {
color: @font-color-secondary;
}
@media @tablet {
padding: 80px 40px;
flex-direction: row;
justify-content: space-between;
.links,
.contact {
display: flex;
justify-content: flex-start;
gap: 40px;
padding: 0px;
}
}
}
}
</style>

View File

@ -8,6 +8,7 @@
<Header bind:active="{active}" opened="{true}" /> <Header bind:active="{active}" opened="{true}" />
<div class="menu-content"> <div class="menu-content">
<div class="container"> <div class="container">
<div class="inner-container">
<div class="pages"> <div class="pages">
{#each ["Ihre Bedürfnisse", "Unsere Lösungen", "Über uns", "Kontakt"] as page} {#each ["Ihre Bedürfnisse", "Unsere Lösungen", "Über uns", "Kontakt"] as page}
<button class="page"> <button class="page">
@ -15,7 +16,17 @@
</button> </button>
{/each} {/each}
</div> </div>
<div class="footer-infos"></div> <div class="footer-infos">
<div class="upper">
<button>Datenschutz</button>
<button>Impressum</button>
</div>
<div class="lower">
<button>0711 644 700-0</button>
<button>info@fontis.de</button>
</div>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -52,11 +63,44 @@
.container { .container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-end;
align-items: flex-end; align-items: flex-end;
width: 80%; width: 80%;
margin: 10vw 0px; margin: 10vw 0px;
.inner-container {
width: 100%;
display: flex;
.footer-infos { .footer-infos {
width: 100%; width: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
.upper {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 15px;
}
.lower {
display: flex;
flex-direction: column;
align-items: flex-end;
@media @desktop {
flex-direction: row;
justify-content: flex-end;
}
gap: 20px;
}
button {
font-size: 1.6rem;
color: @font-color-secondary;
}
@media @desktop {
.lower {
gap: 40px;
}
}
} }
.pages { .pages {
width: 100%; width: 100%;
@ -83,4 +127,5 @@
} }
} }
} }
}
</style> </style>