Skip to content

Commit

Permalink
Refine navigation bar
Browse files Browse the repository at this point in the history
Closes #2.
  • Loading branch information
dennisreimann committed Apr 25, 2024
1 parent 3958b41 commit 74bc1a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
16 changes: 8 additions & 8 deletions BTCPayApp.UI/Components/Layout/NavbarBottom.razor
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
@using BTCPayApp.UI.Features
@inject IState<UIState> UiState

<nav id="NavbarBottom" class="navbar">
<nav id="NavbarBottom" class="container d-flex align-items-center justify-content-between">
<ul class="navbar-nav">
<li class="nav-item">
<NavLink class="nav-link" href="@Routes.Dashboard" Match="NavLinkMatch.All">
<Icon symbol="nav-store"/>
<span>Dashboard</span>
</NavLink>
</li>
<li class="nav-item">
<NavLink class="nav-link" href="@Routes.Invoices" Match="NavLinkMatch.Prefix">
<Icon symbol="nav-invoices"/>
<span>Invoices</span>
<span>Home</span>
</NavLink>
</li>
<li class="nav-item">
Expand All @@ -21,6 +15,12 @@
<span>Keypad</span>
</NavLink>
</li>
<li class="nav-item">
<NavLink class="nav-link" href="@Routes.Invoices" Match="NavLinkMatch.Prefix">
<Icon symbol="nav-invoices"/>
<span>Invoices</span>
</NavLink>
</li>
<li class="nav-item">
<NavLink class="nav-link" href="@Routes.Settings" Match="NavLinkMatch.All">
<Icon symbol="settings"/>
Expand Down
5 changes: 3 additions & 2 deletions BTCPayApp.UI/Components/Layout/NavbarBottom.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 0;
background-color: var(--btcpay-bg-tile);
}

.navbar-nav {
margin: 0 auto;
flex-direction: row;
gap: var(--btcpay-space-m);
}

.nav-item {
Expand All @@ -35,7 +35,8 @@
}

::deep .nav-link span {
font-size: var(--btcpay-font-size-xs);
font-size: var(--btcpay-font-size-s);
font-weight: var(--btcpay-font-weight-semibold);
}

::deep .nav-link .icon {
Expand Down

0 comments on commit 74bc1a5

Please sign in to comment.