Skip to content

Commit 5733d66

Browse files
committed
Updated UI 1.9 Testing UI and Working.
Signed-off-by: Someshdiwan <[email protected]>
1 parent 56f5b0e commit 5733d66

File tree

2 files changed

+30
-11
lines changed

2 files changed

+30
-11
lines changed

site/_includes/nav.html

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
1+
<!--
12
<nav>
23
<ul>
3-
<li><a href="{{ site.baseurl }}/">Home 🏠</a></li>
4-
<li><a href="{{ site.baseurl }}/content">All Contents 📚</a></li>
5-
<li><a href="https://github.com/Someshdiwan/JavaEvolution-Learning-Growing-Mastering">GitHub Repo 🐙</a></li>
4+
<li><a href="{{ site.baseurl }}/">Home</a></li>
5+
<li><a href="{{ site.baseurl }}/content">All Contents</a></li>
6+
<li><a href="https://github.com/Someshdiwan/JavaEvolution-Learning-Growing-Mastering">GitHub Repo</a></li>
67
</ul>
7-
</nav>
8+
</nav>
9+
-->
10+
11+
<div class="sidebar" id="sidebar">
12+
<a href="{{ site.baseurl }}/" class="active">
13+
<i class="fas fa-home"></i> Home
14+
</a>
15+
16+
<a href="{{ site.baseurl }}/content">
17+
<i class="fas fa-book"></i> All Contents
18+
</a>
19+
20+
<a href="https://github.com/Someshdiwan/JavaEvolution-Learning-Growing-Mastering" target="_blank">
21+
<i class="fab fa-github"></i> GitHub Repo
22+
</a>
23+
</div>

site/assets/style.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* 1. Color Variables & DarkMode Overrides */
1+
/* 1. Color Variables & Dark-Mode Overrides */
22
:root {
33
--bg-color: #ffffff;
44
--text-color: #000000;
@@ -104,7 +104,7 @@ body {
104104
background-color: var(--hover-bg);
105105
}
106106

107-
/* 5. FadeIn Animation */
107+
/* 5. Fade-In Animation */
108108
.fade-in {
109109
animation: fadeIn 0.4s ease-in;
110110
}
@@ -175,7 +175,7 @@ body {
175175
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
176176
}
177177

178-
/* 8. DarkMode Toggle & LiveTime Container */
178+
/* 8. Dark-Mode Toggle & Live-Time Container */
179179
#theme-time-container {
180180
position: fixed;
181181
top: 1rem;
@@ -193,11 +193,13 @@ body {
193193
transition: background-color 0.3s, color 0.3s;
194194
}
195195

196+
/* Alignment Fix: Dark Mode Button on Left, Time Elements on Right */
196197
#theme-time-container .dark-toggle {
197-
position: static;
198-
margin-right: auto;
198+
position: static; /* Remove fixed positioning to follow flex layout */
199+
margin-right: auto; /* Push the dark mode button to the left */
199200
}
200201

202+
/* Optional: Consistent Button Styling in Container */
201203
#theme-time-container button {
202204
background: var(--button-bg);
203205
color: var(--button-text);
@@ -212,6 +214,7 @@ body {
212214
background-color: var(--hover-bg);
213215
}
214216

217+
/* Optional: Style the Time Display */
215218
#live-time {
216-
padding: 0.5rem;
217-
}
219+
padding: 0.5rem; /* Matches button padding for consistency */
220+
}

0 commit comments

Comments
 (0)