2018-01-20 20:35:38 +00:00
|
|
|
<nav class="main-nav">
|
2018-03-27 16:34:29 +00:00
|
|
|
<ul class="main-nav-ul">
|
2018-04-11 05:51:42 +00:00
|
|
|
<li class="main-nav-li">
|
2018-05-02 00:05:36 +00:00
|
|
|
<NavItem {page} name="home" href="/" svg="#pinafore-logo" label="Home" />
|
2018-01-07 04:44:47 +00:00
|
|
|
</li>
|
2018-04-11 05:51:42 +00:00
|
|
|
<li class="main-nav-li">
|
2018-05-02 00:05:36 +00:00
|
|
|
<NavItem {page} name="notifications" href="/notifications" svg="#fa-bell" label="Notifications" />
|
2018-01-07 04:44:47 +00:00
|
|
|
</li>
|
2018-05-02 00:05:36 +00:00
|
|
|
{#if $pinnedPage === '/local'}
|
2018-04-11 05:51:42 +00:00
|
|
|
<li class="main-nav-li">
|
2018-05-02 00:05:36 +00:00
|
|
|
<NavItem {page} name="local" href="/local" svg="#fa-users" label="Local" />
|
2018-02-08 06:49:50 +00:00
|
|
|
</li>
|
2018-05-02 00:05:36 +00:00
|
|
|
{:elseif $pinnedPage === '/federated'}
|
2018-04-11 05:51:42 +00:00
|
|
|
<li class="main-nav-li">
|
2018-05-02 00:05:36 +00:00
|
|
|
<NavItem {page} name="federated" href="/federated" svg="#fa-globe" label="Federated" />
|
2018-02-08 06:49:50 +00:00
|
|
|
</li>
|
2018-05-02 00:05:36 +00:00
|
|
|
{:elseif $pinnedPage === '/favorites'}
|
2018-04-11 05:51:42 +00:00
|
|
|
<li class="main-nav-li">
|
2018-05-02 00:05:36 +00:00
|
|
|
<NavItem {page} name="favorites" href="/favorites" svg="#fa-star" label="Favorites" />
|
2018-02-08 06:49:50 +00:00
|
|
|
</li>
|
2018-05-02 00:05:36 +00:00
|
|
|
{:elseif $pinnedPage.startsWith('/lists/')}
|
2018-04-11 05:51:42 +00:00
|
|
|
<li class="main-nav-li">
|
2018-05-02 00:05:36 +00:00
|
|
|
<NavItem {page} name="lists" href={$pinnedPage} svg="#fa-bars" label={$pinnedListTitle} />
|
2018-02-08 17:15:25 +00:00
|
|
|
</li>
|
2018-05-02 00:05:36 +00:00
|
|
|
{/if}
|
2018-03-27 16:34:29 +00:00
|
|
|
<li class="main-nav-li">
|
2018-05-02 00:05:36 +00:00
|
|
|
<NavItem {page} name="community" href="/community" svg="#fa-comments" label="Community" />
|
2018-02-08 06:49:50 +00:00
|
|
|
</li>
|
2018-03-27 16:34:29 +00:00
|
|
|
<li class="main-nav-li">
|
2018-05-02 00:05:36 +00:00
|
|
|
<NavItem {page} name="search" href="/search" svg="#fa-search" label="Search" />
|
2018-02-08 16:22:54 +00:00
|
|
|
</li>
|
2018-03-27 16:34:29 +00:00
|
|
|
<li class="main-nav-li">
|
2018-05-02 00:05:36 +00:00
|
|
|
<NavItem {page} name="settings" href="/settings" svg="#fa-gear" label="Settings" />
|
2018-01-07 21:38:12 +00:00
|
|
|
</li>
|
2018-01-06 23:51:25 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<style>
|
2018-01-20 20:35:38 +00:00
|
|
|
.main-nav {
|
2018-01-12 17:01:46 +00:00
|
|
|
border-bottom: 1px solid var(--nav-border);
|
|
|
|
background: var(--nav-bg);
|
2018-01-11 06:17:15 +00:00
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
z-index: 10;
|
2018-01-06 23:51:25 +00:00
|
|
|
}
|
|
|
|
|
2018-03-27 16:34:29 +00:00
|
|
|
.main-nav-ul {
|
2018-01-06 23:51:25 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2018-01-07 05:05:49 +00:00
|
|
|
list-style: none;
|
|
|
|
display: flex;
|
2018-03-27 16:34:29 +00:00
|
|
|
align-items: stretch;
|
2018-01-06 23:51:25 +00:00
|
|
|
}
|
|
|
|
|
2018-03-27 16:34:29 +00:00
|
|
|
.main-nav-li {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2018-02-09 02:01:00 +00:00
|
|
|
@media (max-width: 991px) {
|
2018-03-27 16:34:29 +00:00
|
|
|
.main-nav-li {
|
2018-01-28 23:53:49 +00:00
|
|
|
flex: 1;
|
2018-01-07 05:05:49 +00:00
|
|
|
}
|
2018-01-28 23:53:49 +00:00
|
|
|
}
|
2018-01-07 04:44:47 +00:00
|
|
|
|
2018-01-13 07:24:05 +00:00
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
import NavItem from './NavItem'
|
2018-02-08 06:49:50 +00:00
|
|
|
import { store } from '../_store/store'
|
|
|
|
|
2018-01-13 07:24:05 +00:00
|
|
|
export default {
|
2018-02-08 06:49:50 +00:00
|
|
|
store: () => store,
|
2018-01-13 07:24:05 +00:00
|
|
|
components: {
|
|
|
|
NavItem
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|