-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
77 changed files
with
1,000 additions
and
703 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
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
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
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 |
---|---|---|
|
@@ -22,6 +22,7 @@ main { | |
width: 100%; | ||
padding: 2rem; | ||
padding-top: 5rem; | ||
background-color: unset; | ||
} | ||
} | ||
|
||
|
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
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
34 changes: 33 additions & 1 deletion
34
...e/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/LoadingComponent.razor.cs
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,6 +1,38 @@ | ||
namespace Boilerplate.Client.Core.Components; | ||
| ||
namespace Boilerplate.Client.Core.Components; | ||
|
||
public partial class LoadingComponent | ||
{ | ||
[Parameter] public string Color { get; set; } = "#123456"; | ||
|
||
/// <summary> | ||
/// Renders the Loading component in full-screen mode that renders over all other components. | ||
/// </summary> | ||
[Parameter] public bool FullScreen { get; set; } | ||
|
||
/// <summary> | ||
/// This component is used in different parts of the application under varying conditions. | ||
/// | ||
/// 1. In App.razor, for non-prerendered applications, this component displays minimal content before | ||
/// Blazor fully loads. Since it doesn’t automatically get removed after the app loads, the z-index is set to -1 | ||
/// to ensure that once Blazor renders the main components, the loader falls behind the main content and becomes hidden. | ||
/// Additionally, the z-index will not change because @rendermode in App.razor is null, which prevents the OnAfterRender | ||
/// method from being invoked. | ||
/// | ||
/// 2. In other parts of the project, like during Authorizing and Navigating, the component is automatically | ||
/// removed from the screen, so a negative z-index is unnecessary and could actually cause it to be invisible. | ||
/// In these cases, it needs a higher z-index to ensure it appears above other components. The new z-index value | ||
/// is applied in the OnAfterRender lifecycle method. | ||
/// </summary> | ||
private string zIndex = "-1"; | ||
protected override void OnAfterRender(bool firstRender) | ||
{ | ||
if (firstRender) | ||
{ | ||
zIndex = "999999"; | ||
StateHasChanged(); | ||
} | ||
|
||
base.OnAfterRender(firstRender); | ||
} | ||
} |
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
6 changes: 0 additions & 6 deletions
6
...erplate.Client.Core/Components/Pages/Authorized/Offline/OfflineEditProfilePage.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,8 +1,2 @@ | ||
section { | ||
} | ||
|
||
::deep { | ||
form { | ||
width: min(25rem, 100%); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ilerplate.Client.Core/Components/Pages/Authorized/Products/AddOrEditProductModal.razor.cs
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
2 changes: 1 addition & 1 deletion
2
...Client/Boilerplate.Client.Core/Components/Pages/Authorized/Products/ProductsPage.razor.cs
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
4 changes: 3 additions & 1 deletion
4
...e/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Settings/Accordion.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
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
7 changes: 0 additions & 7 deletions
7
...oilerplate.Client.Core/Components/Pages/Authorized/Settings/ChangeEmailSection.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,10 +1,3 @@ | ||
section { | ||
width: 100%; | ||
} | ||
|
||
::deep { | ||
form { | ||
width: 100%; | ||
max-width: 27rem; | ||
} | ||
} |
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
7 changes: 0 additions & 7 deletions
7
...late.Client.Core/Components/Pages/Authorized/Settings/ChangePhoneNumberSection.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,10 +1,3 @@ | ||
section { | ||
width: 100%; | ||
} | ||
|
||
::deep { | ||
form { | ||
width: 100%; | ||
max-width: 27rem; | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...t/Boilerplate.Client.Core/Components/Pages/Authorized/Settings/DeleteAccountSection.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
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 |
---|---|---|
|
@@ -3,9 +3,3 @@ section { | |
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
::deep { | ||
.stack { | ||
max-width: 27rem; | ||
} | ||
} |
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
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
7 changes: 0 additions & 7 deletions
7
...nt/Boilerplate.Client.Core/Components/Pages/Authorized/Settings/ProfileSection.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,10 +1,3 @@ | ||
section { | ||
width: 100%; | ||
} | ||
|
||
::deep { | ||
form { | ||
width: 100%; | ||
max-width: 27rem; | ||
} | ||
} |
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
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
Oops, something went wrong.