-
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.
Enhance theme customization capabilities
This commit introduces several key changes aimed at enhancing the theme customization capabilities across the application. In `MainLayout.razor`, the navigation menu component has been updated from `NavMenuLight` to `NavMenuDark`, indicating a shift towards a darker theme preference for the navigation bar. The `TopNavMenu.razor` file sees the removal of the background color setting, allowing for more flexibility and reliance on CSS for styling, which is further supported by the commenting out of specific color variables in `TopNavMenu.razor.css`. This move suggests a broader effort to transition away from hardcoded color values towards a dynamic, theme-based approach to styling. Significant updates have been made to the `Home.razor.css`, where the `.splash` class styling now utilizes variables and a new gradient, replacing hardcoded colors and background images. This change supports a more customizable and theme-driven design philosophy. Additionally, `themeSelector.js` has been enhanced with new functionality that dynamically applies theme variables as CSS custom properties from a fetched SCSS file, indicating a sophisticated approach to theme customization. Although some code has been commented out, it hints at potential future developments for theme manipulation based on the selected theme. Lastly, the addition of the `NavMenuDark.razor` component aligns with the overall shift towards a darker theme, enriching the site's aesthetic and user experience with a dark-themed navigation bar setup. These changes collectively represent a significant step forward in making the application's theme more customizable and dynamic, reflecting a thoughtful approach to user interface design and user experience enhancement.
- Loading branch information
Showing
6 changed files
with
107 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<nav class="navbar navbar-expand-lg bg-dark fixed-top mb-5" data-bs-theme="dark"> | ||
<div class="container"> | ||
<a class="navbar-brand" href="/">Gerald Ncube</a> | ||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarColor01"> | ||
<ul class="navbar-nav me-auto"> | ||
<li class="nav-item"> | ||
<NavLink class="nav-link" href="/" Match="NavLinkMatch.All">Home</NavLink> | ||
</li> | ||
<li class="nav-item"> | ||
<NavLink class="nav-link" href="skills">Skills</NavLink> | ||
</li> | ||
<li class="nav-item"> | ||
<NavLink class="nav-link" href="projects">Projects</NavLink> | ||
</li> | ||
<li class="nav-item"> | ||
<NavLink class="nav-link" href="challenges">Challenges</NavLink> | ||
</li> | ||
<li class="nav-item"> | ||
<NavLink class="nav-link" href="blog">Blog</NavLink> | ||
</li> | ||
<li class="nav-item"> | ||
<NavLink class="nav-link" href="contact">Contact</NavLink> | ||
</li> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a> | ||
<div class="dropdown-menu"> | ||
<a class="dropdown-item" href="#">Action</a> | ||
<a class="dropdown-item" href="#">Another action</a> | ||
<a class="dropdown-item" href="#">Something else here</a> | ||
<div class="dropdown-divider"></div> | ||
<a class="dropdown-item" href="#">Separated link</a> | ||
</div> | ||
</li> | ||
</ul> | ||
<ul class="navbar-nav ms-md-auto"> | ||
<li class="nav-item"> | ||
<a target="_blank" rel="noopener" class="nav-link" href="https://github.com/thomaspark/bootswatch/"> | ||
<i class="bi bi-github"></i><span class="d-lg-none ms-2">GitHub</span> | ||
</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a target="_blank" rel="noopener" class="nav-link" href="https://twitter.com/bootswatch"> | ||
<i class="bi bi-twitter"></i><span class="d-lg-none ms-2">Twitter</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</nav> | ||
|
||
@code { | ||
|
||
} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.navStyle { | ||
background-color: var(--cf-theme-900); | ||
/*background-color: var(--cf-theme-900);*/ | ||
} | ||
|
||
.navbar-nav { | ||
--bs-navbar-hover-color: var(--cf-theme-400); | ||
/*--bs-navbar-hover-color: var(--cf-theme-400);*/ | ||
} |
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,16 @@ | ||
.splash { | ||
| ||
.splash { | ||
position: relative; | ||
padding: 12em 0 6em; | ||
color: #fff; | ||
text-align: center; | ||
background-color: #375ee3; | ||
background-image: url(../../images/splash.svg), linear-gradient(145deg, #375ee3 0%, #6543e0 80%); | ||
background-repeat: no-repeat; | ||
color: var(--bs-body-color); | ||
background-color: var(--bs-body-bg); | ||
/* | ||
background-image: url(../../images/splash.svg), linear-gradient(145deg, var(--bs-body-bg) 0%, var(--bs-body-bg) 80%); | ||
background-image: url(../../images/splash.svg), linear-gradient(145deg, var(--bs-body-bg) 0%, var(--bs-body-bg) 80%); | ||
background-image: url(../../images/splash.svg), linear-gradient(145deg, var(--bs-body-color) 0%, var(--bs-body-color) 80%); | ||
*/ | ||
|
||
background-image: url(../../images/splash.svg), linear-gradient(145deg, #060606 40%, #282828 80%); | ||
background-size: cover; | ||
} |
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