-
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
231 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 29 additions & 13 deletions
42
...plate/Bit.Boilerplate/src/Client/Boilerplate.Client.Maui/Components/Pages/AboutPage.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
88 changes: 86 additions & 2 deletions
88
.../Bit.Boilerplate/src/Client/Boilerplate.Client.Maui/Components/Pages/AboutPage.razor.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
42 changes: 29 additions & 13 deletions
42
...te/Bit.Boilerplate/src/Client/Boilerplate.Client.Windows/Components/Pages/AboutPage.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
88 changes: 86 additions & 2 deletions
88
...t.Boilerplate/src/Client/Boilerplate.Client.Windows/Components/Pages/AboutPage.razor.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |