Skip to content

Commit 4614301

Browse files
committed
Update: Update profile information
1 parent d8a1600 commit 4614301

File tree

3 files changed

+17
-22
lines changed

3 files changed

+17
-22
lines changed

index.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,11 @@
149149

150150
<!--==================== MAIN ====================-->
151151
<main class="main">
152-
153152
<!--==================== WELCOME ====================-->
154153
<section class="welcome section" id="welcome">
155154
<div class="welcome__content">
156-
<h1 class="welcome__title" style="font-size: 5rem">
157-
<span id="typed-text"></span><span class="cursor" id="cursor"></span>
158-
</h1>
159-
<h3 class="welcome__subtitle">
160-
<span id="typed-subtitle"></span><span class="cursor" id="cursor-subtitle"></span>
161-
</h3>
155+
<h1 class="welcome__title" style="font-size: 5rem"><span id="typed-text"></span><span class="cursor" id="cursor"></span></h1>
156+
<h3 class="welcome__subtitle"><span id="typed-subtitle"></span><span class="cursor" id="cursor-subtitle"></span></h3>
162157
<a href="#home" class="button button--flex welcome__button scroll-animation" id="scroll-button" style="display: none; margin-top: 3rem">
163158
<i class="uil uil-arrow-down button__icon" style="margin-left: 0"></i>
164159
Explore My Work

packages/css/styles.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
33

44
@media (max-width: 768px) {
5-
html, body {
5+
html,
6+
body {
67
margin: 0;
78
padding: 0;
89
overflow-x: hidden;
@@ -879,7 +880,6 @@ img {
879880
margin-right: var(--mb-0-25);
880881
}
881882

882-
883883
/* Active Modal */
884884
.active-modal {
885885
opacity: 1;
@@ -1685,7 +1685,8 @@ body.dark-theme .welcome {
16851685
animation: blink 1s step-end infinite;
16861686
}
16871687

1688-
#cursor, #cursor-subtitle {
1688+
#cursor,
1689+
#cursor-subtitle {
16891690
position: relative;
16901691
left: 0;
16911692
}

packages/js/main.js

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,17 @@ function scrollActive() {
221221
});
222222
}
223223

224-
const textArray = ["Welcome!"];
225-
const subtitleArray = ["Explore my portfolio and see my journey as a software engineer."];
224+
const textArray = ['Welcome!'];
225+
const subtitleArray = ['Explore my portfolio and see my journey as a software engineer.'];
226226
let charIndex = 0;
227227
let subtitleIndex = 0;
228228
let typingDelay = 150;
229229
let newTextDelay = 1000; // Delay between current and next text
230-
let typedTextSpan = document.getElementById("typed-text");
231-
let typedSubtitleSpan = document.getElementById("typed-subtitle");
232-
let cursor = document.getElementById("cursor");
233-
let cursorSubtitle = document.getElementById("cursor-subtitle");
234-
let scrollButton = document.getElementById("scroll-button");
230+
let typedTextSpan = document.getElementById('typed-text');
231+
let typedSubtitleSpan = document.getElementById('typed-subtitle');
232+
let cursor = document.getElementById('cursor');
233+
let cursorSubtitle = document.getElementById('cursor-subtitle');
234+
let scrollButton = document.getElementById('scroll-button');
235235

236236
// Type the title
237237
function typeTitle() {
@@ -258,17 +258,17 @@ function typeSubtitle() {
258258
cursorSubtitle.style.display = 'none';
259259
// Show the button once all typing is complete
260260
scrollButton.style.display = 'inline-block';
261-
scrollButton.classList.add("drop-down"); // Optional fade-in animation
261+
scrollButton.classList.add('drop-down'); // Optional fade-in animation
262262
}
263263
}
264264

265-
document.addEventListener("DOMContentLoaded", function () {
265+
document.addEventListener('DOMContentLoaded', function () {
266266
setTimeout(typeTitle, newTextDelay);
267267
});
268268

269-
document.getElementById("scroll-button").addEventListener("click", function (event) {
269+
document.getElementById('scroll-button').addEventListener('click', function (event) {
270270
event.preventDefault();
271-
document.getElementById("home").scrollIntoView({ behavior: "smooth" });
271+
document.getElementById('home').scrollIntoView({ behavior: 'smooth' });
272272
});
273273

274274
window.addEventListener('scroll', scrollActive);
@@ -438,7 +438,6 @@ const backToTopButton = document.getElementById('back-to-top');
438438

439439
backToTopButton.addEventListener('click', function () {
440440
document.getElementById('home').scrollIntoView({ behavior: 'smooth' });
441-
442441
});
443442

444443
window.addEventListener('scroll', function () {

0 commit comments

Comments
 (0)