Adjust CSS

This commit is contained in:
Fred Boniface 2024-04-17 10:11:45 +01:00
parent 33fb2a607f
commit 70fb62fd6f
2 changed files with 11 additions and 4 deletions

View File

@ -3,27 +3,31 @@
{
title: 'Home',
path: '/',
svgPath: '/images/navigation/home.svg'
svgPath: '/images/navigation/home.svg',
icon: IconHome
},
{
title: 'PIS Finder',
path: '/pis/',
svgPath: '/images/navigation/info.svg'
svgPath: '/images/navigation/info.svg',
icon: IconNumbers
},
{
title: 'Menu',
path: '/more/',
svgPath: '/images/navigation/more.svg'
svgPath: '/images/navigation/more.svg',
icon: IconMenu2
}
];
import { page } from '$app/stores';
import { IconHome, IconMenu2, IconNumbers } from '@tabler/icons-svelte';
</script>
<footer>
{#each links as item}
<a href={item.path} class:active={$page.url.pathname == item.path}>
<img src={item.svgPath} alt={item.title} />
<svelte:component this={item.icon} />
<br />
<span>{item.title}</span>
</a>

View File

@ -40,6 +40,7 @@
border-style: solid;
border-left: none;
padding-left: 0.5rem;
overflow-x: hidden;
border-right: none;
height: 50px;
display: flex;
@ -50,6 +51,7 @@
text-decoration: none;
height: 100%;
vertical-align: middle;
overflow-x: hidden;
}
p {
color: white;
@ -60,6 +62,7 @@
vertical-align: middle;
font-weight: 600;
font-size: 20px;
overflow-x: hidden;
}
@media (min-width: 600px) {
p {