|
1 | | -@inherits LayoutComponentBase |
| 1 | +@using CodeBeam.Website.Client.Brand |
| 2 | +@inherits LayoutComponentBase |
| 3 | +@inject NavigationManager Nav |
| 4 | +@inject IJSRuntime JS |
| 5 | + |
| 6 | +@rendermode @(new InteractiveAutoRenderMode(prerender: false)) |
2 | 7 |
|
3 | 8 | <MudThemeProvider @ref="@_mudThemeProvider" Theme="_codeBeamTheme" @bind-IsDarkMode="@_isDarkMode" /> |
4 | 9 | <MudPopoverProvider /> |
5 | 10 | <MudDialogProvider /> |
6 | 11 | <MudSnackbarProvider /> |
7 | 12 |
|
| 13 | +<a id="home"></a> |
8 | 14 | <MudLayout Style="@(_isDarkMode ? "background: radial-gradient(circle at top, #2E2D4D, #1e1d35)" : null)"> |
9 | 15 | <MudAppBar Class="cb-blur" Color="Color.Transparent" Dense="true" Elevation="0"> |
10 | 16 | <div class="cb-mobile"> |
11 | 17 | <MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Primary" Edge="Edge.Start" OnClick="@(() => _isOpen = !_isOpen)" /> |
12 | 18 | </div> |
13 | | - <MudIcon Icon="@_codeBeamSvg" Color="Color.Primary" /> |
14 | | - <MudText Class="ml-2" Typo="Typo.h6" Color="Color.Primary" Align="Align.Center">CodeBeam</MudText> |
| 19 | + <MudIcon Class="cursor-pointer" Icon="@_codeBeamSvg" Color="Color.Primary" @onclick="@(() => Nav.NavigateTo("/#home"))" /> |
| 20 | + <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> |
15 | 21 | <MudSpacer /> |
16 | 22 | <div class="cb-desktop"> |
17 | 23 | <MudStack Row="true" AlignItems="AlignItems.Center" Justify="Justify.Center" Spacing="6"> |
18 | | - <MudMenu ActivationEvent="MouseEvent.MouseOver" Dense="true" PopoverClass="mud-theme-primary" RelativeWidth="DropdownWidth.Relative"> |
| 24 | + <MudMenu Class="@(!RendererInfo.IsInteractive ? "fade-right delay-1" : null)" ActivationEvent="MouseEvent.MouseOver" Dense="true" PopoverClass="mud-theme-primary" RelativeWidth="DropdownWidth.Relative"> |
19 | 25 | <ActivatorContent> |
20 | | - <MudText Class="pa-2" Color="Color.Primary">Vision</MudText> |
| 26 | + <MudText Class="pa-2" Color="Color.Primary"><MudLink Href="/#vision" Underline="Underline.None">Vision</MudLink></MudText> |
21 | 27 | </ActivatorContent> |
22 | 28 | </MudMenu> |
23 | | - <MudMenu ActivationEvent="MouseEvent.MouseOver" Dense="true" PopoverClass="mud-theme-primary" AnchorOrigin="Origin.BottomCenter" TransformOrigin="Origin.TopCenter"> |
| 29 | + <MudMenu Class="@(!RendererInfo.IsInteractive ? "fade-right delay-2" : null)" ActivationEvent="MouseEvent.MouseOver" Dense="true" PopoverClass="mud-theme-primary" AnchorOrigin="Origin.BottomCenter" TransformOrigin="Origin.TopCenter"> |
24 | 30 | <ActivatorContent> |
25 | 31 | <MudText Class="cb-primary-hover cb-transition pa-2" Color="Color.Primary">Products</MudText> |
26 | 32 | </ActivatorContent> |
27 | 33 | <ChildContent> |
28 | | - <MudMenuItem Class="cb-menu-item"> |
| 34 | + <MudMenuItem Class="cb-menu-item" Href="/#ultimateauth"> |
29 | 35 | <MudStack Class="mud-width-full" Row="true" AlignItems="AlignItems.Center"> |
30 | | - <MudIcon Icon="@_uauth" /> |
| 36 | + <MudIcon Icon="@CodeBeamBrand.UltimateAuth" /> |
31 | 37 | <MudStack Spacing="0"> |
32 | 38 | <MudText><b>UltimateAuth</b></MudText> |
33 | 39 | <MudText Typo="Typo.subtitle2">Modern & Unified Auth Framework for .NET</MudText> |
34 | 40 | </MudStack> |
35 | 41 | </MudStack> |
36 | 42 | </MudMenuItem> |
37 | | - <MudMenuItem Class="cb-menu-item mt-4"> |
| 43 | + <MudMenuItem Class="cb-menu-item mt-4" Href="/#mudblazor-extensions"> |
38 | 44 | <MudStack Class="mud-width-full" Row="true" AlignItems="AlignItems.Center"> |
39 | 45 | <MudIcon Icon="@Icons.Custom.Brands.MudBlazor" /> |
40 | 46 | <MudStack Spacing="0"> |
|
63 | 69 | </MudMenuItem> |
64 | 70 | </ChildContent> |
65 | 71 | </MudMenu> |
66 | | - <MudMenu ActivationEvent="MouseEvent.MouseOver" Dense="true" PopoverClass="mud-theme-primary" RelativeWidth="DropdownWidth.Relative"> |
| 72 | + <MudMenu Class="@(!RendererInfo.IsInteractive ? "fade-right delay-3" : null)" ActivationEvent="MouseEvent.MouseOver" Dense="true" PopoverClass="mud-theme-primary" RelativeWidth="DropdownWidth.Relative"> |
67 | 73 | <ActivatorContent> |
68 | 74 | <MudText Class="antbar-primary-hover antbar-transition pa-2" Color="Color.Primary">Donate</MudText> |
69 | 75 | </ActivatorContent> |
|
75 | 81 | <MudToggleIconButton @bind-Toggled="@_isDarkMode" Icon="@Icons.Material.Filled.DarkMode" ToggledIcon="@Icons.Material.Filled.LightMode" Color="Color.Primary" ToggledColor="Color.Primary" /> |
76 | 82 | </MudAppBar> |
77 | 83 |
|
78 | | - <MudDrawer @bind-Open="_isOpen"> |
| 84 | + <MudDrawer @bind-Open="_isOpen" Breakpoint="Breakpoint.None" ClipMode="DrawerClipMode.Always" Variant="DrawerVariant.Temporary"> |
79 | 85 | <MudNavMenu> |
80 | 86 | <MudNavLink Href="/">Home</MudNavLink> |
81 | 87 | <MudNavLink Href="/#vision">Vision</MudNavLink> |
|
102 | 108 | const string _codeBeamSvg = @"<svg style=""width:36px;height:36px"" viewBox=""0 0 24 24""> |
103 | 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>"; |
104 | 110 |
|
105 | | - const string _uauth = @"<svg viewBox=""0 0 200 240"" xmlns=""http://www.w3.org/2000/svg""> |
106 | | - <path fill=""#00072d"" |
107 | | - 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""/> |
108 | | -
|
109 | | - <path fill=""#f6f5ae"" fill-rule=""evenodd"" |
110 | | - d=""M120.43,39.44H79.57A11.67,11.67,0,0,0,67.9,51.11V77.37 |
111 | | -A11.67,11.67,0,0,0,79.57,89H90.51l3.89,3.9v5.32l-3.8,3.81v81.41H99 |
112 | | -v-5.33h13.69V169H108.1v-3.8H99C99,150.76,111.9,153,111.9,153 |
113 | | -V99.79h-8V93.32L108.19,89h12.24 |
114 | | -A11.67,11.67,0,0,0,132.1,77.37V51.11 |
115 | | -A11.67,11.67,0,0,0,120.43,39.44Z |
116 | | -
|
117 | | -M79.57,48.19h5.84a2.92,2.92 0 0 1 2.92,2.92 |
118 | | -v5.84a2.92,2.92 0 0 1 -2.92,2.92 |
119 | | -h-5.84a2.91,2.91 0 0 1 -2.91,-2.92 |
120 | | -v-5.84a2.91,2.91 0 0 1 2.91,-2.92Z |
121 | | -
|
122 | | -M79.57,68.62h5.84a2.92,2.92 0 0 1 2.92,2.92 |
123 | | -v5.83a2.92,2.92 0 0 1 -2.92,2.92 |
124 | | -h-5.84a2.91,2.91 0 0 1 -2.91,-2.92 |
125 | | -v-5.83a2.91,2.91 0 0 1 2.91,-2.92Z |
126 | | -
|
127 | | -M114.59,48.19h5.84a2.92,2.92 0 0 1 2.91,2.92 |
128 | | -v5.84a2.91,2.91 0 0 1 -2.91,2.91 |
129 | | -h-5.84a2.92,2.92 0 0 1 -2.92,-2.91 |
130 | | -v-5.84a2.92,2.92 0 0 1 2.92,-2.92Z |
131 | | -
|
132 | | -M114.59,68.62h5.84a2.92,2.92 0 0 1 2.91,2.92 |
133 | | -v5.83a2.91,2.91 0 0 1 -2.91,2.92 |
134 | | -h-5.84a2.92,2.92 0 0 1 -2.92,-2.92 |
135 | | -v-5.83a2.92,2.92 0 0 1 2.92,-2.92Z""/> |
136 | | -</svg>"; |
137 | | - |
138 | 111 | MudTheme _codeBeamTheme = new MudTheme() |
139 | 112 | { |
140 | 113 | PaletteLight = new PaletteLight() |
|
0 commit comments