Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Mar 17, 2024
1 parent 62ed4a0 commit a5c77bd
Show file tree
Hide file tree
Showing 5 changed files with 231 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected override async Task OnInitAsync()
navItems.Add(new()
{
Text = Localizer[nameof(AppStrings.AboutTitle)],
IconName = BitIconName.Help,
IconName = BitIconName.HelpMirrored,
Url = "/about",
});
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
@page "/about"
@inherits AppComponentBase

For Razor pages that are exclusively dependent on native Maui features for Android, iOS, Windows, and macOS functionality,
<br />
consider using Client/Maui project instead of placing them in Client/Core project.
<br />
This approach allows direct access to native features without the need for dependency injection (DI) or publish-subscribe messaging patterns.
<div class="page-container">
<section class="page-section about-section">
<h1 class="about-section-title">@Localizer[nameof(AppStrings.AboutTitle)]</h1>

<BitStack class="container"
Horizontal
VerticalAlign="BitStackAlignment.Center"
HorizontalAlign="BitStackAlignment.SpaceAround">
<BitLabel>@appName</BitLabel>
<BitLabel>@appVersion</BitLabel>
<BitLabel>@processId</BitLabel>
</BitStack>
<div class="about-section-desc">
For Razor pages that are exclusively dependent on native Maui features for Android, iOS, Windows, and macOS functionality,
<br />
consider using Client/Maui project instead of placing them in Client/Core project.
<br />
This approach allows direct access to native features without the need for dependency injection (DI) or publish-subscribe messaging patterns.
</div>

<BitStack class="values"
VerticalAlign="BitStackAlignment.Center"
HorizontalAlign="BitStackAlignment.SpaceAround">
<BitStack Horizontal Gap=".5rem">
<BitLabel>App Name:</BitLabel>
<BitLabel>@appName</BitLabel>
</BitStack>
<BitStack Horizontal Gap=".5rem">
<BitLabel>App Version:</BitLabel>
<BitLabel>@appVersion</BitLabel>
</BitStack>
<BitStack Horizontal Gap=".5rem">
<BitLabel>Process Id:</BitLabel>
<BitLabel>@processId</BitLabel>
</BitStack>
</BitStack>
</section>
</div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,88 @@
.container {
@import "../../../Boilerplate.Client.Core/Styles/abstracts/_media-queries.scss";

.values {
background: #71afe5;
height: 15rem
height: 15rem;
width: 100%;
}

.page-container {
width: 100%;
display: flex;
align-items: center;
padding: 0 rem2(16px);
flex-flow: column nowrap;
justify-content: flex-start;
}

.page-section {
width: 100%;
}

.about-section {
width: 100%;
display: flex;
align-items: center;
padding: rem2(144px) 0;
flex-flow: column nowrap;
justify-content: flex-start;

@include lt-xl {
padding: rem2(130px) 0;
}

@include sm {
padding: rem2(120px) 0;
}
}

.about-section-title {
font-weight: bold;
text-align: center;
font-size: rem2(42px);
line-height: rem2(62px);
margin-bottom: rem2(32px);

@include lg {
font-size: rem2(34px);
line-height: rem2(56px);
margin-bottom: rem2(24px);
}

@include md {
font-size: rem2(26px);
line-height: rem2(44px);
margin-bottom: rem2(24px);
}

@include sm {
font-size: rem2(24px);
line-height: rem2(40px);
margin-bottom: rem2(16px);
}
}

.about-section-desc {
font-size: rem2(16px);
max-width: rem2(1232px);
line-height: rem2(40px);
margin-bottom: rem2(40px);

@include lg {
max-width: rem2(821px);
line-height: rem2(32px);
margin-bottom: rem2(38px);
}

@include md {
max-width: rem2(572px);
line-height: rem2(28px);
margin-bottom: rem2(32px);
}

@include sm {
max-width: 100%;
line-height: rem2(24px);
margin-bottom: rem2(32px);
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
@page "/about"
@inherits AppComponentBase

For Razor pages that are exclusively dependent on Windows sdk functionality,
<br />
consider using Client/Windows project instead of placing them in Client/Core project.
<br />
This approach allows direct access to native features without the need for dependency injection (DI) or publish-subscribe messaging patterns.
<div class="page-container">
<section class="page-section about-section">
<h1 class="about-section-title">@Localizer[nameof(AppStrings.AboutTitle)]</h1>

<BitStack class="container"
Horizontal
VerticalAlign="BitStackAlignment.Center"
HorizontalAlign="BitStackAlignment.SpaceAround">
<BitLabel>@appName</BitLabel>
<BitLabel>@appVersion</BitLabel>
<BitLabel>@processId</BitLabel>
</BitStack>
<div class="about-section-desc">
For Razor pages that are exclusively dependent on native Maui features for Android, iOS, Windows, and macOS functionality,
<br />
consider using Client/Maui project instead of placing them in Client/Core project.
<br />
This approach allows direct access to native features without the need for dependency injection (DI) or publish-subscribe messaging patterns.
</div>

<BitStack class="values"
VerticalAlign="BitStackAlignment.Center"
HorizontalAlign="BitStackAlignment.SpaceAround">
<BitStack Horizontal Gap=".5rem">
<BitLabel>App Name:</BitLabel>
<BitLabel>@appName</BitLabel>
</BitStack>
<BitStack Horizontal Gap=".5rem">
<BitLabel>App Version:</BitLabel>
<BitLabel>@appVersion</BitLabel>
</BitStack>
<BitStack Horizontal Gap=".5rem">
<BitLabel>Process Id:</BitLabel>
<BitLabel>@processId</BitLabel>
</BitStack>
</BitStack>
</section>
</div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,88 @@
.container {
@import "../../../Boilerplate.Client.Core/Styles/abstracts/_media-queries.scss";

.values {
background: #71afe5;
height: 15rem
height: 15rem;
width: 100%;
}

.page-container {
width: 100%;
display: flex;
align-items: center;
padding: 0 rem2(16px);
flex-flow: column nowrap;
justify-content: flex-start;
}

.page-section {
width: 100%;
}

.about-section {
width: 100%;
display: flex;
align-items: center;
padding: rem2(144px) 0;
flex-flow: column nowrap;
justify-content: flex-start;

@include lt-xl {
padding: rem2(130px) 0;
}

@include sm {
padding: rem2(120px) 0;
}
}

.about-section-title {
font-weight: bold;
text-align: center;
font-size: rem2(42px);
line-height: rem2(62px);
margin-bottom: rem2(32px);

@include lg {
font-size: rem2(34px);
line-height: rem2(56px);
margin-bottom: rem2(24px);
}

@include md {
font-size: rem2(26px);
line-height: rem2(44px);
margin-bottom: rem2(24px);
}

@include sm {
font-size: rem2(24px);
line-height: rem2(40px);
margin-bottom: rem2(16px);
}
}

.about-section-desc {
font-size: rem2(16px);
max-width: rem2(1232px);
line-height: rem2(40px);
margin-bottom: rem2(40px);

@include lg {
max-width: rem2(821px);
line-height: rem2(32px);
margin-bottom: rem2(38px);
}

@include md {
max-width: rem2(572px);
line-height: rem2(28px);
margin-bottom: rem2(32px);
}

@include sm {
max-width: 100%;
line-height: rem2(24px);
margin-bottom: rem2(32px);
}
}

0 comments on commit a5c77bd

Please sign in to comment.