-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
adae4e6
commit f042929
Showing
11 changed files
with
204 additions
and
57 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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
<aside ...attributes class="pix-navigation"> | ||
<header class="pix-navigation__brand">{{yield to="brand"}}</header> | ||
<nav class="pix-navigation__nav" aria-label={{@navigationAriaLabel}}>{{yield | ||
to="navElements" | ||
}}</nav> | ||
<aside | ||
...attributes | ||
class="pix-navigation {{if this.navigationMenuOpened 'pix-navigation--opened'}}" | ||
> | ||
<header class="pix-navigation__brand">{{yield to="brand"}} | ||
<div class="pix-navigation__burger-menu"><PixButton | ||
@iconBefore={{if this.navigationMenuOpened "close" "menu"}} | ||
@triggerAction={{this.toggleNavigationMenu}} | ||
>Menu</PixButton> | ||
</div> | ||
</header> | ||
<nav class="pix-navigation__nav" aria-label={{@navigationAriaLabel}}> | ||
{{yield to="navElements"}} | ||
</nav> | ||
<footer class="pix-navigation__footer">{{yield to="footer"}}</footer> | ||
</aside> |
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,13 @@ | ||
import Component from '@glimmer/component'; | ||
import { action } from '@ember/object'; | ||
import { tracked } from '@glimmer/tracking'; | ||
|
||
export default class PixMNavigation extends Component { | ||
@tracked | ||
navigationMenuOpened = false; | ||
|
||
@action | ||
toggleNavigationMenu() { | ||
this.navigationMenuOpened = !this.navigationMenuOpened; | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.