semaphore/routes/_components/Nav.html

60 lines
1.2 KiB
HTML
Raw Normal View History

<nav class="main-nav">
2018-01-06 23:51:25 +00:00
<ul>
2018-01-07 04:44:47 +00:00
<li>
2018-01-13 07:24:05 +00:00
<NavItem :page name="home" href="/" svg="#pinafore-logo" label="Home" />
2018-01-07 04:44:47 +00:00
</li>
<li>
2018-01-13 07:24:05 +00:00
<NavItem :page name="notifications" href="/notifications" svg="#fa-bell" label="Notifications" />
2018-01-07 04:44:47 +00:00
</li>
<li>
2018-01-13 07:24:05 +00:00
<NavItem :page name="local" href="/local" svg="#fa-users" label="Local" />
2018-01-07 04:44:47 +00:00
</li>
<li>
2018-01-13 07:24:05 +00:00
<NavItem :page name="federated" href="/federated" svg="#fa-globe" label="Federated" />
2018-01-07 04:44:47 +00:00
</li>
2018-01-07 21:38:12 +00:00
<li>
2018-01-27 20:55:09 +00:00
<NavItem :page name="settings" href="/settings" svg="#fa-gear" label="Settings" />
2018-01-07 21:38:12 +00:00
</li>
2018-01-22 04:02:32 +00:00
{{#if dynamicPage}}
<li>
<NavItem :page name="{{dynamicPage}}" href="{{dynamicHref}}" svg="{{dynamicIcon}}"
label="{{dynamicLabel}}" forceCurrent="true" />
</li>
{{/if}}
2018-01-06 23:51:25 +00:00
</ul>
</nav>
<style>
.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
}
.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;
align-items: center;
2018-01-06 23:51:25 +00:00
}
2018-01-07 05:05:49 +00:00
@media (max-width: 767px) {
.main-nav li {
2018-01-07 05:17:03 +00:00
flex-basis: 100%;
2018-01-07 05:05: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'
export default {
components: {
NavItem
}
}
</script>