|
3 | 3 | @inject NavigationManager Nav |
4 | 4 | @inject IJSRuntime JS |
5 | 5 |
|
6 | | -@rendermode @(new InteractiveAutoRenderMode(prerender: false)) |
7 | | - |
8 | 6 | <MudThemeProvider @ref="@_mudThemeProvider" Theme="_codeBeamTheme" @bind-IsDarkMode="@_isDarkMode" /> |
9 | 7 | <MudPopoverProvider /> |
10 | 8 | <MudDialogProvider /> |
|
16 | 14 | <div class="cb-mobile"> |
17 | 15 | <MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Primary" Edge="Edge.Start" OnClick="@(() => _isOpen = !_isOpen)" /> |
18 | 16 | </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"))" /> |
20 | 18 | <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> |
21 | 19 | <MudSpacer /> |
22 | 20 | <div class="cb-desktop"> |
23 | 21 | <MudStack Row="true" AlignItems="AlignItems.Center" Justify="Justify.Center" Spacing="6"> |
24 | 22 | <MudMenu Class="@(!RendererInfo.IsInteractive ? "fade-right delay-1" : null)" ActivationEvent="MouseEvent.MouseOver" Dense="true" PopoverClass="mud-theme-primary" RelativeWidth="DropdownWidth.Relative"> |
25 | 23 | <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> |
27 | 25 | </ActivatorContent> |
28 | 26 | </MudMenu> |
29 | 27 | <MudMenu Class="@(!RendererInfo.IsInteractive ? "fade-right delay-2" : null)" ActivationEvent="MouseEvent.MouseOver" Dense="true" PopoverClass="mud-theme-primary" AnchorOrigin="Origin.BottomCenter" TransformOrigin="Origin.TopCenter"> |
30 | 28 | <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> |
32 | 30 | </ActivatorContent> |
33 | 31 | <ChildContent> |
34 | 32 | <MudMenuItem Class="cb-menu-item" Href="/#ultimateauth"> |
35 | 33 | <MudStack Class="mud-width-full" Row="true" AlignItems="AlignItems.Center"> |
36 | | - <MudIcon Icon="@CodeBeamBrand.UltimateAuth" /> |
| 34 | + <MudIcon Icon="@CodeBeamBrands.UltimateAuth" /> |
37 | 35 | <MudStack Spacing="0"> |
38 | 36 | <MudText><b>UltimateAuth</b></MudText> |
39 | 37 | <MudText Typo="Typo.subtitle2">Modern & Unified Auth Framework for .NET</MudText> |
40 | 38 | </MudStack> |
41 | 39 | </MudStack> |
42 | 40 | </MudMenuItem> |
| 41 | + <MudDivider Class="my-2" /> |
43 | 42 | <MudMenuItem Class="cb-menu-item mt-4" Href="/#mudblazor-extensions"> |
44 | 43 | <MudStack Class="mud-width-full" Row="true" AlignItems="AlignItems.Center"> |
45 | 44 | <MudIcon Icon="@Icons.Custom.Brands.MudBlazor" /> |
|
49 | 48 | </MudStack> |
50 | 49 | </MudStack> |
51 | 50 | </MudMenuItem> |
52 | | - <MudMenuItem Class="cb-menu-item mt-4"> |
| 51 | + <MudMenuItem Class="cb-menu-item mt-4" Href="/#bcss"> |
53 | 52 | <MudStack Class="mud-width-full" Row="true" AlignItems="AlignItems.Center"> |
54 | 53 | <MudImage Src="BCSS.jpg" Style="width: 24px" Fluid="true" /> |
55 | 54 | <MudStack Spacing="0"> |
|
58 | 57 | </MudStack> |
59 | 58 | </MudStack> |
60 | 59 | </MudMenuItem> |
61 | | - <MudMenuItem Class="cb-menu-item mt-4"> |
| 60 | + <MudMenuItem Class="cb-menu-item mt-4" Href="/#googleapis"> |
62 | 61 | <MudStack Class="mud-width-full" Row="true" AlignItems="AlignItems.Center"> |
63 | 62 | <MudIcon Icon="@Icons.Material.Filled.Api" /> |
64 | 63 | <MudStack Spacing="0"> |
|
71 | 70 | </MudMenu> |
72 | 71 | <MudMenu Class="@(!RendererInfo.IsInteractive ? "fade-right delay-3" : null)" ActivationEvent="MouseEvent.MouseOver" Dense="true" PopoverClass="mud-theme-primary" RelativeWidth="DropdownWidth.Relative"> |
73 | 72 | <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> |
75 | 74 | </ActivatorContent> |
76 | 75 | </MudMenu> |
77 | 76 | </MudStack> |
|
105 | 104 | private MudThemeProvider _mudThemeProvider = null!; |
106 | 105 | private bool _isOpen; |
107 | 106 |
|
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 | | - |
111 | 107 | MudTheme _codeBeamTheme = new MudTheme() |
112 | 108 | { |
113 | 109 | PaletteLight = new PaletteLight() |
|
0 commit comments