Skip to content

Commit 390a0a6

Browse files
committed
Refactor layout components in Blazor application
Restructured the layout in `DemosMainLayout.razor` and `MainLayout.razor` to improve styling and organization. The `ContentSection` now wraps the `@Body` in a new `div` with the class `be-bulma-masthead`. Updated the footer placement within this new structure. Simplified the `Index.razor` layout by removing the `be-bulma-masthead` class, enhancing the visual presentation. NOTE: This commit message is auto-generated using GitHub Copilot.
1 parent 92542a5 commit 390a0a6

3 files changed

Lines changed: 17 additions & 18 deletions

File tree

BlazorExpress.ChartJS.Demo.RCL/Layout/DemosMainLayout.razor

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
@inherits MainLayoutBase
33

44
<BulmaLayout>
5-
65
<HeaderSection>
76
<WebsiteNavbar BrandImgSrc="@DemoStringConstants.StaticAssets_Icons_Logo_png"
87
BrandImgAltText="Blazor Express Logo"
98
ApplicationName="@DemoStringConstants.NugetPackageName" />
109
</HeaderSection>
11-
1210
<SidebarSection>
1311
<Menu @ref="menuRef" Class="be-bulma-page-menu" IsScrollable="true">
1412
@foreach (var group in linkGroups)
@@ -41,7 +39,6 @@
4139
}
4240
</Menu>
4341
</SidebarSection>
44-
4542
<ContentSection>
4643
<div class="p-5">
4744
<Button Class="bi bi-box-arrow-right menu-toggle-button ml-1 mt-0 mb-1" @onclick="ToggleSidebarSection" />

BlazorExpress.ChartJS.Demo.RCL/Layout/MainLayout.razor

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@
88
ApplicationName="@DemoStringConstants.NugetPackageName" />
99
</HeaderSection>
1010
<ContentSection>
11-
@Body
12-
<div class="container is-max-desktop mb-4">
13-
<MainLayoutBaseFooter Version="@Version"
14-
DotNetVersion="@DotNetVersion"
15-
DocsUrl="@DocsUrl"
16-
BlogUrl="@BlogUrl"
17-
GithubUrl="@GithubUrl"
18-
NugetUrl="@NuGetUrl"
19-
TwitterUrl="@TwitterUrl"
20-
LinkedInUrl="@LinkedInUrl"
21-
OpenCollectiveUrl="@OpenCollectiveUrl"
22-
GithubIssuesUrl="@GithubIssuesUrl"
23-
GithubDiscussionsUrl="@GithubDiscussionsUrl"
24-
StackoverflowUrl="@StackoverflowUrl" />
11+
<div class="be-bulma-masthead p-5">
12+
@Body
13+
<div class="container is-max-desktop mb-4">
14+
<MainLayoutBaseFooter Version="@Version"
15+
DotNetVersion="@DotNetVersion"
16+
DocsUrl="@DocsUrl"
17+
BlogUrl="@BlogUrl"
18+
GithubUrl="@GithubUrl"
19+
NugetUrl="@NuGetUrl"
20+
TwitterUrl="@TwitterUrl"
21+
LinkedInUrl="@LinkedInUrl"
22+
OpenCollectiveUrl="@OpenCollectiveUrl"
23+
GithubIssuesUrl="@GithubIssuesUrl"
24+
GithubDiscussionsUrl="@GithubDiscussionsUrl"
25+
StackoverflowUrl="@StackoverflowUrl" />
26+
</div>
2527
</div>
2628
</ContentSection>
2729
<FooterSection>

BlazorExpress.ChartJS.Demo.RCL/Pages/Home/Index.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PageMetaTags PageUrl="@pageUrl" Title="@metaTitle" Description="@metaDescription" ImageUrl="@imageUrl" />
44

5-
<div class="be-bulma-masthead has-text-centered">
5+
<div class="has-text-centered">
66
<div class="container is-max-desktop mb-4">
77
<div class="mb-6">
88
<div class="pt-6 mb-6">

0 commit comments

Comments
 (0)