Add footer #27 #41

Merged
jakob.scheid merged 7 commits from feature/footer into main 2026-05-08 18:58:16 +02:00
4 changed files with 60 additions and 25 deletions
+18 -4
View File
@@ -16,12 +16,26 @@ limitations under the License.
<script setup> <script setup>
import Navbar from './features/nav/components/Navbar.vue'; import Navbar from './features/nav/components/Navbar.vue';
import Footer from './features/footer/components/Footer.vue';
</script> </script>
<template> <template>
<div class="content-background"> <Navbar />
<Navbar />
<div class="main-content">
<router-view /> <router-view />
</div> </div>
</template>
<Footer />
</template>
<style scoped>
.main-content {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
gap: 60px;
flex-grow: 1;
}
</style>
+30
View File
@@ -0,0 +1,30 @@
<script setup>
const startYear = 2026
const currentYear = new Date().getFullYear()
const copyrightPeriod =
startYear === currentYear
? `${currentYear}`
: `${startYear}-${currentYear}`
</script>
<template>
<footer class="global-footer">
<div class="copyright-note">
&copy; {{ copyrightPeriod }} Seekra
</div>
</footer>
</template>
<style scoped>
.global-footer {
--padding-y: 22px;
display: flex;
justify-content: center;
padding: var(--padding-y);
background-color: #f2f2f2;
margin-top: var(--padding-y);
}
</style>
+2
View File
@@ -21,4 +21,6 @@ body {
#app { #app {
min-height: 100vh; min-height: 100vh;
display: flex;
flex-direction: column;
} }
+10 -21
View File
@@ -19,30 +19,19 @@ import Searchbar from '../features/search/components/Searchbar.vue'
</script> </script>
<template> <template>
<div class="main-content"> <header class="global-header">
<header class="global-header"> <h1>Seekra</h1>
<h1>Seekra</h1> <span class="slogan">
<span class="slogan"> Built to search.
Built to search. </span>
</span> </header>
</header>
<form id="search-form">
<form id="search-form"> <Searchbar />
<Searchbar /> </form>
</form>
</div>
</template> </template>
<style scoped> <style scoped>
.main-content {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
gap: 60px;
}
.global-header { .global-header {
text-align: center; text-align: center;
display: flex; display: flex;