noydb/oworms-ui

View on GitHub
src/app/component/layout/header/header.component.html

Summary

Maintainability
Test Coverage
<header>

    <!-- responsive menu -->

    <div id="menu-toggle">
        <ow-logo/>
        <img src="/assets/image/burger-menu.svg"
             (click)="expandMenu = true"
             alt="A burger menu svg icon"/>
    </div>
    <dialog id="responsive-menu" [class.show]="expandMenu">
        <img alt="A cycle/shuffle icon"
             src="/assets/image/icon-shuffle.svg"
             (click)="navigateToRandom()"/>
        <ow-nav [large]="true"
                [items]="responsiveItems"
                (navClicked)="expandMenu = false"/>
        <img alt="A close (X) icon"
             src="/assets/image/close-icon.svg"
             (click)="expandMenu = false">
        <div>
            <ow-logo/>
        </div>
    </dialog>

    <!-- normal menu -->

    <div>
        <ow-logo/>
        <ow-nav/>
    </div>
    <div id="actions">
        <button (click)="navigateToRandom()" class="icon">
            <img alt="shuffle icon" src="/assets/image/icon-shuffle.svg">
            random
        </button>
        <button (click)="navigateToAdd()" class="icon">
            <img alt="plus icon" src="/assets/image/icon-plus.svg">
            add
        </button>

        <img src="/assets/image/user.png"
             alt="user icon"
             [routerLink]="AppRoutes.PROFILE"
             title="view your profile">
    </div>

</header>