Migrating to Svelte User management not done. Footer not done Nav user management icon not positioned correctly
This commit is contained in:
parent
ac83d0702c
commit
a21186f362
55 changed files with 2126 additions and 387 deletions
84
src/components/Nav.svelte
Normal file
84
src/components/Nav.svelte
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
<script>
|
||||
export let segment;
|
||||
export let rightComponent;
|
||||
</script>
|
||||
|
||||
<style>
|
||||
nav {
|
||||
|
||||
border-bottom: 1px solid rgba(255, 62, 0, 0.1);
|
||||
font-weight: 300;
|
||||
flex-flow: row nowrap;
|
||||
position: relative;
|
||||
justify-content: flex-start;
|
||||
width: 100%;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
/* clearfix */
|
||||
ul::after {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
li {
|
||||
font-size: 1rem;
|
||||
text-align: center;
|
||||
padding: 5px;
|
||||
box-sizing: border-box;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
[aria-current] {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
[aria-current]::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: calc(100% - 1em);
|
||||
height: 2px;
|
||||
background-color: rgb(255, 62, 0);
|
||||
display: block;
|
||||
bottom: -1px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #CC99FF;
|
||||
text-decoration: none;
|
||||
padding: 1em 0.5em;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*
|
||||
.right {
|
||||
margin-left: auto;
|
||||
align-self: flex-end !important;
|
||||
}
|
||||
*/
|
||||
</style>
|
||||
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a aria-current="{segment === undefined ? 'page' : undefined}" href=".">Quartznet</a></li>
|
||||
<li><a aria-current="{segment === 'about' ? 'page' : undefined}" href="about">About</a></li>
|
||||
|
||||
<!-- for the blog link, we're using rel=prefetch so that Sapper prefetches
|
||||
the blog data when we hover over the link or tap it on a touchscreen -->
|
||||
<li><a rel=prefetch aria-current="{segment === 'blog' ? 'page' : undefined}" href="blog">Blog</a></li>
|
||||
<li class="right">
|
||||
<svelte:component this={rightComponent}/>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
Loading…
Reference in a new issue