2018-01-20 21:35:38 +01:00
|
|
|
<nav class="main-nav">
|
2018-03-27 18:34:29 +02:00
|
|
|
<ul class="main-nav-ul">
|
2018-05-03 06:32:43 +02:00
|
|
|
{#each $navPages as navPage (navPage.name)}
|
2018-04-11 07:51:42 +02:00
|
|
|
<li class="main-nav-li">
|
2018-05-03 06:32:43 +02:00
|
|
|
<NavItem
|
|
|
|
{page}
|
|
|
|
name={navPage.name}
|
|
|
|
href={navPage.href}
|
|
|
|
svg={navPage.svg}
|
|
|
|
label={navPage.label}
|
|
|
|
/>
|
2018-02-08 07:49:50 +01:00
|
|
|
</li>
|
2018-05-03 06:32:43 +02:00
|
|
|
{/each}
|
2018-01-07 00:51:25 +01:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<style>
|
2018-01-20 21:35:38 +01:00
|
|
|
.main-nav {
|
2018-01-12 18:01:46 +01:00
|
|
|
border-bottom: 1px solid var(--nav-border);
|
|
|
|
background: var(--nav-bg);
|
2018-01-11 07:17:15 +01:00
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
z-index: 10;
|
2018-01-07 00:51:25 +01:00
|
|
|
}
|
|
|
|
|
2018-03-27 18:34:29 +02:00
|
|
|
.main-nav-ul {
|
2018-01-07 00:51:25 +01:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2018-01-07 06:05:49 +01:00
|
|
|
list-style: none;
|
|
|
|
display: flex;
|
2018-03-27 18:34:29 +02:00
|
|
|
align-items: stretch;
|
2018-01-07 00:51:25 +01:00
|
|
|
}
|
|
|
|
|
2018-03-27 18:34:29 +02:00
|
|
|
.main-nav-li {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2018-02-09 03:01:00 +01:00
|
|
|
@media (max-width: 991px) {
|
2018-03-27 18:34:29 +02:00
|
|
|
.main-nav-li {
|
2018-01-29 00:53:49 +01:00
|
|
|
flex: 1;
|
2018-01-07 06:05:49 +01:00
|
|
|
}
|
2018-01-29 00:53:49 +01:00
|
|
|
}
|
2018-01-07 05:44:47 +01:00
|
|
|
|
2018-01-13 08:24:05 +01:00
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
import NavItem from './NavItem'
|
2018-02-08 07:49:50 +01:00
|
|
|
import { store } from '../_store/store'
|
|
|
|
|
2018-01-13 08:24:05 +01:00
|
|
|
export default {
|
2018-02-08 07:49:50 +01:00
|
|
|
store: () => store,
|
2018-01-13 08:24:05 +01:00
|
|
|
components: {
|
|
|
|
NavItem
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|