Skip to content

Commit 8307b72

Browse files
committed
add id to sections for linking in Demos page of Platform website bitfoundation#10253
1 parent ace8bec commit 8307b72

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/DemosPage.razor

+6-6
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
<br /><br /><br />
5252

53-
<BitText Typography="BitTypography.H4" Gutter>Boilerplate</BitText>
53+
<BitText id="boilerplate" Style="scroll-margin-top:100px" Typography="BitTypography.H4" Gutter>Boilerplate</BitText>
5454
<BitText Gutter>
5555
The bit Boilerplate is a feature-packed project template that accelerates your development. Watch the video to see its built-in capabilities in action.
5656
</BitText>
@@ -77,7 +77,7 @@
7777

7878
<br /><br /><br /><br />
7979

80-
<BitText Typography="BitTypography.H4" Gutter>AdminPanel</BitText>
80+
<BitText id="adminpanel" Style="scroll-margin-top:100px" Typography="BitTypography.H4" Gutter>AdminPanel</BitText>
8181
<div class="page-flex-container">
8282
<div class="page-content-container">
8383
<img class="template-img dark-image" src="/images/demos/admin-dark.webp" alt="AdminPanel sample" />
@@ -96,7 +96,7 @@
9696
</div>
9797
</div>
9898

99-
<BitText Typography="BitTypography.H4" Gutter>Sales (still shaping up)</BitText>
99+
<BitText id="sales" Style="scroll-margin-top:100px" Typography="BitTypography.H4" Gutter>Sales (still shaping up)</BitText>
100100
<div class="page-flex-container">
101101
<div class="page-content-container">
102102
<img class="template-img dark-image" src="/images/demos/sales-dark.webp" alt="Sales sample" />
@@ -114,7 +114,7 @@
114114
</div>
115115
</div>
116116

117-
<BitText Typography="BitTypography.H4" Gutter>Todo</BitText>
117+
<BitText id="todo" Style="scroll-margin-top:100px" Typography="BitTypography.H4" Gutter>Todo</BitText>
118118
<div class="page-flex-container">
119119
<div class="page-content-container">
120120
<img class="template-img dark-image" src="/images/demos/todo-dark.webp" alt="Todo sample" />
@@ -133,7 +133,7 @@
133133
</div>
134134
</div>
135135

136-
<BitText Typography="BitTypography.H4" Gutter>Platform website</BitText>
136+
<BitText id="platform" Style="scroll-margin-top:100px" Typography="BitTypography.H4" Gutter>Platform website</BitText>
137137
<div class="page-flex-container">
138138
<div class="page-content-container">
139139
<img class="template-img dark-image" src="/images/demos/platform-dark.webp" alt="bitplatform website" />
@@ -149,7 +149,7 @@
149149
</div>
150150
</div>
151151

152-
<BitText Typography="BitTypography.H4" Gutter>BlazorUI</BitText>
152+
<BitText id="blazorui" Style="scroll-margin-top:100px" Typography="BitTypography.H4" Gutter>BlazorUI</BitText>
153153
<div class="page-flex-container">
154154
<div class="page-content-container">
155155
<img class="template-img dark-image" src="/images/demos/blazorui-dark.webp" alt="BlazorUI sample" />

src/Websites/Platform/src/Bit.Websites.Platform.Client/Shared/MainLayout.razor.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ private void SetNavItems()
9898
{
9999
var currentUrl = navigationManager.Uri.Replace(navigationManager.BaseUri, "/", StringComparison.InvariantCultureIgnoreCase);
100100

101-
isTemplateDocRoute = currentUrl.Contains("templates") || currentUrl.Contains("boilerplate");
102-
isBswupDocRoute = currentUrl.Contains("bswup");
103-
isBesqlDocRoute = currentUrl.Contains("besql");
104-
isButilDocRoute = currentUrl.Contains("butil");
105-
isLcncDocRoute = currentUrl.Contains("lowcode-nocode");
101+
isTemplateDocRoute = currentUrl.Contains("/templates") || currentUrl.Contains("/boilerplate");
102+
isBswupDocRoute = currentUrl.Contains("/bswup");
103+
isBesqlDocRoute = currentUrl.Contains("/besql");
104+
isButilDocRoute = currentUrl.Contains("/butil");
105+
isLcncDocRoute = currentUrl.Contains("/lowcode-nocode");
106106
isDocsRoute = isTemplateDocRoute || isBswupDocRoute || isBesqlDocRoute || isButilDocRoute /*|| isLcncDocRoute*/;
107107

108108
navItems = isTemplateDocRoute ? templatesNavItems

0 commit comments

Comments
 (0)