Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add id to sections for linking in Demos page of Platform website (#10253) #10256

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<br /><br /><br />

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

<br /><br /><br /><br />

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

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

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

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

<BitText Typography="BitTypography.H4" Gutter>BlazorUI</BitText>
<BitText id="blazorui" Style="scroll-margin-top:100px" Typography="BitTypography.H4" Gutter>BlazorUI</BitText>
<div class="page-flex-container">
<div class="page-content-container">
<img class="template-img dark-image" src="/images/demos/blazorui-dark.webp" alt="BlazorUI sample" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ private void SetNavItems()
{
var currentUrl = navigationManager.Uri.Replace(navigationManager.BaseUri, "/", StringComparison.InvariantCultureIgnoreCase);

isTemplateDocRoute = currentUrl.Contains("templates") || currentUrl.Contains("boilerplate");
isBswupDocRoute = currentUrl.Contains("bswup");
isBesqlDocRoute = currentUrl.Contains("besql");
isButilDocRoute = currentUrl.Contains("butil");
isLcncDocRoute = currentUrl.Contains("lowcode-nocode");
isTemplateDocRoute = currentUrl.Contains("/templates") || currentUrl.Contains("/boilerplate");
isBswupDocRoute = currentUrl.Contains("/bswup");
isBesqlDocRoute = currentUrl.Contains("/besql");
isButilDocRoute = currentUrl.Contains("/butil");
isLcncDocRoute = currentUrl.Contains("/lowcode-nocode");
isDocsRoute = isTemplateDocRoute || isBswupDocRoute || isBesqlDocRoute || isButilDocRoute /*|| isLcncDocRoute*/;

navItems = isTemplateDocRoute ? templatesNavItems
Expand Down
Loading