generated from Seekra/repository-template
Reviewed-on: #41 Reviewed-by: Johannes D. Vos
This commit was merged in pull request #41.
This commit is contained in:
+15
-1
@@ -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>
|
||||||
|
|
||||||
|
<Footer />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.main-content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
gap: 60px;
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -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">
|
||||||
|
© {{ 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>
|
||||||
@@ -21,4 +21,6 @@ body {
|
|||||||
|
|
||||||
#app {
|
#app {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
@@ -19,7 +19,6 @@ 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">
|
||||||
@@ -30,19 +29,9 @@ import Searchbar from '../features/search/components/Searchbar.vue'
|
|||||||
<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;
|
||||||
|
|||||||
Reference in New Issue
Block a user