Skip to content

Commit 9d61a74

Browse files
committed
Added All Producs & Donate Section
1 parent 625fece commit 9d61a74

6 files changed

Lines changed: 209 additions & 54 deletions

File tree

CodeBeam.Website/CodeBeam.Website.Client/Brand/CodeBeamBrand.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
namespace CodeBeam.Website.Client.Brand;
22

3-
public static class CodeBeamBrand
3+
public static class CodeBeamBrands
44
{
5+
public static string CodeBeam = @"<svg style=""width:36px;height:36px"" viewBox=""0 0 24 24"">
6+
<path d=""M15.13,13.17,15.88,12l-1.54-.34,7.88-2.83A9.24,9.24,0,0,0,18.09,5a7.52,7.52,0,1,0,4.33,9.72,9.07,9.07,0,0,0,0-5.36Z""/><path d=""M.22,12a12,12,0,0,0,23.56,3.24,9.17,9.17,0,1,1-.21-7.15A12,12,0,0,0,.22,12""/></svg>";
7+
58
public static string UltimateAuth = @"<svg viewBox=""0 0 200 240"" xmlns=""http://www.w3.org/2000/svg"">
69
<path fill=""#00072d""
710
d=""M32.39,14.07H167.61c11.27,0,18,6.76,18,18V133.52c0,22.54-58.59,69.87-85.64,92.41-27-22.54-85.64-69.87-85.64-92.41V32.1C14.36,20.83,21.12,14.07,32.39,14.07Z""/>

CodeBeam.Website/CodeBeam.Website.Client/Layout/MainLayout.razor

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
@inject NavigationManager Nav
44
@inject IJSRuntime JS
55

6-
@rendermode @(new InteractiveAutoRenderMode(prerender: false))
7-
86
<MudThemeProvider @ref="@_mudThemeProvider" Theme="_codeBeamTheme" @bind-IsDarkMode="@_isDarkMode" />
97
<MudPopoverProvider />
108
<MudDialogProvider />
@@ -16,30 +14,31 @@
1614
<div class="cb-mobile">
1715
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Primary" Edge="Edge.Start" OnClick="@(() => _isOpen = !_isOpen)" />
1816
</div>
19-
<MudIcon Class="cursor-pointer" Icon="@_codeBeamSvg" Color="Color.Primary" @onclick="@(() => Nav.NavigateTo("/#home"))" />
17+
<MudIcon Class="cursor-pointer" Icon="@CodeBeamBrands.CodeBeam" Color="Color.Primary" @onclick="@(() => Nav.NavigateTo("/#home"))" />
2018
<MudText Class="ml-2 cursor-pointer" Style="user-select: none" Typo="Typo.h6" Color="Color.Primary" Align="Align.Center" @onclick="@(() => Nav.NavigateTo("/#home"))">CodeBeam</MudText>
2119
<MudSpacer />
2220
<div class="cb-desktop">
2321
<MudStack Row="true" AlignItems="AlignItems.Center" Justify="Justify.Center" Spacing="6">
2422
<MudMenu Class="@(!RendererInfo.IsInteractive ? "fade-right delay-1" : null)" ActivationEvent="MouseEvent.MouseOver" Dense="true" PopoverClass="mud-theme-primary" RelativeWidth="DropdownWidth.Relative">
2523
<ActivatorContent>
26-
<MudText Class="pa-2" Color="Color.Primary"><MudLink Href="/#vision" Underline="Underline.None">Vision</MudLink></MudText>
24+
<MudText Color="Color.Primary"><MudLink Class="pa-2" Href="/#vision" Underline="Underline.None">Vision</MudLink></MudText>
2725
</ActivatorContent>
2826
</MudMenu>
2927
<MudMenu Class="@(!RendererInfo.IsInteractive ? "fade-right delay-2" : null)" ActivationEvent="MouseEvent.MouseOver" Dense="true" PopoverClass="mud-theme-primary" AnchorOrigin="Origin.BottomCenter" TransformOrigin="Origin.TopCenter">
3028
<ActivatorContent>
31-
<MudText Class="cb-primary-hover cb-transition pa-2" Color="Color.Primary">Products</MudText>
29+
<MudText Color="Color.Primary"><MudLink Class="cb-primary-hover cb-transition pa-2" Underline="Underline.None" Href="/#products">Products</MudLink></MudText>
3230
</ActivatorContent>
3331
<ChildContent>
3432
<MudMenuItem Class="cb-menu-item" Href="/#ultimateauth">
3533
<MudStack Class="mud-width-full" Row="true" AlignItems="AlignItems.Center">
36-
<MudIcon Icon="@CodeBeamBrand.UltimateAuth" />
34+
<MudIcon Icon="@CodeBeamBrands.UltimateAuth" />
3735
<MudStack Spacing="0">
3836
<MudText><b>UltimateAuth</b></MudText>
3937
<MudText Typo="Typo.subtitle2">Modern & Unified Auth Framework for .NET</MudText>
4038
</MudStack>
4139
</MudStack>
4240
</MudMenuItem>
41+
<MudDivider Class="my-2" />
4342
<MudMenuItem Class="cb-menu-item mt-4" Href="/#mudblazor-extensions">
4443
<MudStack Class="mud-width-full" Row="true" AlignItems="AlignItems.Center">
4544
<MudIcon Icon="@Icons.Custom.Brands.MudBlazor" />
@@ -49,7 +48,7 @@
4948
</MudStack>
5049
</MudStack>
5150
</MudMenuItem>
52-
<MudMenuItem Class="cb-menu-item mt-4">
51+
<MudMenuItem Class="cb-menu-item mt-4" Href="/#bcss">
5352
<MudStack Class="mud-width-full" Row="true" AlignItems="AlignItems.Center">
5453
<MudImage Src="BCSS.jpg" Style="width: 24px" Fluid="true" />
5554
<MudStack Spacing="0">
@@ -58,7 +57,7 @@
5857
</MudStack>
5958
</MudStack>
6059
</MudMenuItem>
61-
<MudMenuItem Class="cb-menu-item mt-4">
60+
<MudMenuItem Class="cb-menu-item mt-4" Href="/#googleapis">
6261
<MudStack Class="mud-width-full" Row="true" AlignItems="AlignItems.Center">
6362
<MudIcon Icon="@Icons.Material.Filled.Api" />
6463
<MudStack Spacing="0">
@@ -71,7 +70,7 @@
7170
</MudMenu>
7271
<MudMenu Class="@(!RendererInfo.IsInteractive ? "fade-right delay-3" : null)" ActivationEvent="MouseEvent.MouseOver" Dense="true" PopoverClass="mud-theme-primary" RelativeWidth="DropdownWidth.Relative">
7372
<ActivatorContent>
74-
<MudText Class="antbar-primary-hover antbar-transition pa-2" Color="Color.Primary">Donate</MudText>
73+
<MudText Color="Color.Primary"><MudLink Class="pa-2" Underline="Underline.None" Href="/#donate">Donate</MudLink></MudText>
7574
</ActivatorContent>
7675
</MudMenu>
7776
</MudStack>
@@ -105,9 +104,6 @@
105104
private MudThemeProvider _mudThemeProvider = null!;
106105
private bool _isOpen;
107106

108-
const string _codeBeamSvg = @"<svg style=""width:36px;height:36px"" viewBox=""0 0 24 24"">
109-
<path d=""M15.13,13.17,15.88,12l-1.54-.34,7.88-2.83A9.24,9.24,0,0,0,18.09,5a7.52,7.52,0,1,0,4.33,9.72,9.07,9.07,0,0,0,0-5.36Z""/><path d=""M.22,12a12,12,0,0,0,23.56,3.24,9.17,9.17,0,1,1-.21-7.15A12,12,0,0,0,.22,12""/></svg>";
110-
111107
MudTheme _codeBeamTheme = new MudTheme()
112108
{
113109
PaletteLight = new PaletteLight()

CodeBeam.Website/CodeBeam.Website.Client/Pages/Counter.razor

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)