From d8a160002b1e90de65641fc5a6c7b2b29d82255f Mon Sep 17 00:00:00 2001 From: Son Nguyen Date: Fri, 4 Oct 2024 11:50:14 -0400 Subject: [PATCH] Update: Update profile information --- index.html | 2 +- packages/css/styles.css | 19 ++++++++++--------- packages/js/main.js | 2 -- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index 4178090..f9f9d54 100644 --- a/index.html +++ b/index.html @@ -2268,7 +2268,7 @@

Location

- + diff --git a/packages/css/styles.css b/packages/css/styles.css index b38430a..1bb62c9 100644 --- a/packages/css/styles.css +++ b/packages/css/styles.css @@ -1,6 +1,15 @@ /* ==================== GOOGLE FONTS ====================*/ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap'); +@media (max-width: 768px) { + html, body { + margin: 0; + padding: 0; + overflow-x: hidden; + height: 100%; + } +} + /*==================== VARIABLES CSS ====================*/ :root { --header-height: 3rem; @@ -339,14 +348,6 @@ img { color: var(--first-color-alt); } -html, body { - margin: 0; - padding: 0; - overflow-x: hidden; /* Ensure no horizontal scroll */ - height: 100%; -} - - /* show menu */ .show-menu { bottom: 0; @@ -1630,7 +1631,7 @@ body { } .welcome { - width: 100vw; + width: 99vw; height: 100vh; background-color: var(--body-color); display: flex; diff --git a/packages/js/main.js b/packages/js/main.js index b0b4ba1..2c6db12 100644 --- a/packages/js/main.js +++ b/packages/js/main.js @@ -262,12 +262,10 @@ function typeSubtitle() { } } -// Start typing animation when page loads document.addEventListener("DOMContentLoaded", function () { setTimeout(typeTitle, newTextDelay); }); -// Smooth scroll when button is clicked document.getElementById("scroll-button").addEventListener("click", function (event) { event.preventDefault(); document.getElementById("home").scrollIntoView({ behavior: "smooth" });