Skip to content

Commit

Permalink
Merge pull request #518 from jeevika17/contact
Browse files Browse the repository at this point in the history
contact us is made visible in darkmode
  • Loading branch information
tushargupta1504 authored Oct 18, 2024
2 parents 1230cca + b67d146 commit ddcf131
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 23 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ <h5 class="mb-0"> [email protected]</h5>
</div>
<div class="col-lg-6 wow fadeIn" data-wow-delay="0.1s">
<div class="bg-light rounded p-5">
<p class="d-inline-block border rounded-pill py-1 px-4">Contact Us</p>
<p class="d-inline-block border rounded-pill py-1 px-4 " style="color: #000;">Contact Us</p>
<h1 class="mb-4">Have Any Query? Please Contact Us!</h1>

<form>
Expand Down
21 changes: 0 additions & 21 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,3 @@ window.addEventListener('scroll', function(){
})


document.addEventListener('DOMContentLoaded',() => {
const darkToggle = document.getElementById('dark-change');

if(localStorage.getItem('darkMode') === 'enabled'){
document.body.classList.add('dark-mode');
darkToggle.classList.add('active');
}

darkToggle.addEventListener('click' , ()=>
{
document.body.classList.toggle('dark-mode');
darkToggle.classList.toggle('active');

if (document.body.classList.contains('dark-mode')){
localStorage.setItem('darkMode','enabled');
}
else{
localStorage.setItem('darkMode','disabled');
}
});
});
9 changes: 8 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,15 @@ section {
color: #fff;
}

body.night .mb-4{
color: #000;
padding-top:4px;
}


.mb-4{
color: #000;
padding-top: 4px;
}



Expand Down

0 comments on commit ddcf131

Please sign in to comment.