-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Bulma and update components
This commit represents a significant overhaul of the application's styling and component structure, moving away from Bootstrap in favor of the Bulma CSS framework. Key changes include: - Replaced Bootstrap references with Bulma in `App.razor`, marking the transition to the Bulma framework for the entire application. - Redesigned modal components (`ContactListModal.razor`, `ReadmeModal.razor`) to utilize Bulma's modal design patterns, including class and structure adjustments. - Updated `RepositoryDisplay.razor`, `SearchBarDisplay.razor`, `UserProfileDisplay.razor`, and `UserStatisticsDisplay.razor` components to align with Bulma's styling conventions, such as using box, flex, media object, and columns classes. - Overhauled the main layout (`MainLayout.razor`) and home page (`Home.razor`) to incorporate Bulma's navigation, title, and form classes, and introduced a custom `NavbarDisplay` component with interactive server-side rendering and dynamic CSS class management for mobile responsiveness. - Removed the Bootstrap CSS file reference from `GPVBlazor.csproj`, indicating a complete migration away from Bootstrap. - Added custom CSS styles in `app.css` for further customization beyond Bulma's default styles. These changes not only refresh the application's look and feel but also enhance its responsiveness and accessibility, leveraging Bulma's modern CSS framework capabilities.
- Loading branch information
Showing
15 changed files
with
22,630 additions
and
12,179 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
48 changes: 48 additions & 0 deletions
48
GPVBlazor/GPVBlazor/Components/Displays/NavbarDisplay.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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@rendermode InteractiveServer | ||
|
||
|
||
<nav class="navbar" role="navigation" aria-label="main navigation"> | ||
<div class="navbar-brand"> | ||
<NavLink href="navbar-item" Match="NavLinkMatch.All"> | ||
<span class=" button is-primary">Home</span> | ||
</NavLink> | ||
|
||
<!-- Navbar burger --> | ||
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="@isMenuActive.ToString()" @onclick="ToggleNavbar"> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
</a> | ||
</div> | ||
|
||
<div id="navbarBasicExample" class="@GetNavbarMenuClass()"> | ||
<div class="navbar-start"> | ||
<!-- Additional navbar items can go here --> | ||
</div> | ||
|
||
<div class="navbar-end"> | ||
<div class="navbar-item"> | ||
<NavLink class="button is-primary" href="/p/sametcn99" Match="NavLinkMatch.All"> | ||
<span>sametcn99</span> | ||
</NavLink> | ||
</div> | ||
<div class="navbar-item"> | ||
<a href="https://sametcc.me/GPVBlazor" target="_blank" class="button is-info">Source Code</a> | ||
</div> | ||
</div> | ||
</div> | ||
</nav> | ||
|
||
@code { | ||
private bool isMenuActive = false; | ||
|
||
private void ToggleNavbar() | ||
{ | ||
isMenuActive = !isMenuActive; | ||
} | ||
|
||
private string GetNavbarMenuClass() | ||
{ | ||
return "navbar-menu" + (isMenuActive ? " is-active" : ""); | ||
} | ||
} |
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
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.