Skip to content

Commit

Permalink
Updated text-color to white
Browse files Browse the repository at this point in the history
  • Loading branch information
devanshaggarwal03 committed Oct 28, 2024
1 parent 8914e63 commit 9a2eacb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
6 changes: 3 additions & 3 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ body {
color: transparent;
-webkit-text-stroke: 1px white;
background: url(img/back.png);
-webkit-background-clip: text;
--webkit-background-clip: text;
background-position: 0 0;
filter: blur(20px);
opacity: 0;
Expand Down Expand Up @@ -641,8 +641,8 @@ body {
color: #000;
}
/* Dark mode styles */
[data-theme="dark"] .card-heading {
color: #ffffff; /* white color for dark mode */
[data-theme="dark"].card-heading {
color: #fff; /* white color for dark mode */
}

.card-description {
Expand Down
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<link rel="stylesheet" href= "./css/style.css" />
<link rel="preconnect" href= "https://fonts.googleapis.com" />
<link rel="preconnect" href= "https://fonts.gstatic.com" crossorigin />
<<<<<<< Updated upstream
<link
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
Expand All @@ -17,6 +18,11 @@
href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css"
rel="stylesheet"
/>
=======
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet" />
<main>

>>>>>>> Stashed changes
<style>
body {
font-family: 'Poppins', sans-serif;
Expand Down Expand Up @@ -69,6 +75,11 @@
filter: grayscale(0%); /* Color on hover */
}</style>

<<<<<<< Updated upstream
=======
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet" />
>>>>>>> Stashed changes
<link rel="shortcut icon" href="./assets/image/favicon.png" type="image/x-icon">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet" />
<link rel="stylesheet" href="./footer.css">
Expand Down
10 changes: 5 additions & 5 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const toggleModeBtn = document.getElementById("toggle-mode-btn");
var toggleModeBtn = document.getElementById("toggle-mode-btn");
const prefersDarkScheme = window.matchMedia("(prefers-color-scheme: dark)");
let nextBtn = document.querySelector(".next");
let prevBtn = document.querySelector(".prev");
Expand Down Expand Up @@ -81,17 +81,17 @@ function setTheme(theme) {
}

const savedTheme = localStorage.getItem("theme");
if (savedTheme) {
setTheme(savedTheme);
if (savedTheme == "dark") {
setTheme("dark");
} else if (prefersDarkScheme.matches) {
setTheme("dark");
} else {
setTheme("light");
}

toggleModeBtn.onclick = () => {
toggleModeBtn.onClick = () => {
const currentTheme = document.documentElement.getAttribute("data-theme");
const newTheme = currentTheme === "light" ? "dark" : "light";
const newTheme = (currentTheme == "light" ? "dark" : "light");

setTheme(newTheme);

Expand Down

0 comments on commit 9a2eacb

Please sign in to comment.