diff --git a/Pages/Counter.razor b/Pages/Counter.razor index ef23cb3..70212e3 100644 --- a/Pages/Counter.razor +++ b/Pages/Counter.razor @@ -10,7 +10,6 @@ @code { private int currentCount = 0; - private void IncrementCount() { currentCount++; diff --git a/Program.cs b/Program.cs index 6f53b1b..09a039e 100644 --- a/Program.cs +++ b/Program.cs @@ -6,6 +6,9 @@ var builder = WebAssemblyHostBuilder.CreateDefault(args); builder.RootComponents.Add("#app"); builder.RootComponents.Add("head::after"); + + builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); await builder.Build().RunAsync(); + diff --git a/Shared/MainLayout.razor b/Shared/MainLayout.razor index 839b8fe..385b98c 100644 --- a/Shared/MainLayout.razor +++ b/Shared/MainLayout.razor @@ -1,14 +1,25 @@ @inherits LayoutComponentBase -
- +
+ -
-
- About -
+
+ @* *@
@Body diff --git a/Shared/NavMenu.razor b/Shared/NavMenu.razor index 786bf92..b569788 100644 --- a/Shared/NavMenu.razor +++ b/Shared/NavMenu.razor @@ -1,36 +1,51 @@ - - - + @code { private bool collapseNavMenu = true; + private string? NavBarCssClass => collapseNavMenu ? null : "show"; + private string? NavButtonCssClass => collapseNavMenu ? "collapsed" : null; - private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null; private void ToggleNavMenu() { diff --git a/wwwroot/assets/Logo_new.png b/wwwroot/assets/Logo_new.png new file mode 100644 index 0000000..7172f0a Binary files /dev/null and b/wwwroot/assets/Logo_new.png differ