Skip to content

Commit

Permalink
Merge branch 'main' into new-manjit
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkatty authored Oct 13, 2024
2 parents 93ac732 + bb78f83 commit e22358a
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 198 deletions.
6 changes: 3 additions & 3 deletions challenge.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
<a href="challenge.html" class="active">Challenge</a>
</div>
<div class="theme-toggle-wrapper">
<button id="theme-toggle">
<button style="cursor: pointer;" id="theme-toggle">
<i class="fas fa-sun"></i>
<i class="fas fa-moon"></i>
</button>
</div>

<a class="logo" href="index.html"><img src="logonew.svg" height="40" width="40"></a>
<a href="learn.html">Learn</a>
<a href="challenge.html" class="active">Challenge</a>
<!-- <a href="learn.html">Learn</a>
<a href="challenge.html" class="active">Challenge</a> -->

</div>

Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<title>Math 4 Python - Learn and Challenge Your Math Skills</title>
<meta name="description" content="A platform to learn mathematical concepts for Python programming and engage in coding challenges.">
<meta name="keywords" content="math, python, learning, challenges, programming">
<link rel="shortcut icon" href="Untitled design1.ico" type="image/x-icon">

<link rel="icon" href="newfavicon.svg" type="image/svg+xml">
<!-- <link rel="shortcut icon" href="Untitled design1.ico" type="image/x-icon">-->
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
Expand All @@ -21,7 +21,7 @@
<a href="challenge.html">Challenge</a>
</div>
<div class="theme-toggle-wrapper">
<button id="theme-toggle">
<button style="cursor: pointer;" id="theme-toggle">
<i class="fas fa-sun"></i>
<i class="fas fa-moon"></i>
</button>
Expand Down
6 changes: 5 additions & 1 deletion learn.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@
<a href="challenge.html">Challenge</a>
</div>
<div class="theme-toggle-wrapper">
<button id="theme-toggle">
<button style="cursor: pointer;" id="theme-toggle">
<i class="fas fa-sun"></i>
<i class="fas fa-moon"></i>
</button>
</div>

<a class="logo" href="index.html"><img src="logonew.svg" height="40" width="40" alt="Math 4 Python Logo"></a>

<!-- <a href="learn.html" class="active">Learn</a>
<a href="challenge.html">Challenge</a> -->
</div>

<div class="content">
Expand Down
4 changes: 4 additions & 0 deletions newfavicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,11 @@ function updateThemeIcon() {
const moonIcon = themeToggle.querySelector('.fa-moon');

if (document.body.classList.contains('dark-theme')) {
themeToggle.title = 'Switch to light theme';
sunIcon.style.display = 'inline-block';
moonIcon.style.display = 'none';
} else {
themeToggle.title = 'Switch to dark theme';
sunIcon.style.display = 'none';
moonIcon.style.display = 'inline-block';
}
Expand Down
Loading

0 comments on commit e22358a

Please sign in to comment.