2023-06-14 11:02:46 +01:00
|
|
|
<script>
|
|
|
|
const links = [
|
|
|
|
{
|
|
|
|
title: "Home",
|
|
|
|
path: "/",
|
2023-06-15 18:19:23 +01:00
|
|
|
svgPath: "/images/navigation/home.svg"
|
2023-06-14 11:02:46 +01:00
|
|
|
},
|
|
|
|
{
|
2023-06-14 11:14:48 +01:00
|
|
|
title: "PIS Finder",
|
2023-06-14 11:02:46 +01:00
|
|
|
path: "/pis",
|
2023-06-15 18:19:23 +01:00
|
|
|
svgPath: "/images/navigation/info.svg"
|
2023-06-14 11:02:46 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "More",
|
|
|
|
path: "/more",
|
2023-06-15 18:19:23 +01:00
|
|
|
svgPath: "/images/navigation/more.svg"
|
2023-06-14 11:02:46 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
import { page } from "$app/stores";
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
{#each links as item}
|
|
|
|
<a href={item.path} class:active={$page.url.pathname == item.path}>
|
2023-06-16 12:38:32 +01:00
|
|
|
<img src="{item.svgPath}" alt="{item.title}">
|
2023-06-15 12:23:39 +01:00
|
|
|
<br>
|
|
|
|
<span>{item.title}</span>
|
2023-06-14 11:02:46 +01:00
|
|
|
</a>
|
|
|
|
{/each}
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
footer {
|
|
|
|
position: fixed;
|
|
|
|
display: flex;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 50px;
|
2023-06-16 22:12:31 +01:00
|
|
|
background-color: rgb(54, 54, 54);
|
2023-06-14 11:02:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
footer a {
|
|
|
|
flex: 12;
|
|
|
|
width: 30%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: var(--overlay-color);
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 1px;
|
|
|
|
border-top: none;
|
|
|
|
border-bottom: none;
|
|
|
|
border-color: rgba(0, 0, 0, 0.24);
|
|
|
|
text-decoration: double;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
footer a.active {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
margin: 0;
|
|
|
|
margin-top: 3px;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
</style>
|