Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jatin009v authored Oct 6, 2024
1 parent fdaf046 commit eb100ab
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 0 deletions.
116 changes: 116 additions & 0 deletions Drak mode/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="components.css">
<link rel="stylesheet" href="style.css">
</head>

<body>
<nav class="navbar navbar-expand-lg bg-none">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">Frontend Treasure</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" href="index.html">Home</a>
</li>
</ul>
<form class="d-flex" role="search">
<input class="form-control me-3" type="search" placeholder="Search for the components"
aria-label="Search" id="searchInput" />
<button class="btn btn-outline-success" type="button" onclick="searchComponents()">
Search
</button>
</form>
</div>
</div>
<nav class="navbar navbar-expand-lg bg-none">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">Frontend Treasure</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" href="index.html">Home</a>
</li>
</ul>
<form class="d-flex" role="search">
<input class="form-control me-3" type="search" placeholder="Search for the components"
aria-label="Search" id="searchInput" />
<button class="btn btn-outline-success" type="button" onclick="searchComponents()">
Search
</button>
</form>
<!-- Dark Mode Toggle Button -->
<button class="btn btn-outline-light ms-3" id="darkModeToggle">Dark Mode</button>
</div>
</div>
</nav>

</nav>

<div class="wrapper" id="component-items">

<!-- components will be fetched here -->

</div>
<footer>
<div class=" bg-black " >
<div class="">
<div class="pt-2 ps-3 pe-3 d-md-flex text-center justify-content-md-between align-items-center">
<h3 class="text-white">Follow Us</h3>
<ul class="list-inline text-dark mt-1 ">
<li class="list-inline-item m-2">
<a href="https://www.instagram.com/csi_ddu/" class="text-white text-decoration-none">
<i class="fab fa-instagram"></i> Instagram
</a>
</li>
<li class="list-inline-item m-2">
<a
href="https://www.linkedin.com/company/computer-society-of-india-ddu/mycompany/"
class="text-white text-decoration-none"
>
<i class="fab fa-linkedin "></i> LinkedIn
</a>
</li>
<li class="list-inline-item m-2">
<a href="https://medium.com/@csi_ddu" class="text-white text-decoration-none">
<i class="fab fa-medium"></i> Medium
</a>
</li>
<li class="list-inline-item m-2">
<a href="https://discord.gg/2aUM8ArA" class="text-white text-decoration-none">
<i class="fab fa-discord"></i> Discord
</a>
</li>
</ul>
</div>
</div>
</div>
</footer>
<!-- JS Section -->
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>

<script src="script.js"></script>
</body>

</html>
10 changes: 10 additions & 0 deletions Drak mode/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Dark Mode Toggle
const darkModeToggle = document.getElementById('darkModeToggle');
darkModeToggle.addEventListener('click', () => {
document.body.classList.toggle('dark-mode');
if (document.body.classList.contains('dark-mode')) {
darkModeToggle.textContent = 'Light Mode';
} else {
darkModeToggle.textContent = 'Dark Mode';
}
});
19 changes: 19 additions & 0 deletions Drak mode/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* Dark Mode Styles */
body.dark-mode {
background-color: #121212;
color: #ffffff;
}

body.dark-mode .navbar {
background-color: #1c1c1c;
}

body.dark-mode .btn-outline-light {
color: #ffffff;
border-color: #ffffff;
}

body.dark-mode .btn-outline-light:hover {
background-color: #ffffff;
color: #121212;
}

0 comments on commit eb100ab

Please sign in to comment.