Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions community.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@
</div>
<div class="footer__content__copyright"></div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/darkmode-js.min.js"></script>
<script src="/js/navbar-responsive.js"></script>
<script src="/js/footer.js"></script>
<script src="./js/darkmode.js"></script>
</body>
</html>
121 changes: 121 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ button:hover {

.navbar {
display: flex;

justify-content: space-between;
align-items: center;
position: sticky;
Expand Down Expand Up @@ -53,6 +54,7 @@ button:hover {
}

.nav-item {
isolation: isolate;
margin-left: 5px;
margin-top: 15px;
}
Expand All @@ -70,7 +72,9 @@ button:hover {
}

.logo__color {
isolation: isolate;
color: #9a2ca0;

}

li {
Expand Down Expand Up @@ -102,6 +106,7 @@ a {
}

.section__button__colored {
isolation: isolate;
background-color: #9a2ca0;
font-weight: 500;
font-size: 20px;
Expand Down Expand Up @@ -204,6 +209,7 @@ a {
}

.footer-container {
isolation: isolate;
background-color: #9a2ca0;
}

Expand Down Expand Up @@ -309,3 +315,118 @@ a {
line-height: 10px;
}
}







#switch{
filter:invert(1);
width:30px;
cursor: pointer;
}

.darkmode--activated .nav-link{
color:white;
}










.darkmode--activated .navbar{

display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
background-color: #16161654;
/* background: transparent; */
backdrop-filter: blur(15px);
z-index: 99;
line-height: 20px;
z-index: 4;

}
.darkmode--activated .nav-link{
font-size: 16px;
font-weight: 400;
color: #fff8f8;
z-index: 4;
}
.darkmode--activated .body{
background-color: #7e6e6ee0;
z-index: 4;
}


.darkmode--activated .section-card-outline{
width: 309px;
border-radius: 20px;
/* box-shadow: 3px 3px 4px rgb(0 0 0 / 10%); */
box-shadow: rgb(17 17 26 / 5%) 0px 1px 0px, rgb(17 17 26 / 10%) 0px 0px 8px;
height: 341px;
background-color: #5e5359a1;
margin: 0 auto;
margin-top: 50px;
cursor: pointer;
transition: 0.2s ease-in-out;
z-index: 1;

}
#image{
z-index: -1;
}
.darkmode--activated .img {
filter: contrast(0);
filter: invert(1);
vertical-align: middle;
z-index: 4;
border-style: none;
}
.darkmode--activated .section__card__content {
margin: 12px 33px;
font-family: Poppins;
font-style: normal;
font-weight: normal;
font-size: 18px;
z-index: 4;
line-height: 27px;
color: #000000;
}


.darkmode--activated .footer-content{

background: #16161654;
padding: 20px;
display: flex;
flex-direction: column;
z-index: 4;
justify-content: center;
align-items: center;
}

.darkmode--activated .footer__content__copyright {
font-family: Poppins;
font-style: normal;
font-weight: bold;
font-size: 20px;
line-height: 30px;
padding-bottom: 20px;
text-align: center;
color: #ffffff;
background: #40404021;

}
.darkmode-layer, .darkmode-toggle {
z-index: 0;
}
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="icon" href="img/favicon.ico" type="image/gif" sizes="16x16" />
<link rel="stylesheet" href="./css/style.css">
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
Expand Down Expand Up @@ -71,7 +72,12 @@
>Github</a
>
</li>




</ul>

<div class="hamburger">
<span class="bar"></span>
<span class="bar"></span>
Expand All @@ -94,6 +100,7 @@
</div>
<img
src="img/banner1.jpg"
id="image"
class="img-fluid banner__image__center"
alt="Responsive image"
/>
Expand Down Expand Up @@ -274,7 +281,10 @@
</div>
<div class="footer__content__copyright"></div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/darkmode-js.min.js"></script>
<script src="/js/navbar-responsive.js"></script>
<script src="/js/footer.js"></script>
<script src="./js/darkmode.js"></script>

</body>
</html>
17 changes: 17 additions & 0 deletions js/darkmode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const options={

bottom: '64px', // default: '32px'
right: '32px', // default: '32px'
left: 'unset', // default: 'unset'
time: '0.7s', // default: '0.3s'
mixColor: '#fff', // default: '#fff'
backgroundColor: '#fff', // default: '#fff'
buttonColorDark: '#100f2c', // default: '#100f2c'
buttonColorLight: '#fff', // default: '#fff'
saveInCookies: true, // default: true,
label: '🌓', // default: ''
autoMatchOsTheme: true // default: true

}
const darkmode = new Darkmode(options);
darkmode.showWidget();