Skip to content

Commit 07ecd5b

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

File tree

3 files changed

+268
-18
lines changed

3 files changed

+268
-18
lines changed

site/_includes/nav.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
-->
1010

1111
<div class="sidebar" id="sidebar">
12-
<a href="{{ site.baseurl }}/" class="active">
12+
<a href="{{ site.baseurl }}/" class="sidebar-link active">
1313
<i class="fas fa-home"></i> Home
1414
</a>
1515

16-
<a href="{{ site.baseurl }}/content">
16+
<a href="{{ site.baseurl }}/content" class="sidebar-link">
1717
<i class="fas fa-book"></i> All Contents
1818
</a>
1919

20-
<a href="https://github.com/Someshdiwan/JavaEvolution-Learning-Growing-Mastering" target="_blank">
20+
<a href="https://github.com/Someshdiwan/JavaEvolution-Learning-Growing-Mastering" class="sidebar-link" target="_blank">
2121
<i class="fab fa-github"></i> GitHub Repo
2222
</a>
2323
</div>

site/_layouts/default.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
67

78
<!-- Favicons -->
89
<link rel="icon" type="image/png" href="{{ '/assets/favicon-96x96.png' | relative_url }}" sizes="96x96" />

site/assets/style.css

Lines changed: 264 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* 1. Color Variables & Dark-Mode Overrides */
1+
/* 1. Color Variables & Dark-Mode Overrides *//*
2+
23
:root {
34
--bg-color: #ffffff;
45
--text-color: #000000;
@@ -29,7 +30,9 @@ body {
2930
transition: background-color 0.3s ease, color 0.3s ease;
3031
}
3132
32-
/* 2. Sidebar Styles */
33+
*/
34+
/* 2. Sidebar Styles *//*
35+
3336
.sidebar {
3437
background-color: var(--sidebar-bg);
3538
width: 260px;
@@ -60,7 +63,9 @@ body {
6063
background-color: var(--hover-bg);
6164
}
6265
63-
/* 3. Main Content Area */
66+
*/
67+
/* 3. Main Content Area *//*
68+
6469
.content {
6570
margin-left: 260px;
6671
padding: 1rem;
@@ -71,7 +76,9 @@ body {
7176
margin-left: 0;
7277
}
7378
74-
/* 4. Toggle Buttons */
79+
*/
80+
/* 4. Toggle Buttons *//*
81+
7582
.toggle-btn {
7683
position: fixed;
7784
top: 1rem;
@@ -104,7 +111,9 @@ body {
104111
background-color: var(--hover-bg);
105112
}
106113
107-
/* 5. Fade-In Animation */
114+
*/
115+
/* 5. Fade-In Animation *//*
116+
108117
.fade-in {
109118
animation: fadeIn 0.4s ease-in;
110119
}
@@ -114,7 +123,9 @@ body {
114123
to { opacity: 1; transform: translateY(0); }
115124
}
116125
117-
/* 6. Responsive Sidebar (Mobile) */
126+
*/
127+
/* 6. Responsive Sidebar (Mobile) *//*
128+
118129
@media (max-width: 768px) {
119130
.sidebar {
120131
transform: translateX(-100%);
@@ -129,7 +140,9 @@ body {
129140
}
130141
}
131142
132-
/* 7. Image Layout Helpers */
143+
*/
144+
/* 7. Image Layout Helpers *//*
145+
133146
.image-row {
134147
display: flex;
135148
flex-wrap: wrap;
@@ -175,7 +188,9 @@ body {
175188
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
176189
}
177190
178-
/* 8. Dark-Mode Toggle & Live-Time Container */
191+
*/
192+
/* 8. Dark-Mode Toggle & Live-Time Container *//*
193+
179194
#theme-time-container {
180195
position: fixed;
181196
top: 1rem;
@@ -193,13 +208,21 @@ body {
193208
transition: background-color 0.3s, color 0.3s;
194209
}
195210
196-
/* Alignment Fix: Dark Mode Button on Left, Time Elements on Right */
211+
*/
212+
/* Alignment Fix: Dark Mode Button on Left, Time Elements on Right *//*
213+
197214
#theme-time-container .dark-toggle {
198-
position: static; /* Remove fixed positioning to follow flex layout */
199-
margin-right: auto; /* Push the dark mode button to the left */
215+
position: static; */
216+
/* Remove fixed positioning to follow flex layout *//*
217+
218+
margin-right: auto; */
219+
/* Push the dark mode button to the left *//*
220+
200221
}
201222
202-
/* Optional: Consistent Button Styling in Container */
223+
*/
224+
/* Optional: Consistent Button Styling in Container *//*
225+
203226
#theme-time-container button {
204227
background: var(--button-bg);
205228
color: var(--button-text);
@@ -214,7 +237,233 @@ body {
214237
background-color: var(--hover-bg);
215238
}
216239
217-
/* Optional: Style the Time Display */
240+
*/
241+
/* Optional: Style the Time Display *//*
242+
218243
#live-time {
219-
padding: 0.5rem; /* Matches button padding for consistency */
220-
}
244+
padding: 0.5rem; */
245+
/* Matches button padding for consistency *//*
246+
247+
/* 1. Color Variables & Dark-Mode Overrides */
248+
:root {
249+
--bg-color: #ffffff;
250+
--text-color: #000000;
251+
--sidebar-bg: #f4f4f4;
252+
--link-color: #1e90ff;
253+
--button-bg: #eee;
254+
--button-text: #000;
255+
--hover-bg: rgba(0, 0, 0, 0.05);
256+
--border-color: #ccc;
257+
}
258+
259+
.dark-mode {
260+
--bg-color: #121212;
261+
--text-color: #e0e0e0;
262+
--sidebar-bg: #1f1f1f;
263+
--link-color: #90caf9;
264+
--button-bg: #333;
265+
--button-text: #fff;
266+
--hover-bg: rgba(255, 255, 255, 0.1);
267+
--border-color: #444;
268+
}
269+
270+
body {
271+
background-color: var(--bg-color);
272+
color: var(--text-color);
273+
margin: 0;
274+
font-family: sans-serif;
275+
transition: background-color 0.3s ease, color 0.3s ease;
276+
}
277+
278+
/* 2. Sidebar Styles */
279+
.sidebar {
280+
width: 260px;
281+
height: 100vh;
282+
background-color: var(--sidebar-bg);
283+
position: fixed;
284+
top: 0;
285+
left: 0;
286+
padding: 20px;
287+
box-sizing: border-box;
288+
overflow-y: auto;
289+
border-right: 1px solid var(--border-color);
290+
z-index: 999;
291+
transition: transform 0.3s ease-in-out, background-color 0.3s ease;
292+
}
293+
294+
.sidebar.hidden {
295+
transform: translateX(-100%);
296+
}
297+
298+
.sidebar-link {
299+
display: flex;
300+
align-items: center;
301+
padding: 15px;
302+
color: var(--link-color);
303+
text-decoration: none;
304+
transition: transform 0.2s, background-color 0.2s;
305+
border-radius: 8px;
306+
margin-bottom: 10px;
307+
}
308+
309+
.sidebar-link i {
310+
margin-right: 10px;
311+
}
312+
313+
.sidebar-link:hover {
314+
transform: scale(1.05);
315+
background-color: var(--hover-bg);
316+
}
317+
318+
.sidebar-link.active {
319+
color: #87cefa;
320+
font-weight: bold;
321+
text-decoration: underline;
322+
}
323+
324+
/* 3. Main Content Area */
325+
.content {
326+
margin-left: 260px;
327+
padding: 1rem;
328+
transition: margin-left 0.3s ease;
329+
}
330+
331+
.sidebar.hidden + .content {
332+
margin-left: 0;
333+
}
334+
335+
/* 4. Toggle Buttons */
336+
.toggle-btn {
337+
position: fixed;
338+
top: 1rem;
339+
left: 1rem;
340+
background: var(--button-bg);
341+
color: var(--button-text);
342+
border: none;
343+
padding: 0.5rem 1rem;
344+
border-radius: 5px;
345+
cursor: pointer;
346+
z-index: 1001;
347+
transition: background-color 0.3s ease;
348+
}
349+
350+
.toggle-btn:hover {
351+
background-color: var(--hover-bg);
352+
}
353+
354+
.dark-toggle, .time-toggle {
355+
background: var(--button-bg);
356+
color: var(--button-text);
357+
border: none;
358+
padding: 0.5rem 1rem;
359+
border-radius: 5px;
360+
cursor: pointer;
361+
transition: background-color 0.3s ease;
362+
}
363+
364+
.dark-toggle:hover, .time-toggle:hover {
365+
background-color: var(--hover-bg);
366+
}
367+
368+
/* 5. Fade-In Animation */
369+
.fade-in {
370+
animation: fadeIn 0.4s ease-in;
371+
}
372+
373+
@keyframes fadeIn {
374+
from { opacity: 0; transform: translateY(10px); }
375+
to { opacity: 1; transform: translateY(0); }
376+
}
377+
378+
/* 6. Dark-Mode Toggle & Live-Time Container */
379+
#theme-time-container {
380+
position: fixed;
381+
top: 1rem;
382+
right: 1rem;
383+
display: flex;
384+
align-items: center;
385+
gap: 0.5rem;
386+
background-color: var(--sidebar-bg);
387+
color: var(--text-color);
388+
padding: 0.5rem 1rem;
389+
border-radius: 8px;
390+
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
391+
font-size: 0.9rem;
392+
z-index: 1002;
393+
transition: background-color 0.3s, color 0.3s;
394+
}
395+
396+
#theme-time-container .dark-toggle {
397+
position: static;
398+
margin-right: auto;
399+
}
400+
401+
#live-time {
402+
padding: 0.5rem;
403+
}
404+
405+
/* 7. Responsive Sidebar (Mobile) */
406+
@media (max-width: 768px) {
407+
.sidebar {
408+
width: 100%;
409+
height: auto;
410+
position: fixed;
411+
transform: translateX(-100%);
412+
}
413+
.sidebar:not(.hidden) {
414+
transform: translateX(0);
415+
}
416+
.content {
417+
margin-left: 0;
418+
}
419+
.sidebar-link {
420+
font-size: 1.1rem;
421+
padding: 1rem;
422+
}
423+
}
424+
425+
/* 8. Image Layout Helpers */
426+
.image-row {
427+
display: flex;
428+
flex-wrap: wrap;
429+
justify-content: space-around;
430+
gap: 1rem;
431+
margin: 1.5rem 0;
432+
}
433+
434+
.image-row img {
435+
max-width: 100%;
436+
height: auto;
437+
border-radius: 10px;
438+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
439+
transition: transform 0.3s ease;
440+
}
441+
442+
.image-row img:hover {
443+
transform: scale(1.03);
444+
}
445+
446+
@media (min-width: 768px) {
447+
.image-row img {
448+
width: 48%;
449+
}
450+
}
451+
452+
.responsive-img {
453+
width: 100%;
454+
max-width: 600px;
455+
height: auto;
456+
margin: 0 auto;
457+
display: block;
458+
border-radius: 10px;
459+
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
460+
transition: transform 0.3s ease;
461+
}
462+
463+
.responsive-img:hover {
464+
transform: scale(1.02);
465+
}
466+
467+
.dark-mode .responsive-img {
468+
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
469+
}

0 commit comments

Comments
 (0)