From 2a1ed46ec35463f90b935f4cd1cebd86cc976fcb Mon Sep 17 00:00:00 2001 From: Rainyy21 Date: Wed, 24 Sep 2025 20:45:55 -0400 Subject: [PATCH] commitig all before branching --- css/about.css | 15 +++++++++++ css/style.css | 26 +++++++++++++++++++ ...40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40.svg | 1 + index.html | 2 +- js/darkmode.js | 24 +++++++++-------- 5 files changed, 56 insertions(+), 12 deletions(-) create mode 100644 css/about.css create mode 100644 image/home_40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40.svg diff --git a/css/about.css b/css/about.css new file mode 100644 index 0000000..a9292b6 --- /dev/null +++ b/css/about.css @@ -0,0 +1,15 @@ +#about .description{ + font-family: monospace; + font-size: 1.5rems; + font-weight: normal; + overflow-y: auto; + overflow-x: hidden; + white-space: normal; + word-wrap: break-word; + height: 100rem; + width: 40rem; +} + +#about .tittle_text{ + padding-bottom: 2rem; +} \ No newline at end of file diff --git a/css/style.css b/css/style.css index 41b740e..93cb864 100644 --- a/css/style.css +++ b/css/style.css @@ -11,6 +11,11 @@ overflow: hidden; } +/* trying to make the color change */ +*{ + transition: background-color 0.4s ease, color 0.4s ease; +} + /* darkmode color */ .dark{ --primary-background-color: #78B9B5; @@ -85,3 +90,24 @@ color: var(--text-color); } +.header{ + display: flex; + flex-direction: row; +} + +#home_button{ + border-style: none; + background: none; + cursor: pointer; + display: flex; + justify-content: center; + align-items: center; + +} + +#home_button svg{ + width: 3.5rem; + height: auto; + fill:var(--secondary-background-color); + +} diff --git a/image/home_40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40.svg b/image/home_40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40.svg new file mode 100644 index 0000000..d383e18 --- /dev/null +++ b/image/home_40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.html b/index.html index 87e3242..496226d 100644 --- a/index.html +++ b/index.html @@ -55,7 +55,7 @@
- diff --git a/js/darkmode.js b/js/darkmode.js index 3ad04a9..f7ba5d4 100644 --- a/js/darkmode.js +++ b/js/darkmode.js @@ -1,19 +1,21 @@ -let darkmode = localStorage.getItem('dark') -const switch_button = document.getElementById("theme_switch") +let darkmode = localStorage.getItem('dark'); +const switch_button = document.getElementById("theme_switch"); const enableDarkmode = () => { - document.body.classList.add('dark') - localStorage.setItem('darkmode' , 'active') + document.body.classList.add('dark'); + localStorage.setItem('dark' , 'active'); } const disableDarkmode = () => { - document.body.classList.remove('dark') - localStorage.setItem('darkmode', null) -} + document.body.classList.remove('dark'); + localStorage.removeItem('dark'); +}; -if(darkmode === 'avtive') enableDarkmode() +if (darkmode === 'active') enableDarkmode(); switch_button.addEventListener("click", () => { - darkmode = localStorage.getItem('darkmode') - darkmode !== "active" ? enableDarkmode() : disableDarkmode() -}) \ No newline at end of file + darkmode = localStorage.getItem('dark'); + darkmode !== "active" ? enableDarkmode() : disableDarkmode(); +}); + +