parent
1d3e9cefb7
commit
c0456f84c3
@ -0,0 +1,48 @@ |
||||
<script> |
||||
export let segment; |
||||
import { goto } from '@sapper/app'; |
||||
import Icon from './Icon.svelte'; |
||||
</script> |
||||
|
||||
<style lang="scss"> |
||||
@import "sass/_variables"; |
||||
|
||||
#logo { |
||||
font-size: 24px; |
||||
text-shadow: 2px 2px $gray-color-dark; |
||||
} |
||||
|
||||
.menu-item .active { |
||||
background-color: $red; |
||||
} |
||||
|
||||
.btn { |
||||
background-color: $red !important; |
||||
margin-left: 4px; |
||||
border: 1px solid $black; |
||||
height: 40px; |
||||
} |
||||
|
||||
.navbar { |
||||
background-color: $gray-color; |
||||
min-height: 50px; |
||||
} |
||||
</style> |
||||
|
||||
<header class="navbar"> |
||||
<section class="navbar-section"> |
||||
<a class="navbar-brand mr-2" href="/"> |
||||
<div id="logo">BUTTONS</div> |
||||
</a> |
||||
</section> |
||||
|
||||
<section class="navbar-section"> |
||||
<a data-testid='nav-home-icon' rel="prefetch" class:btn-link="{ segment != undefined }" class="btn" href="/" alt="Home" aria-label="Home"> |
||||
<Icon name="home" size="32" tooltip="Home" tooltip_bottom={true} light={true}/> |
||||
</a> |
||||
<a data-testid='nav-blog-icon' rel="external" class:btn-link="{ segment != 'blog' }" class="btn" href="https://learnjsthehardway.com/blog" alt="Read the blog" aria-label="Read the blog"> |
||||
<Icon name="book-open" size="32" tooltip="Blog" tooltip_bottom={true} light={true} /> |
||||
</a> |
||||
</section> |
||||
</header> |
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue