1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-25 13:09:19 +01:00

78 lines
2.0 KiB
HTML
Raw Normal View History

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