Skip to content

Commit f851913

Browse files
committed
Updated UI 2.0
Signed-off-by: Someshdiwan <[email protected]>
1 parent 4154379 commit f851913

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

site/_layouts/default.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,11 @@
108108
if ('serviceWorker' in navigator) {
109109
navigator.serviceWorker
110110
.register('/JavaEvolution-Learning-Growing-Mastering/assets/sw.js')
111-
.then(() => console.log('Service Worker Registered'))
111+
.then(() => console.log('Service Worker Registered'))
112112
.catch(err => console.error('SW registration failed', err));
113113
}
114114
};
115+
115116
</script>
116117
</head>
117118

site/assets/style.css

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ body {
4242
--text-color: #e0e0e0;
4343
--sidebar-bg: #1f1f1f;
4444
--button-text: #ffffff;
45+
--card-bg: #2b2b2b; /* dark gray background for cards */
46+
--card-shadow: rgba(0, 0, 0, 0.5); /* stronger shadow on dark */
4547
}
4648

4749
/* 4. Dark Mode Toggle */
@@ -83,7 +85,8 @@ body {
8385
z-index: 999;
8486
}
8587

86-
.sidebar.collapsed {
88+
/* replace .sidebar.collapsed with .sidebar.hidden */
89+
.sidebar.hidden {
8790
transform: translateX(-100%);
8891
}
8992

@@ -153,8 +156,12 @@ body {
153156
background-color: var(--card-bg);
154157
padding: 1.5rem;
155158
border-radius: 10px;
159+
background-color: var(--card-bg);
160+
box-shadow: 0 4px 20px var(--card-shadow);
161+
/*
156162
box-shadow: 0 4px 20px var(--card-shadow);
157163
animation: fadeIn 0.5s ease;
164+
*/
158165
}
159166

160167
/* 11. Fade-in Keyframes */
@@ -186,3 +193,19 @@ body {
186193
display: block;
187194
}
188195
}
196+
197+
/* global link styles in content */
198+
.content a {
199+
color: var(--primary-color);
200+
text-decoration: none;
201+
transition: color 0.2s;
202+
}
203+
204+
.content a:visited {
205+
color: var(--active-color);
206+
}
207+
208+
.content a:hover,
209+
.content a:focus {
210+
text-decoration: underline;
211+
}

0 commit comments

Comments
 (0)