Skip to content

Commit

Permalink
Nav updates
Browse files Browse the repository at this point in the history
Closes #4. Closes #6.
  • Loading branch information
dennisreimann committed Apr 25, 2024
1 parent 88003ab commit 3958b41
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 18 deletions.
8 changes: 1 addition & 7 deletions BTCPayApp.UI/Components/Layout/NavbarBottom.razor
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
<span>Dashboard</span>
</NavLink>
</li>
<li class="nav-item">
<NavLink class="nav-link" href="@Routes.Wallet" Match="NavLinkMatch.Prefix">
<Icon symbol="wallet-existing"/>
<span>Wallet</span>
</NavLink>
</li>
<li class="nav-item">
<NavLink class="nav-link" href="@Routes.Invoices" Match="NavLinkMatch.Prefix">
<Icon symbol="nav-invoices"/>
Expand All @@ -29,7 +23,7 @@
</li>
<li class="nav-item">
<NavLink class="nav-link" href="@Routes.Settings" Match="NavLinkMatch.All">
<Icon symbol="nav-settings"/>
<Icon symbol="settings"/>
<span>Settings</span>
</NavLink>
</li>
Expand Down
12 changes: 6 additions & 6 deletions BTCPayApp.UI/Components/Layout/Titlebar.razor
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div id="Titlebar" class="@(Fixed ? "fixed" : null)">
<section id="Titlebar" class="container d-flex align-items-center justify-content-between p-3 @(Fixed ? "fixed" : null)">
<div class="back">
@if (!string.IsNullOrEmpty(Back))
{
<NavLink class="btn-close btn-back" href="@Back">
<Icon symbol="nav-back"/>
<Icon symbol="back"/>
</NavLink>
}
</div>
Expand All @@ -13,12 +13,12 @@
<div class="close">
@if (Close)
{
<button type="button" class="btn-close" aria-label="Close">
<Icon symbol="nav-close"/>
</button>
<button type="button" class="btn-close" aria-label="Close">
<Icon symbol="close"/>
</button>
}
</div>
</div>
</section>

@code {
[Parameter]
Expand Down
1 change: 1 addition & 0 deletions BTCPayApp.UI/Components/Layout/Titlebar.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
display: flex;
justify-content: space-between;
background-color: var(--btcpay-body-bg);
padding: 0 var(--btcpay-space-s);
}

#Titlebar.fixed {
Expand Down
2 changes: 1 addition & 1 deletion BTCPayApp.UI/Pages/DashboardPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<AuthorizeView>
<Authorized>
<section class="container d-flex align-items-center justify-content-between py-3">
<section class="container d-flex align-items-center justify-content-between py-2 px-4">
<div class="d-flex align-items-center justify-content-between gap-2">
<div class="fw-semibold">
@context.User.Identity?.Name
Expand Down
2 changes: 1 addition & 1 deletion BTCPayApp.UI/Pages/SettingsPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PageTitle>Settings</PageTitle>

<SectionContent SectionName="top">
<Titlebar>
<Titlebar Back="@Routes.Dashboard">
<h1>Settings</h1>
</Titlebar>
</SectionContent>
Expand Down
2 changes: 1 addition & 1 deletion BTCPayApp.UI/Pages/WalletSetupPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PageTitle>Wallet Setup</PageTitle>

<SectionContent SectionName="top">
<Titlebar>
<Titlebar Back="@Routes.Dashboard">
<h1>Wallet Setup</h1>
</Titlebar>
</SectionContent>
Expand Down
4 changes: 2 additions & 2 deletions BTCPayApp.UI/wwwroot/css/global.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:root {
--sticky-header-height: 0; /* gets dynamically set via JavaScript */
--navbar-top-height: 3.25rem;
--navbar-bottom-height: 3.25rem;
--navbar-top-height: 3.5rem;
--navbar-bottom-height: 3.5rem;
--sidebar-width: 280px;
}

Expand Down

0 comments on commit 3958b41

Please sign in to comment.