pinafore/routes/_components/Nav.html

54 lines
1002 B
HTML
Raw Normal View History

2018-01-07 00:51:25 +01:00
<nav>
<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>
<li>
2018-01-13 08:24:05 +01:00
<NavItem :page name="local" href="/local" svg="#fa-users" label="Local" />
2018-01-07 05:44:47 +01:00
</li>
<li>
2018-01-13 08:24:05 +01:00
<NavItem :page name="federated" href="/federated" svg="#fa-globe" label="Federated" />
2018-01-07 05:44:47 +01:00
</li>
2018-01-07 22:38:12 +01:00
<li>
2018-01-13 08:24:05 +01:00
<NavItem :page name="settings" href="/settings" svg="#fa-gears" label="Settings" />
2018-01-07 22:38:12 +01:00
</li>
2018-01-07 00:51:25 +01:00
</ul>
</nav>
<style>
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
}
ul {
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-07 06:05:49 +01:00
@media (max-width: 767px) {
2018-01-07 06:17:03 +01:00
li {
flex-basis: 100%;
2018-01-07 06:05: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'
export default {
components: {
NavItem
}
}
</script>