Skip to content

Commit

Permalink
Fix bug: Footer is not visible by default on any page
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjelonek committed Sep 7, 2023
1 parent 7ad0f26 commit 6f36d11
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
18 changes: 5 additions & 13 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<script setup lang="ts">
import { RouterLink, RouterView } from "vue-router";
import Navbar from "./components/Navbar.vue";
import { onMounted, ref } from "vue";
import { RouterView } from "vue-router";
import Footer from "./components/Footer.vue";
import { ref } from "vue";
import { onMounted } from "vue";
import Navbar from "./components/Navbar.vue";
const theme = ref(
window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light",
Expand All @@ -20,16 +19,9 @@ onMounted(() => {
<template>
<Navbar />

<div id="content" class="">
<div id="content">
<RouterView />
</div>

<Footer class="" />
<Footer />
</template>

<style>
#content {
margin-top: calc(80px + 1rem);
min-height: calc(100vh - 200px - 80px - 1rem);
}
</style>
17 changes: 17 additions & 0 deletions src/assets/main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
body {
--header-height: 80px;
--footer-height: 80px;
}
#content {
margin-top: calc(var(--header-height) + 1rem);
min-height: calc(100vh - var(--footer-height) - var(--header-height) - 2rem);
}
footer {
margin-bottom: 1rem;
}
.logo {
height: var(--footer-height);
margin-left: 2rem;
margin-right: 2rem;
}

.statstable > tr > th,
.statstable > tbody > tr > th {
font-weight: bold;
Expand Down
6 changes: 3 additions & 3 deletions src/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
href="https://www.uni-giessen.de/de/fbz/fb08/Inst/bioinformatik/"
target="_blank"
>
<img src="@/assets/images/CB.AG_Logo.svg" height="200" width="350" />
<img src="@/assets/images/CB.AG_Logo.svg" class="logo" />
</a>
<a href="">
<img src="@/assets/images/De.NBI_Logo.svg" width="350" height="160" />
<a href="https://www.denbi.de/">
<img src="@/assets/images/De.NBI_Logo.svg" class="logo" />
</a>
</div>
</footer>
Expand Down

0 comments on commit 6f36d11

Please sign in to comment.