Skip to content

Commit

Permalink
Merge pull request #3973 from Arghya-Chakraborty0812/enhance/communit…
Browse files Browse the repository at this point in the history
…yspotlight

Fixes#3970:Improve Dark Mode hover in Community Spotlight Section
  • Loading branch information
abhi03ruchi authored Oct 25, 2024
2 parents 1daf9e0 + a3be2eb commit 24cf26c
Showing 1 changed file with 79 additions and 14 deletions.
93 changes: 79 additions & 14 deletions comsp.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@
opacity: 0.5;
cursor: not-allowed;
}
.dark-mode .swiper-pagination-bullet{
color: white;
}
.swiper-pagination {
position: relative;
margin-top: 20px;
Expand Down Expand Up @@ -430,8 +433,7 @@
}








Expand Down Expand Up @@ -493,14 +495,30 @@


/* Basic navbar styling */
.header {
position: fixed;
width: 100%;
top: 10;
z-index: 1000;
transition: top 0.3s;
.dark-mode .header {
width: 100vw; /* Full viewport width */
max-width: 100%; /* Ensure it doesn't go beyond viewport width */
position: fixed;
top: 0;
z-index: 1000;
transition: top 0.3s;
box-sizing: border-box;
padding: 0;
margin: 0;
background-color: #000;
}
.header{
width: 100vw; /* Full viewport width */
max-width: 100%; /* Ensure it doesn't go beyond viewport width */
position: fixed;
top: 0;
z-index: 1000;
transition: top 0.3s;
box-sizing: border-box;
padding: 0;
margin: 0;

}

/* Hide the navbar */
.header.hidden {
top: -93px; /* Adjust according to your header height */
Expand Down Expand Up @@ -864,7 +882,7 @@
<button id="mobile_View_Menu" class="mobile-menu-toggle">
<i class="ri-menu-fill"></i>
</button>

<div class="navbar-align">
<nav class="navbar nav_activated" data-navbar>
<ul class="navbar-list nav">
<li class="navbar-item logo-item" style="display:flex;">
Expand Down Expand Up @@ -929,6 +947,12 @@
</li>
</ul>
</nav>
</div>
<style>
.navbar-align{
width: 100%;
}
</style>

<script>
// Toggle dropdown
Expand Down Expand Up @@ -1050,7 +1074,7 @@
}

.dark-mode .nav {
background-color: #d5d5d5; /* Slightly darker grey for navigation */
background-color: #000000; /* Slightly darker grey for navigation */
color: #121212; /* Dark text color */
}

Expand Down Expand Up @@ -1100,6 +1124,11 @@
</div>
</header>
<main>
<style>
.dark-mode .section__subtitle{
color:#ffffff !important;
}
</style>
<section class="community-spotlight">
<div class="section__container">
<h2 class="section__title" style="color: maroon; margin-top:150px;text-align:center">Community Spotlight</h2>
Expand Down Expand Up @@ -1167,15 +1196,31 @@ <h4 style="color: maroon;">Mark Brown</h4>
Connect with fellow enthusiasts, exchange your favorite reads, and embark on exciting new adventures in
the world of literature—all on one convenient platform. Join us and dive into a universe of endless possibilities!
</p>
<style>
.dark-mode .logo{
color: maroon !important;
}
.dark-mode .description{
color: white !important;
}
</style>
</div>


</div>
</div>
<div class="foot-middle">
<h2 style="margin-left: 2rem; margin-top: 2.75rem;">Quick Links</h2>
<h2 style="margin-left: 2rem; margin-top: 2.75rem;" id="quicklinks-color">Quick Links</h2>
<style>
.dark-mode #quicklinks-color{
color: maroon !important;
}
.dark-mode #quicklinks ul li a{
color: white !important;
}
</style>
<div id="quicklinks" style="display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem;">
<div>
<div class="linkscolor">
<ul style="list-style: none; padding: 0;">
<li class="foot-quick" style="color: #374151; display: flex; align-items: center; margin-bottom: 0.75rem;">
<i class="fas fa-home" style="color: #374151; margin-right: 4px;"></i>
Expand Down Expand Up @@ -1326,7 +1371,12 @@ <h2 style="margin-left: 2rem; margin-top: 2.75rem;">Quick Links</h2>
</style>

<div class="foot-right">
<h2 style="margin-bottom: 2.4rem; margin-top:0.5rem;">Stay Connected</h2>
<h2 style="margin-bottom: 2.4rem; margin-top:0.5rem;" id="stayconnected-color">Stay Connected</h2>
<style>
.dark-mode #stayconnected-color{
color:maroon !important;
}
</style>
<form id="newsform" onsubmit="return showConfirmationMessage();">
<label for="new-email" class="news-form">Subscribe to our Newsletter</label>
<div class="row-flex display-flex">
Expand All @@ -1343,6 +1393,11 @@ <h2 style="margin-bottom: 2.4rem; margin-top:0.5rem;">Stay Connected</h2>
<div class="icon">
<i class="fab fa-discord" title="Discord" style="cursor: pointer;"></i>
</div>
<style>
.dark-mode .fab.fa-discord:hover{
color:#3b5998 !important;
}
</style>
</a>

<!-- LinkedIn icon -->
Expand All @@ -1364,6 +1419,11 @@ <h2 style="margin-bottom: 2.4rem; margin-top:0.5rem;">Stay Connected</h2>
<div class="icon">
<i class="fab fa-twitter" title="X" style="cursor: pointer;"></i>
</div>
<style>
.dark-mode .fab.fa-twitter:hover{
color: white !important;
}
</style>
</a>

<!-- Instagram icon -->
Expand All @@ -1385,6 +1445,11 @@ <h2 style="margin-bottom: 2.4rem; margin-top:0.5rem;">Stay Connected</h2>
<div class="icon">
<i class="fab fa-github" title="GitHub"></i>
</div>
<style>
.dark-mode .fab.fa-github:hover{
color: white !important;
}
</style>
</a>
</div>
</div>
Expand Down

0 comments on commit 24cf26c

Please sign in to comment.