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

✨[feature Request]:Dark Mode/ Light Mode Toggle #229

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 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: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

"liveServer.settings.port": 5501
"liveServer.settings.port": 5502
}
114 changes: 110 additions & 4 deletions Html-files/cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Retro</title>

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">

<link
href="https://fonts.googleapis.com/css2?family=Fuggles&amp;family=Mooli&amp;family=Oswald:wght@600&amp;family=Roboto:wght@100;300&amp;display=swap"
rel="stylesheet">
Expand All @@ -23,6 +26,88 @@
href="https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&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">
<style>

/* */
section {
background-color: transparent;
}
#headConatiner{
background-color:transparent;
}
.mainhead h1{
color: black;
}
#footer{
background-color:hsl(20, 43%, 93%);
}
.copyright{
color: hsl(203, 30%,26%);
}

body {
transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

[data-bs-theme='light'] {
background-color: #ffffff; /* Light background */
color: #000000; /* Light text color */
}

[data-bs-theme='dark'] {
background-color: #000000; /* Dark background */
color: #ffffff; /* Light text color */
}

.section {
transition: background-color 0.3s ease; /* Smooth transition for sections */
}

/* for navbar */
[data-bs-theme='light'] #headContainer{
background-color: transparent;
color: #000;
a{
color: #000;
}
}
/* for footer */
[data-bs-theme='light'] #footer{
background-color: hsl(20, 43%, 93%);
}


[data-bs-theme='light'] .section {
background-color: transparent; /* Light section background */
}

/* for navbar */
[data-bs-theme='dark'] #headContainer{
background-color: rgb(74, 74, 74);
color: #ffffff;
h1{
color: #fff;
}
a{
color: #fff;
}
}
/* for footer */
[data-bs-theme='dark'] #footer{
background-color: rgb(136, 136, 136);
p{
color: #d4d4d4;
}
.copyright{
color: #fff;
}
}

[data-bs-theme='dark'] .section {
background-color: rgb(74, 74, 74); /* Dark section background */
}
/* */


/*Preloader CSS*/
#preloader {
position: fixed;
Expand Down Expand Up @@ -279,21 +364,41 @@
<div class="circle" style="background-color: rgb(104, 0, 96); left: 504px; top: 59px; scale: 0.1;"></div>
<div class="circle" style="background-color: rgb(96, 0, 95); left: 504px; top: 59px; scale: 0.05;"></div>
</div>
<div class="head_container" style="background-color: transparent;font-family: Georgia;">
<div id="headContainer" class="head_container" style="font-family: Georgia;">
<header>
<nav class="navbar">
<ul id="header-items">
<<<<<<< HEAD
<li>
<!-- Bootstrap 5 switch -->
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="darkModeSwitch" checked>
<label class="form-check-label" for="darkModeSwitch">Dark Mode</label>
<script src="../script.js"></script> <!-- Link to your JavaScript -->
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> -->
</div>
</li>
<li><a href="../index.html" style="font-family: var(--ff-philosopher);">Home</a></li>
<li><a href="menu.html" style="font-family: var(--ff-philosopher);">About</a></li>
<li><a href="services.html" style="font-family: var(--ff-philosopher);">Services</a></li>
<li><a href="contact.html" style="font-family: var(--ff-philosopher);">Contact us</a></li>
<li><a href="cart.html" style="font-family: var(--ff-philosopher);">Cart</a></li>
=======
<li><a href="../Home.html" style="color: black;font-family: var(--ff-philosopher);">Home</a></li>
<li><a href="menu.html" style="color: black;font-family: var(--ff-philosopher);">Collections</a></li>
<li><a href="about.html" style="color: black;font-family: var(--ff-philosopher);">About</a></li>
<li><a href="services.html" style="color: black;font-family: var(--ff-philosopher);">Services</a></li>
<li><a href="contact.html" style="color: black;font-family: var(--ff-philosopher);">Contact us</a></li>
<li><a href="cart.html" style="color: black;font-family: var(--ff-philosopher);">Cart</a></li>
>>>>>>> 677221fd839cc76de334c53b34af0fc02609b97c
</ul>
</nav>
</header>

<div class="mainhead">
<<<<<<< HEAD
<h1 style="font-family: var(--ff-philosopher);">C A R T</h1>
=======
<h1 style="color: black;font-family: var(--ff-philosopher);">C A R T</h1>
</div>
<div class="circle-container">
Expand Down Expand Up @@ -334,10 +439,11 @@ <h1 style="color: black;font-family: var(--ff-philosopher);">C A R T</h1>
<div class="mainhead">
<h1 style="color: black;font-family: var(--ff-philosopher);">C A R T</h1>
</div>
>>>>>>> 677221fd839cc76de334c53b34af0fc02609b97c
</div>
</div>

<section class="cart-section" style="background-color: transparent;">
<section id="section1" class="section cart-section">
<div id="couponCode" style="font-family: var(--ff-poppins);">Use coupon code <span style="font-weight: bold;">
<u>3p9xLnDE</u> </span> for 30% off!</div>

Expand Down Expand Up @@ -379,7 +485,7 @@ <h1 style="color: black;font-family: var(--ff-philosopher);">C A R T</h1>
style="font-family: var(--ff-philosopher);">Order Now</button>
</section>

<footer>
<footer id="footer">
<div class="foot-panel2">
<ul class="footer-colums">
<p style="font-family: var(--ff-philosopher);">Our Pages</p>
Expand Down Expand Up @@ -446,7 +552,7 @@ <h4 style="color: hsl(203, 30%,26%);font-family: var(--ff-philosopher);">Follow
<p style="margin-bottom:0;font-family: var(--ff-philosopher);">Stay connected with us on social media for the
latest updates, latest collection, and vintage adventures.
</p>
<div class="copyright" style="color: hsl(203, 30%,26%);font-family: var(--ff-philosopher);">
<div class="copyright" style="font-family: var(--ff-philosopher);">
© 2024 Retro . All Rights Reserved. | <span id="author">
<a href="https://www.linkedin.com" target="_blank" style="text-decoration: none;">Retro Team</a>
</span>
Expand Down
Loading