Skip to content

Commit

Permalink
Add footer to landing layout, fix rounting to examples page
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdForeign committed Oct 31, 2023
1 parent e5a2877 commit 254fa95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 7 additions & 1 deletion src/Cropper.Blazor/Client/Shared/LandingLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@
</MudToolBar>
<MudNavMenu Color="Color.Primary" Margin="Margin.Dense" Rounded="true" Class="pa-2">
<MudNavLink Href="demo" Icon="@Icons.Material.Filled.Crop">Demo</MudNavLink>
<MudNavLink Href="@(MenuService.Examples.FirstOrDefault().Href)" Icon="@Icons.Material.Filled.AutoStories">Examples</MudNavLink>
<MudNavLink Href="examples" Icon="@Icons.Material.Filled.AutoStories">Examples</MudNavLink>
<MudNavLink Href="api" Icon="@Icons.Material.Filled.Api">Api</MudNavLink>
<MudNavLink Href="about" Icon="@Icons.Material.Filled.ContactSupport">About</MudNavLink>
</MudNavMenu>
</MudDrawer>
<MudMainContent>
@Body
<MudContainer MaxWidth="MaxWidth.Large">
<Footer Class="mud-text-secondary pb-8 mt-16" />
</MudContainer>
<MudScrollToTop TopOffset="400" Style="z-index:2000;">
<MudFab StartIcon="@Icons.Material.Filled.KeyboardArrowUp" Color="Color.Primary" />
</MudScrollToTop>
</MudMainContent>
</MudLayout>
6 changes: 1 addition & 5 deletions src/Cropper.Blazor/Client/Shared/LandingLayout.razor.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
using Cropper.Blazor.Client.Enums;
using Cropper.Blazor.Client.Services;
using Cropper.Blazor.Client.Services;
using Microsoft.AspNetCore.Components;
using MudBlazor.Services;

namespace Cropper.Blazor.Client.Shared;
public partial class LandingLayout : LayoutComponentBase
{
[Inject] IMenuService MenuService { get; set; }

[Inject] private LayoutService LayoutService { get; set; } = null!;


Expand Down

0 comments on commit 254fa95

Please sign in to comment.