-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
86 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<script lang="typescript"> | ||
export let dark = false | ||
export let is_hidden_mobile = false | ||
</script> | ||
|
||
<nav | ||
class="navbar" | ||
class:dark | ||
class:is-hidden-mobile={is_hidden_mobile} | ||
role="navigation" | ||
aria-label="main navigation" | ||
> | ||
|
||
<div class="navbar-brand"> | ||
<a class="navbar-item" href="/"> | ||
<img src="/images/logo.svg" alt="LibreLingo" /> | ||
</a> | ||
</div> | ||
|
||
<div class="navbar-start"></div> | ||
|
||
<div class="navbar-end"> | ||
<div class="navbar-item"> | ||
<div class="buttons"> | ||
<slot name="buttons" /> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</nav> | ||
|
||
<style type="text/scss"> | ||
.navbar.dark { | ||
background: var(--navbar-dark-background); | ||
color: var(--navbar-dark-text-color); | ||
} | ||
|
||
.navbar { | ||
border: 0; | ||
.navbar-end { | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2fee850
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: