Skip to content

Commit aa2efa2

Browse files
committed
Update navigation, add Demos link, refactor Getting Started
- Added "Demos" link to navigation and footer; made "Docs" link internal. - Changed "demos", "docs", and "blog" URLs in appsettings.json to internal routes. - Exposed DemosUrl in MainLayoutBase and passed to footer. - Removed "Utilities" and "Color Utility" from Docs navigation. - Refactored Getting Started pages to use new <GettingStarted /> component. - Added GettingStarted.razor with documentation tables for all .NET versions. - Updated Getting Started routes to include "/demos" and "/docs". - Commented out DocsLink in ColorUtilDocumentation.razor. - Updated version references in comments to v3.5.0.
1 parent 92d94ad commit aa2efa2

14 files changed

Lines changed: 118 additions & 187 deletions

File tree

BlazorBootstrap.Demo.RCL/Components/Layout/DemosMainLayout.razor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
<h5>Links</h5>
4848
<ul class="list-unstyled">
4949
<li class="mb-2"><a href="/">Home</a></li>
50-
<li class="mb-2"><a href="@DocsUrl" target="_blank" rel="noopener">Docs</a></li><!--!-->
50+
<li class="mb-2"><a href="@DemosUrl" rel="noopener">Demos</a></li>
51+
<li class="mb-2"><a href="@DocsUrl" rel="noopener">Docs</a></li>
5152
<li class="mb-2"><a href="@BlogUrl" target="_blank" rel="noopener">Blog</a></li>
5253
<li class="mb-2"><a href="@GithubUrl" target="_blank" rel="noopener">GitHub</a></li>
5354
</ul>

BlazorBootstrap.Demo.RCL/Components/Layout/DocsMainLayout.razor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
<h5>Links</h5>
4848
<ul class="list-unstyled">
4949
<li class="mb-2"><a href="/">Home</a></li>
50-
<li class="mb-2"><a href="@DocsUrl" target="_blank" rel="noopener">Docs</a></li><!--!-->
50+
<li class="mb-2"><a href="@DemosUrl" rel="noopener">Demos</a></li>
51+
<li class="mb-2"><a href="@DocsUrl" rel="noopener">Docs</a></li>
5152
<li class="mb-2"><a href="@BlogUrl" target="_blank" rel="noopener">Blog</a></li>
5253
<li class="mb-2"><a href="@GithubUrl" target="_blank" rel="noopener">GitHub</a></li>
5354
</ul>

BlazorBootstrap.Demo.RCL/Components/Layout/DocsMainLayout.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ internal override IEnumerable<NavItem> GetNavItems()
7777
new(){ Id = "7", Text = "Services", IconName = IconName.WrenchAdjustableCircleFill, IconColor = IconColor.Success },
7878
new (){ Id = "700", Text = "Modal Service", Href = DemoRouteConstants.Docs_URL_ModalService, IconName = IconName.WindowStack, ParentId = "7" },
7979

80-
new(){ Id = "19", Text = "Utilities", IconName = IconName.GearWideConnected, IconColor = IconColor.Info },
81-
new (){ Id = "1900", Text = "Color Utility", Href = DemoRouteConstants.Docs_URL_ColorUtils, IconName = IconName.Palette2, ParentId = "19" },
80+
//new(){ Id = "19", Text = "Utilities", IconName = IconName.GearWideConnected, IconColor = IconColor.Info },
81+
//new (){ Id = "1900", Text = "Color Utility", Href = DemoRouteConstants.Docs_URL_ColorUtils, IconName = IconName.Palette2, ParentId = "19" },
8282
};
8383

8484
return navItems;

BlazorBootstrap.Demo.RCL/Components/Layout/EmptyLayout.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282

8383
<MainLayoutBaseFooter Version="@Version"
8484
DotNetVersion="@DotNetVersion"
85+
DemosUrl="@DemosUrl"
8586
DocsUrl="@DocsUrl"
8687
BlogUrl="@BlogUrl"
8788
GithubUrl="@GithubUrl"

BlazorBootstrap.Demo.RCL/Components/Layout/MainLayout.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<h5>Links</h5>
4848
<ul class="list-unstyled">
4949
<li class="mb-2"><a href="/">Home</a></li>
50-
<li class="mb-2"><a href="@DocsUrl" target="_blank" rel="noopener">Docs</a></li><!--!-->
50+
<li class="mb-2"><a href="@DocsUrl" rel="noopener">Docs</a></li>
5151
<li class="mb-2"><a href="@BlogUrl" target="_blank" rel="noopener">Blog</a></li>
5252
<li class="mb-2"><a href="@GithubUrl" target="_blank" rel="noopener">GitHub</a></li>
5353
</ul>

BlazorBootstrap.Demo.RCL/Components/Layout/MainLayoutBase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ public class MainLayoutBase : LayoutComponentBase
44
{
55
internal string version = default!;
66
internal string dotNetVersion = default!;
7+
internal string demosUrl = default!;
78
internal string docsUrl = default!;
89
internal string blogUrl = default!;
910
internal string githubUrl = default!;
@@ -25,6 +26,7 @@ protected override void OnInitialized()
2526
{
2627
version = $"v{Configuration["version"]}"; // example: v0.6.1
2728
dotNetVersion = $".NET {Configuration["dotNetVersion"]}"; // example: 9.0.0
29+
demosUrl = $"{Configuration["urls:demos"]}";
2830
docsUrl = $"{Configuration["urls:docs"]}";
2931
blogUrl = $"{Configuration["urls:blog"]}";
3032
githubUrl = $"{Configuration["urls:github"]}";
@@ -49,6 +51,7 @@ internal virtual async Task<Sidebar2DataProviderResult> Sidebar2DataProvider(Sid
4951

5052
public string Version => version;
5153
public string DotNetVersion => dotNetVersion;
54+
public string DemosUrl => demosUrl;
5255
public string DocsUrl => docsUrl;
5356
public string BlogUrl => blogUrl;
5457
public string GithubUrl => githubUrl;

BlazorBootstrap.Demo.RCL/Components/Layout/MainLayoutBaseFooter.razor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
<h5>Links</h5>
2424
<ul class="list-unstyled">
2525
<li class="mb-2"><a href="/">Home</a></li>
26-
<li class="mb-2"><a href="@DocsUrl" target="_blank" rel="noopener">Docs</a></li><!--!-->
26+
<li class="mb-2"><a href="@DemosUrl" rel="noopener">Demos</a></li>
27+
<li class="mb-2"><a href="@DocsUrl" rel="noopener">Docs</a></li>
2728
<li class="mb-2"><a href="@BlogUrl" target="_blank" rel="noopener">Blog</a></li>
2829
<li class="mb-2"><a href="@GithubUrl" target="_blank" rel="noopener">GitHub</a></li>
2930
</ul>

BlazorBootstrap.Demo.RCL/Components/Layout/MainLayoutBaseFooter.razor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ public partial class MainLayoutBaseFooter : ComponentBase
44
{
55
[Parameter] public string? Version { get; set; }
66
[Parameter] public string? DotNetVersion { get; set; }
7+
[Parameter] public string? DemosUrl { get; set; }
78
[Parameter] public string? DocsUrl { get; set; }
89
[Parameter] public string? BlogUrl { get; set; }
910
[Parameter] public string? GithubUrl { get; set; }
Lines changed: 4 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
@page "/getting-started/blazor-webassembly"
1+
@page "/demos"
2+
@page "/getting-started/blazor-webassembly"
23
@page "/getting-started/blazor-server"
34
@page "/getting-started/maui-blazor"
45
@attribute [Route(pageUrl)]
@@ -12,92 +13,7 @@
1213
ImageUrl="@imageUrl" />
1314

1415
<Section Size="HeadingSize.H2" Name="Documentation" PageUrl="@pageUrl" Link="documentation">
15-
<div class="mb-3">
16-
Please find the getting started documentation links, corresponding to each .NET version and project type, listed below:
17-
</div>
18-
19-
<table class="table">
20-
<thead>
21-
<tr>
22-
<th scope="col" style="width:20px;">#</th>
23-
<th scope="col" style="width:115px;">.NET Version</th>
24-
<th scope="col">Documentation Link</th>
25-
</tr>
26-
</thead>
27-
<tbody class="table-group-divider">
28-
<tr>
29-
<td>1</td>
30-
<td>.NET 8</td>
31-
<td><a href="https://docs.blazorbootstrap.com/getting-started/blazor-webassembly-net-8" target="_blank">Blazor WebAssembly (.NET 8)</a></td>
32-
</tr>
33-
<tr>
34-
<td>2</td>
35-
<td>.NET 8</td>
36-
<td><a href="https://docs.blazorbootstrap.com/getting-started/blazor-webapp-server-global-net-8" target="_blank">Blazor WebApp (.NET 8) - Interactive render mode Server - Global location</a></td>
37-
</tr>
38-
<tr>
39-
<td>3</td>
40-
<td>.NET 8</td>
41-
<td><a href="https://docs.blazorbootstrap.com/getting-started/blazor-webapp-auto-global-net-8" target="_blank">Blazor WebApp (.NET 8) - Interactive render mode Auto - Global location</a></td>
42-
</tr>
43-
<tr>
44-
<td>4</td>
45-
<td>.NET 8</td>
46-
<td><a href="https://docs.blazorbootstrap.com/getting-started/maui-blazor-net-8" target="_blank">MAUI Blazor Hybrid App (.NET 8)</a></td>
47-
</tr>
48-
</tbody>
49-
</table>
50-
51-
52-
<table class="table">
53-
<thead>
54-
<tr>
55-
<th scope="col" style="width:20px;">#</th>
56-
<th scope="col" style="width:115px;">.NET Version</th>
57-
<th scope="col">Documentation Link</th>
58-
</tr>
59-
</thead>
60-
<tbody class="table-group-divider">
61-
<tr>
62-
<td>1</td>
63-
<td>.NET 7</td>
64-
<td><a href="https://docs.blazorbootstrap.com/getting-started/blazor-webassembly-net-7" target="_blank">Blazor WebAssembly (.NET 7)</a></td>
65-
</tr>
66-
<tr>
67-
<td>2</td>
68-
<td>.NET 7</td>
69-
<td><a href="https://docs.blazorbootstrap.com/getting-started/blazor-server-net-7" target="_blank">Blazor Server (.NET 7)</a></td>
70-
</tr>
71-
<tr>
72-
<td>3</td>
73-
<td>.NET 7</td>
74-
<td><a href="https://docs.blazorbootstrap.com/getting-started/maui-blazor-net-7" target="_blank">MAUI Blazor Hybrid App (.NET 7)</a></td>
75-
</tr>
76-
</tbody>
77-
</table>
78-
79-
80-
<table class="table">
81-
<thead>
82-
<tr>
83-
<th scope="col" style="width:20px;">#</th>
84-
<th scope="col" style="width:115px;">.NET Version</th>
85-
<th scope="col">Documentation Link</th>
86-
</tr>
87-
</thead>
88-
<tbody class="table-group-divider">
89-
<tr>
90-
<td>1</td>
91-
<td>.NET 6</td>
92-
<td><a href="https://docs.blazorbootstrap.com/getting-started/blazor-webassembly-net-6" target="_blank">Blazor WebAssembly (.NET 6)</a></td>
93-
</tr>
94-
<tr>
95-
<td>2</td>
96-
<td>.NET 6</td>
97-
<td><a href="https://docs.blazorbootstrap.com/getting-started/blazor-server-net-6" target="_blank">Blazor Server (.NET 6)</a></td>
98-
</tr>
99-
</tbody>
100-
</table>
16+
<GettingStarted />
10117
</Section>
10218

10319
@code {
@@ -113,7 +29,7 @@
11329

11430
protected override void OnInitialized()
11531
{
116-
version = Configuration["version"]; // example: v0.6.1
32+
version = Configuration["version"]; // example: v3.5.0
11733
base.OnInitialized();
11834
}
11935
}

BlazorBootstrap.Demo.RCL/Components/Pages/Demos/Utils/ColorUtil/ColorUtilDocumentation.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
MetaDescription="@metaDescription"
99
ImageUrl="@imageUrl" />
1010

11-
<DocsLink Href="@DemoRouteConstants.Docs_URL_ColorUtils" />
11+
@* <DocsLink Href="@DemoRouteConstants.Docs_URL_ColorUtils" /> *@
1212

1313
<Section Size="HeadingSize.H2" Name="Categorical 6-color" PageUrl="@pageUrl" Link="categorical-6-color">
1414
<div class="mt-4">

0 commit comments

Comments
 (0)