Skip to content

Commit e290b07

Browse files
Theme scheme update
1 parent 8f03fbd commit e290b07

File tree

3 files changed

+65
-50
lines changed

3 files changed

+65
-50
lines changed

assets/css/style.css

Lines changed: 55 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,27 @@
1010

1111
/* ========== Root Variables ========== */
1212

13+
/* Default: Light Mode */
1314
:root {
15+
--primary-color: #4169e1; /* Royal Blue */
1416
--black: #0c0c0c;
1517
--white: #f0f8ff;
16-
--royal-blue: #4169e1;
18+
--bg-color: #0c0c0c;
19+
--text-color: #0c0c0c;
20+
--card-bg: #f0f8ff;
21+
--box-shadow: #0003;
22+
--border-color: #f0f8ff;
23+
--skeleton-bg1: #e0e0e0;
24+
--skeleton-bg2: #cecece;
25+
}
26+
27+
/* Dark Mode Overrides */
28+
@media (prefers-color-scheme: dark) {
29+
:root {
30+
--text-color: #f0f8ff;
31+
--card-bg: #0c0c0c;
32+
--box-shadow: #fffa;
33+
}
1734
}
1835

1936
/* ========== Global Styles ========== */
@@ -23,48 +40,50 @@
2340
padding: 0;
2441
box-sizing: border-box;
2542
font-family: 'Merriweather', serif;
43+
/* outline: 1px solid red; */
2644
}
2745

2846
/* ========== Scrollbar Styling ========== */
2947

3048
::-webkit-scrollbar {
31-
display: none;
3249
width: 0;
50+
height: 0;
3351
}
3452

3553
/* ========== Body Styles ========== */
3654

3755
body {
38-
background-color: var(--black);
39-
display: flex;
40-
justify-content: center;
41-
align-items: center;
42-
height: 99vh;
43-
text-align: center;
56+
background-color: var(--bg-color);
57+
color: var(--text-color);
58+
min-height: 100vh;
59+
align-content: center;
4460
}
4561

4662
/* ========== Main Container Styles ========== */
4763

4864
main {
49-
background-color: var(--white);
65+
margin: auto;
5066
width: 300px;
5167
height: auto;
52-
min-height: 480px;
68+
min-height: 500px;
5369
max-height: 90vh;
54-
border-radius: 10px;
70+
border-radius: 8px;
5571
font-size: 16px;
56-
line-height: 1.5em;
72+
text-align: center;
5773
position: relative;
74+
color: var(--text-color);
75+
background-color: var(--card-bg);
76+
box-shadow: 0 0 8px 0 var(--box-shadow);
5877
}
5978

6079
/* ========== Gradient Animation with Spinning Effect ========== */
6180

6281
main::after,
6382
main::before {
6483
content: '';
65-
position: absolute;
66-
height: calc(100% + 5px);
6784
width: calc(100% + 5px);
85+
height: calc(100% + 5px);
86+
position: absolute;
6887
top: 50%;
6988
left: 50%;
7089
translate: -50% -50%;
@@ -75,7 +94,7 @@ main::before {
7594
main.active-gradient::after,
7695
main.active-gradient::before {
7796
animation: 3s spin linear infinite;
78-
background-image: conic-gradient(from var(--angle), var(--black), var(--white), var(--royal-blue));
97+
background-image: conic-gradient(from var(--angle), var(--black), var(--white), var(--primary-color));
7998
}
8099

81100
main.active-gradient::before {
@@ -104,25 +123,25 @@ main.active-gradient::before {
104123
.cover-pic {
105124
width: 100%;
106125
height: 150px;
107-
border-radius: 10px 10px 0 0;
126+
border-radius: 8px 8px 0 0;
108127
background-color: var(--black);
109128
}
110129

111130
.cover-pic img {
112131
width: 100%;
113132
height: 100%;
114133
object-fit: cover;
115-
border-radius: 10px 10px 0 0;
134+
border-radius: 8px 8px 0 0;
116135
}
117136

118137
.profile-pic {
119138
width: 150px;
120139
height: 150px;
140+
position: relative;
121141
border-radius: 50%;
122142
margin: -75px auto 20px auto;
123-
border: 3px solid var(--white);
124-
box-shadow: 0px 0px 8px 0px #00000040;
125-
position: relative;
143+
border: 3px solid var(--border-color);
144+
box-shadow: 0 0 8px 0 var(--box-shadow);
126145
}
127146

128147
.profile-pic img {
@@ -140,7 +159,7 @@ main.active-gradient::before {
140159
width: 90%;
141160
height: 1.2em;
142161
margin: 10px auto;
143-
color: var(--royal-blue);
162+
color: var(--primary-color);
144163
}
145164

146165
.title {
@@ -149,7 +168,6 @@ main.active-gradient::before {
149168
width: 90%;
150169
height: 1.28em;
151170
margin: 10px auto;
152-
color: var(--black);
153171
}
154172

155173
/* ========== Blinking Cursor Animation ========== */
@@ -179,44 +197,45 @@ main.active-gradient::before {
179197
width: 60%;
180198
height: 1px;
181199
margin: auto;
182-
background: linear-gradient(273deg, var(--white), var(--royal-blue), var(--white));
200+
background: linear-gradient(273deg, var(--card-bg), var(--primary-color), var(--card-bg));
183201
}
184202

185203
/* ========== Bio Section Styles ========== */
186204

187205
.bio {
188206
font-size: 0.9em;
189207
width: 90%;
190-
height: 6.8em;
208+
height: 80px;
209+
line-height: 1.28em;
191210
margin: 10px auto;
192211
}
193212

194213
/* ========== Social Icons Section Styles ========== */
195214

196215
.social {
197216
width: 75%;
198-
height: 4.2em;
199-
margin: 10px auto 20px auto;
217+
height: auto;
218+
margin: auto;
200219
display: flex;
201220
gap: 10px;
202-
justify-content: center;
203221
flex-wrap: wrap;
222+
justify-content: center;
204223
}
205224

206225
/* ========== Icon Styles ========== */
207226

208227
.icon {
209-
color: var(--white);
228+
width: 28px;
229+
height: 28px;
210230
line-height: 0;
211-
width: 1.75em;
212-
height: 1.75em;
231+
border-radius: 4px;
213232
text-align: center;
214233
align-content: center;
215-
border-radius: 5px;
234+
box-shadow: 0px 0px 2px 0px var(--box-shadow);
216235
}
217236

218237
.icon:hover {
219-
filter: brightness(0.9);
238+
filter: brightness(0.8);
220239
}
221240

222241
.icon::before {
@@ -233,15 +252,15 @@ main.active-gradient::before {
233252
/* ========== Icon Image Styles ========== */
234253

235254
.icon img {
236-
max-width: 60%;
237-
max-height: 60%;
255+
max-width: 64%;
256+
max-height: 64%;
238257
}
239258

240259
/* ========== Skeleton Animation Styles ========== */
241260

242261
.skeleton {
243-
background-color: #e0e0e0;
244-
background-image: linear-gradient(90deg, #e0e0e0 0%, #cecece 50%, #e0e0e0 100%);
262+
background-color: var(--skeleton-bg1);
263+
background-image: linear-gradient(90deg, var(--skeleton-bg1) 0%, var(--skeleton-bg2) 50%, var(--skeleton-bg1) 100%);
245264
background-size: 200% 100%;
246265
animation: shimmer 1s infinite;
247266
}

assets/js/script.js

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const userData = {
1717
"UI & UX Design Specialist",
1818
"Collaborative Problem Solver",
1919
],
20-
userAbout: "Dedicated mentor in ICT and statistics, guiding students while professionally excelling in web design, analytics, WordPress, and UI/UX design.",
21-
coverAlt: "Hello World!",
20+
userAbout: "Passionate educator & WordPress specialist combining UX, analytics, and dev skills to mentor others and craft impactful web experiences.",
21+
coverAlt: "Free Palestine, Free Gaza.",
2222
coverUrl: "assets/img/cover.png",
2323
profileAlt: "Jahid",
2424
profileUrl: "assets/img/Jahid.png",
@@ -66,13 +66,9 @@ let currentTitle = "";
6666
let isDeleting = false;
6767

6868
// ========== Social Section Loading ==========
69-
// Step 1: Remove skeleton class after 1s
70-
// Step 2: Insert skeleton icons
71-
// Step 3: Replace with actual icons after another 1s
72-
setTimeout(() => {
73-
document.querySelectorAll(".social").forEach(el => el.classList.remove("skeleton"));
74-
insertSocialIcons();
75-
}, 1000);
69+
// Step 1: Insert skeleton icons immediately
70+
// Step 2: Replace with actual icons after 2s
71+
insertSocialIcons();
7672

7773
// ========== After 2s ==========
7874
// Insert user details and activate gradient
@@ -98,14 +94,14 @@ function insertUserDetails() {
9894
function insertSocialIcons() {
9995
socialBox.innerHTML = "";
10096

101-
// Step 1: Insert fake skeleton icons
97+
// Step 1: Insert skeleton icons only
10298
for (let i = 0; i < userData.socialLinks.length; i++) {
10399
const skeletonDiv = document.createElement('div');
104-
skeletonDiv.className = 'icon skeleton';
100+
skeletonDiv.className = 'icon skeleton'; // Skeleton only on icons
105101
socialBox.appendChild(skeletonDiv);
106102
}
107103

108-
// Step 2: After 1 second, replace skeletons with real icons
104+
// Step 2: Replace skeletons with real icons after 2s
109105
setTimeout(() => {
110106
socialBox.innerHTML = "";
111107
userData.socialLinks.forEach(link => {
@@ -121,7 +117,7 @@ function insertSocialIcons() {
121117
a.appendChild(img);
122118
socialBox.appendChild(a);
123119
});
124-
}, 1000);
120+
}, 2000);
125121
}
126122

127123
// Remove Skeleton Classes

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<div class="title skeleton"></div>
4040
<div class="separator skeleton"></div>
4141
<div class="bio skeleton"></div>
42-
<div class="social skeleton"></div>
42+
<div class="social"></div>
4343
</section>
4444
</main>
4545

0 commit comments

Comments
 (0)