2023-06-14 11:02:46 +01:00
|
|
|
<script>
|
2023-07-07 11:27:28 +01:00
|
|
|
const links = [
|
|
|
|
{
|
|
|
|
title: 'Home',
|
|
|
|
path: '/',
|
|
|
|
svgPath: '/images/navigation/home.svg'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'PIS Finder',
|
2024-02-19 11:23:31 +00:00
|
|
|
path: '/pis/',
|
2023-07-07 11:27:28 +01:00
|
|
|
svgPath: '/images/navigation/info.svg'
|
|
|
|
},
|
|
|
|
{
|
2023-08-24 14:48:05 +01:00
|
|
|
title: 'Menu',
|
2024-02-19 11:23:31 +00:00
|
|
|
path: '/more/',
|
2023-07-07 11:27:28 +01:00
|
|
|
svgPath: '/images/navigation/more.svg'
|
|
|
|
}
|
|
|
|
];
|
|
|
|
import { page } from '$app/stores';
|
2023-06-14 11:02:46 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<footer>
|
2024-04-16 21:28:11 +01:00
|
|
|
|
2023-06-14 11:02:46 +01:00
|
|
|
{#each links as item}
|
2023-07-07 11:27:28 +01:00
|
|
|
<a href={item.path} class:active={$page.url.pathname == item.path}>
|
|
|
|
<img src={item.svgPath} alt={item.title} />
|
|
|
|
<br />
|
|
|
|
<span>{item.title}</span>
|
|
|
|
</a>
|
2023-06-14 11:02:46 +01:00
|
|
|
{/each}
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
<style>
|
2023-07-07 11:27:28 +01:00
|
|
|
footer {
|
|
|
|
position: fixed;
|
|
|
|
display: flex;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 50px;
|
|
|
|
background-color: rgb(54, 54, 54);
|
2024-01-16 20:34:41 +00:00
|
|
|
box-shadow: 0 -2px 30px rgba(0, 0, 0, 0.19);
|
2023-07-07 11:27:28 +01:00
|
|
|
}
|
2023-06-14 11:02:46 +01:00
|
|
|
|
2023-07-07 11:27:28 +01:00
|
|
|
footer a {
|
|
|
|
flex: 12;
|
|
|
|
width: 30%;
|
|
|
|
height: 100%;
|
2023-10-06 12:47:18 +01:00
|
|
|
background-color: var(--island-bg-solid);
|
2023-07-07 11:27:28 +01:00
|
|
|
border-style: solid;
|
|
|
|
border-width: 1px;
|
|
|
|
border-top: none;
|
|
|
|
border-bottom: none;
|
2023-10-06 12:31:17 +01:00
|
|
|
border-color: var(--box-shadow-color);
|
2023-07-07 11:27:28 +01:00
|
|
|
text-decoration: double;
|
2023-10-10 12:46:42 +01:00
|
|
|
color: var(--main-text-color);
|
2023-07-07 11:27:28 +01:00
|
|
|
font-weight: 600;
|
|
|
|
}
|
2023-06-14 11:02:46 +01:00
|
|
|
|
2023-07-07 11:27:28 +01:00
|
|
|
footer a.active {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2023-06-14 11:02:46 +01:00
|
|
|
|
2023-07-07 11:27:28 +01:00
|
|
|
img {
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
margin: 0;
|
|
|
|
margin-top: 3px;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2023-06-14 11:02:46 +01:00
|
|
|
|
2023-07-07 11:27:28 +01:00
|
|
|
span {
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
</style>
|