Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented Dark Mode all pages of website #414

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
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
12 changes: 12 additions & 0 deletions Pages/3D-Visualizations/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="media-queries.css">
<link rel="icon" type="image/x-icon" href="../../assets/logo.png">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="https://unpkg.com/scrollreveal"></script>
</head><link
href="https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css"
Expand Down Expand Up @@ -44,6 +45,17 @@
<li><a href="../Doubt Engine/index.html" class="no-underline inline-block text-primary_text_color transition duration-200 ease-out hover:text-accent_color">
<i class="fa-solid fa-check-double" style="font-size:10px;"></i>
Doubt Engine</a></li>
<li>
<div class="switch-container">
<input type="checkbox" id="switch" class="switch-checkbox">
<label for="switch" class="switch-label">
<div class="switch-button">
<span class="material-icons sun-icon">wb_sunny</span>
<span class="material-icons moon-icon">brightness_2</span>
</div>
</label>
</div>
</li>
</ul>
</div>
<div class="hamburger">
Expand Down
83 changes: 82 additions & 1 deletion Pages/3D-Visualizations/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -325,4 +325,85 @@ nav {
nav a {
font-weight: normal;
font-size: .90em;
}
}

/* Switch Container */
.switch-container {
position: absolute;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
}

/* Hidden Checkbox */
.switch-checkbox {
display: none;
}

/* Switch Label */
.switch-label {
position: relative;
width: 45px;
height: 30px;
background-color: #ccc;
border-radius: 20px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.5s ease;
}

.switch-label .sun-icon,
.switch-label .moon-icon {
font-size: 19px;
position: absolute;
cursor: pointer;
top: 50%;
transform: translateY(-50%);
transition: opacity 0.5s ease, color 0.5s ease;
}

.switch-label .sun-icon {
color: #f39c12;
left: 2px;
}

.switch-label .moon-icon {
color: #bdc3c7;
opacity: 0;
left: 5px;
}

/* Switch Button */
.switch-button {
position: absolute;
top: 3px;
left: 3px;
width: 25px;
height: 25px;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
transition: transform 0.5s ease, background-color 0.5s ease;
}

/* Checkbox Checked State */
.switch-checkbox:checked + .switch-label {
background-color: #111111;
}

.switch-checkbox:checked + .switch-label .sun-icon {
opacity: 0;
}

.switch-checkbox:checked + .switch-label .moon-icon {
opacity: 1;
}

.switch-checkbox:checked + .switch-label .switch-button {
transform: translateX(13px);
background-color: #34495e;
}
16 changes: 15 additions & 1 deletion Pages/About-Us/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="media-queries.css">
<link rel="icon" type="image/x-icon" href="../../assets/logo.png">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="https://unpkg.com/scrollreveal"></script>
<script src="https://cdn.tailwindcss.com"></script>
<script>
Expand Down Expand Up @@ -81,6 +82,18 @@
class="no-underline inline-block text-primary_text_color transition duration-200 ease-out hover:text-accent_color">
<i class="fa-solid fa-check-double" style="font-size:10px;"></i>
Doubt Engine</a></li>
<li>
<div class="switch-container">
<input type="checkbox" id="switch" class="switch-checkbox">
<label for="switch" class="switch-label">
<div class="switch-button">
<span class="material-icons sun-icon">wb_sunny</span>
<span class="material-icons moon-icon">brightness_2</span>
</div>
</label>
</div>
</li>

</ul>
</div>
<div class="hamburger cursor-pointer">
Expand Down Expand Up @@ -176,7 +189,8 @@ <h1 class="text-[2rem] font-bold text-center mt-[4vh] md:text-[2rem] lg:text-5xl
});
</script>
<script src="../../scroll-reveal.js"></script>
<script src="../../mode-switch.js"></script>

</body>

</html>
</html>
84 changes: 83 additions & 1 deletion Pages/About-Us/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,86 @@ nav {
nav a {
font-weight: normal;
font-size: .90em;
}
}


/* Switch Container */
.switch-container {
position: absolute;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
}

/* Hidden Checkbox */
.switch-checkbox {
display: none;
}

/* Switch Label */
.switch-label {
position: relative;
width: 45px;
height: 30px;
background-color: #ccc;
border-radius: 20px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.5s ease;
}

.switch-label .sun-icon,
.switch-label .moon-icon {
font-size: 19px;
position: absolute;
cursor: pointer;
top: 50%;
transform: translateY(-50%);
transition: opacity 0.5s ease, color 0.5s ease;
}

.switch-label .sun-icon {
color: #f39c12;
left: 2px;
}

.switch-label .moon-icon {
color: #bdc3c7;
opacity: 0;
left: 5px;
}

/* Switch Button */
.switch-button {
position: absolute;
top: 3px;
left: 3px;
width: 25px;
height: 25px;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
transition: transform 0.5s ease, background-color 0.5s ease;
}

/* Checkbox Checked State */
.switch-checkbox:checked + .switch-label {
background-color: #111111;
}

.switch-checkbox:checked + .switch-label .sun-icon {
opacity: 0;
}

.switch-checkbox:checked + .switch-label .moon-icon {
opacity: 1;
}

.switch-checkbox:checked + .switch-label .switch-button {
transform: translateX(13px);
background-color: #34495e;
}
14 changes: 14 additions & 0 deletions Pages/Doubt Engine/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<link rel="stylesheet" href="media-queries.css">
<link rel="icon" type="image/x-icon" href="../HomePage/assets/logo.png">
<script src="https://unpkg.com/scrollreveal"></script>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
Expand Down Expand Up @@ -72,6 +73,18 @@
<li><a href="../Doubt Engine/index.html" class="no-underline inline-block text-primary_text_color transition duration-200 ease-out hover:text-accent_color current-page">
<i class="fa-solid fa-check-double" style="font-size:10px;"></i>
Doubt Engine</a></li>
<li>
<div class="switch-container">
<input type="checkbox" id="switch" class="switch-checkbox">
<label for="switch" class="switch-label">
<div class="switch-button">
<span class="material-icons sun-icon">wb_sunny</span>
<span class="material-icons moon-icon">brightness_2</span>
</div>
</label>
</div>
</li>

</ul>
</div>
<div class="hamburger cursor-pointer">
Expand Down Expand Up @@ -122,6 +135,7 @@ <h1 class="text-[2rem] font-bold text-center mt-[4vh] md:text-[2rem] lg:text-5xl
})
</script>
<script src="../../scroll-reveal.js"></script>
<script src="../../mode-switch.js"></script>

</body>
</html>
83 changes: 82 additions & 1 deletion Pages/Doubt Engine/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,85 @@
nav a {
font-weight: normal;
font-size: .90em;
}
}

/* Switch Container */
.switch-container {
position: absolute;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
}

/* Hidden Checkbox */
.switch-checkbox {
display: none;
}

/* Switch Label */
.switch-label {
position: relative;
width: 45px;
height: 30px;
background-color: #ccc;
border-radius: 20px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.5s ease;
}

.switch-label .sun-icon,
.switch-label .moon-icon {
font-size: 19px;
position: absolute;
cursor: pointer;
top: 50%;
transform: translateY(-50%);
transition: opacity 0.5s ease, color 0.5s ease;
}

.switch-label .sun-icon {
color: #f39c12;
left: 2px;
}

.switch-label .moon-icon {
color: #bdc3c7;
opacity: 0;
left: 5px;
}

/* Switch Button */
.switch-button {
position: absolute;
top: 3px;
left: 3px;
width: 25px;
height: 25px;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
transition: transform 0.5s ease, background-color 0.5s ease;
}

/* Checkbox Checked State */
.switch-checkbox:checked + .switch-label {
background-color: #111111;
}

.switch-checkbox:checked + .switch-label .sun-icon {
opacity: 0;
}

.switch-checkbox:checked + .switch-label .moon-icon {
opacity: 1;
}

.switch-checkbox:checked + .switch-label .switch-button {
transform: translateX(13px);
background-color: #34495e;
}
15 changes: 15 additions & 0 deletions Pages/Quizes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<title>Virtuo Learn</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="media-queries.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

<link rel="icon" type="image/x-icon" href="../../assets/logo.png">
<link
href="https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css"
Expand Down Expand Up @@ -46,6 +48,18 @@
<li><a href="../Doubt Engine/index.html" class="no-underline inline-block text-primary_text_color transition duration-200 ease-out hover:text-accent_color">
<i class="fa-solid fa-check-double" style="font-size:10px;"></i>
Doubt Engine</a></li>
<li>
<div class="switch-container">
<input type="checkbox" id="switch" class="switch-checkbox">
<label for="switch" class="switch-label">
<div class="switch-button">
<span class="material-icons sun-icon">wb_sunny</span>
<span class="material-icons moon-icon">brightness_2</span>
</div>
</label>
</div>
</li>

</ul>
</div>
<div class="hamburger">
Expand Down Expand Up @@ -278,6 +292,7 @@ <h2>Digestion and Absorption</h2>
}
</script>
<script src="../../scroll-reveal.js"></script>
<script src="../../mode-switch.js"></script>

</body>
</html>
Loading
Loading