forked from cybrespace/pinafore
55 lines
1.1 KiB
HTML
55 lines
1.1 KiB
HTML
<nav>
|
|
<ul>
|
|
<li>
|
|
<NavItem :page name="home" href="/" svg="#pinafore-logo" label="Home" />
|
|
</li>
|
|
<li>
|
|
<NavItem :page name="notifications" href="/notifications" svg="#fa-bell" label="Notifications" />
|
|
</li>
|
|
<li>
|
|
<NavItem :page name="local" href="/local" svg="#fa-users" label="Local" />
|
|
</li>
|
|
<li>
|
|
<NavItem :page name="federated" href="/federated" svg="#fa-globe" label="Federated" />
|
|
</li>
|
|
<li>
|
|
<NavItem :page name="settings" href="/settings" svg="#fa-gears" label="Settings" />
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<style>
|
|
nav {
|
|
border-bottom: 1px solid var(--nav-border);
|
|
background: var(--nav-bg);
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
z-index: 10;
|
|
will-change: transform; /* avoids "repaints on scroll" for fixed position header */
|
|
}
|
|
|
|
ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
li {
|
|
flex-basis: 100%;
|
|
}
|
|
}
|
|
|
|
</style>
|
|
<script>
|
|
import NavItem from './NavItem'
|
|
export default {
|
|
components: {
|
|
NavItem
|
|
}
|
|
}
|
|
</script> |