Pinafore-Web-Client-Frontend/routes/_components/Nav.html

70 lines
1.6 KiB
HTML
Raw Normal View History

<nav class="main-nav">
2018-01-07 00:51:25 +01:00
<ul>
2018-01-07 05:44:47 +01:00
<li>
2018-01-13 08:24:05 +01:00
<NavItem :page name="home" href="/" svg="#pinafore-logo" label="Home" />
2018-01-07 05:44:47 +01:00
</li>
<li>
2018-01-13 08:24:05 +01:00
<NavItem :page name="notifications" href="/notifications" svg="#fa-bell" label="Notifications" />
2018-01-07 05:44:47 +01:00
</li>
{{#if $pinnedPage === '/local'}}
<li>
<NavItem :page name="local" href="/local" svg="#fa-users" label="Local" />
</li>
{{elseif $pinnedPage === '/federated'}}
<li>
<NavItem :page name="federated" href="/federated" svg="#fa-globe" label="Federated" />
</li>
{{elseif $pinnedPage === '/favorites'}}
<li>
<NavItem :page name="favorites" href="/favorites" svg="#fa-star" label="Favorites" />
</li>
{{/if}}
<li>
<NavItem :page name="community" href="/community" svg="#fa-comments" label="Community" />
</li>
2018-02-08 17:22:54 +01:00
<li>
<NavItem :page name="search" href="/search" svg="#fa-search" label="Search" />
</li>
2018-01-07 22:38:12 +01:00
<li>
2018-01-27 21:55:09 +01:00
<NavItem :page name="settings" href="/settings" svg="#fa-gear" label="Settings" />
2018-01-07 22:38:12 +01:00
</li>
2018-01-07 00:51:25 +01:00
</ul>
</nav>
<style>
.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
}
.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;
align-items: center;
2018-01-07 00:51:25 +01:00
}
2018-01-29 00:53:49 +01:00
@media (max-width: 767px) {
.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'
import { store } from '../_store/store'
2018-01-13 08:24:05 +01:00
export default {
store: () => store,
2018-01-13 08:24:05 +01:00
components: {
NavItem
}
}
</script>