Skip to content

Commit 10b6820

Browse files
committed
Updating UI 1.1
Signed-off-by: Someshdiwan <[email protected]>
1 parent ab5d703 commit 10b6820

File tree

1 file changed

+50
-110
lines changed

1 file changed

+50
-110
lines changed

site/assets/style.css

Lines changed: 50 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
/* Base Colors and Typography */
21
:root {
32
--bg-color: #ffffff;
43
--text-color: #000000;
5-
--sidebar-bg: #f8f9fa;
4+
--sidebar-bg: #f4f4f4;
65
--link-color: #0366d6;
76
--button-bg: #eee;
87
--button-text: #000;
@@ -22,24 +21,28 @@
2221
}
2322

2423
body {
24+
margin: 0;
2525
background-color: var(--bg-color);
2626
color: var(--text-color);
27-
margin: 0;
28-
font-family: sans-serif;
27+
font-family: 'Segoe UI', sans-serif;
2928
transition: background-color 0.3s ease, color 0.3s ease;
3029
}
3130

32-
/* Sidebar */
31+
.wrapper {
32+
display: flex;
33+
height: calc(100vh - 70px); /* height minus time container */
34+
}
35+
3336
.sidebar {
3437
background-color: var(--sidebar-bg);
35-
width: 260px;
38+
width: 240px;
3639
padding: 1rem;
37-
position: fixed;
38-
height: 100vh;
3940
overflow-y: auto;
41+
height: 100%;
4042
border-right: 1px solid var(--border-color);
4143
transition: transform 0.3s ease;
4244
z-index: 999;
45+
position: relative;
4346
}
4447

4548
.sidebar.hidden {
@@ -50,167 +53,104 @@ body {
5053
display: block;
5154
padding: 0.5rem;
5255
margin-bottom: 0.5rem;
53-
border-radius: 0.5rem;
54-
text-decoration: none;
5556
color: var(--link-color);
57+
text-decoration: none;
58+
border-radius: 0.4rem;
5659
}
5760

5861
.sidebar a:hover {
5962
background-color: var(--hover-bg);
6063
}
6164

62-
/* Content */
6365
.content {
64-
margin-left: 260px;
66+
flex-grow: 1;
6567
padding: 1rem;
66-
transition: margin-left 0.3s ease;
67-
}
68-
69-
.sidebar.hidden + .content {
70-
margin-left: 0;
68+
overflow-y: auto;
7169
}
7270

73-
/* Toggle Buttons */
74-
.toggle-btn,
75-
.dark-toggle {
71+
.toggle-btn {
7672
position: fixed;
77-
top: 1rem;
78-
z-index: 1001;
73+
top: 80px;
74+
left: 1rem;
7975
background-color: var(--button-bg);
8076
color: var(--button-text);
8177
border: none;
8278
padding: 0.5rem 1rem;
8379
border-radius: 5px;
8480
cursor: pointer;
85-
}
86-
87-
.toggle-btn {
88-
left: 1rem;
81+
z-index: 1001;
8982
}
9083

9184
.dark-toggle {
92-
right: 1rem;
93-
}
94-
95-
/* Animation */
96-
.fade-in {
97-
animation: fadeIn 0.4s ease-in;
98-
}
99-
100-
@keyframes fadeIn {
101-
from { opacity: 0; transform: translateY(10px); }
102-
to { opacity: 1; transform: translateY(0); }
85+
background-color: var(--button-bg);
86+
color: var(--button-text);
87+
border: none;
88+
padding: 0.5rem 1rem;
89+
border-radius: 5px;
90+
cursor: pointer;
10391
}
10492

10593
#time-container {
106-
position: fixed;
107-
top: 1rem;
108-
right: 1rem; /* Stick to top-right */
10994
background: rgba(0, 0, 0, 0.6);
11095
color: #00ffff;
11196
border: 1px solid #00ffff;
11297
box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
11398
border-radius: 16px;
114-
padding: 0.6rem 1rem;
115-
font-weight: 600;
116-
font-size: 1.05rem;
99+
padding: 1rem;
100+
margin: 1rem auto;
101+
max-width: 360px;
117102
display: flex;
118103
align-items: center;
119-
gap: 0.5rem;
120-
z-index: 1100;
104+
justify-content: space-between;
105+
font-weight: 600;
106+
font-size: 1rem;
121107
}
122108

123109
body.dark-mode #time-container {
124110
background-color: #333;
125111
color: #eee;
112+
border-color: #555;
113+
box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
126114
}
127115

128-
@media (max-width: 600px) {
129-
#time-container {
130-
flex-direction: column;
131-
align-items: flex-end;
132-
font-size: 0.95rem;
133-
padding: 0.8rem;
134-
}
135-
}
136-
137-
138-
/* Image Row */
139-
.image-row {
140-
display: flex;
141-
flex-wrap: wrap;
142-
justify-content: space-around;
143-
gap: 1rem;
144-
margin: 1.5rem 0;
145-
}
146-
147-
.image-row img {
148-
max-width: 100%;
149-
height: auto;
150-
border-radius: 10px;
151-
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
152-
transition: transform 0.3s ease;
116+
.fade-in {
117+
animation: fadeIn 0.4s ease-in;
153118
}
154119

155-
.image-row img:hover {
156-
transform: scale(1.03);
120+
@keyframes fadeIn {
121+
from { opacity: 0; transform: translateY(10px); }
122+
to { opacity: 1; transform: translateY(0); }
157123
}
158124

159-
@media (min-width: 768px) {
160-
.image-row img {
161-
width: 48%;
125+
@media (max-width: 768px) {
126+
.wrapper {
127+
flex-direction: column;
162128
}
163-
}
164-
165-
/* Responsive Image */
166-
.responsive-img {
167-
width: 100%;
168-
max-width: 600px;
169-
height: auto;
170-
margin: 0 auto;
171-
display: block;
172-
border-radius: 10px;
173-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
174-
transition: transform 0.3s ease;
175-
}
176-
177-
.responsive-img:hover {
178-
transform: scale(1.02);
179-
}
180-
181-
.dark-mode .responsive-img {
182-
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
183-
}
184129

185-
/* Mobile Responsive Fixes */
186-
@media (max-width: 768px) {
187130
.sidebar {
188-
transform: translateX(-100%);
131+
width: 100%;
132+
height: auto;
133+
position: absolute;
134+
top: 0;
189135
left: 0;
190136
}
191137

192138
.sidebar:not(.hidden) {
193139
transform: translateX(0);
194140
}
195141

196-
.content {
197-
margin-left: 0;
142+
.toggle-btn {
143+
top: 70px;
198144
}
199-
}
200145

201-
@media (max-width: 600px) {
202146
#time-container {
203-
font-size: 0.95rem;
204-
margin: 1rem;
205147
flex-direction: column;
148+
font-size: 0.95rem;
149+
padding: 0.8rem;
150+
max-width: 90%;
206151
}
207152

208153
#time-container button {
209154
margin-top: 0.5rem;
210155
}
211-
212-
#time-location-container {
213-
font-size: 0.95rem;
214-
margin: 1rem;
215-
}
216156
}

0 commit comments

Comments
 (0)