Skip to content

Commit

Permalink
feat: add dark theme to the entire website (#903)
Browse files Browse the repository at this point in the history
<!-- ISSUE & PR TITLE SHOULD BE SAME-->
## Description
the project earlier was having a dark theme that was applied to just the
navbar of only the index.html, i added it to each and every part of
every html page in the project


## Related Issues

#574
#595
#746
#759
#814 
#815 
#816 

## Type of PR
<!-- Mention PR Type according to the issue in brackets below and check
the below box -->
* [x]  feature: Adding a dark theme to the entire project

## Screenshots / videos (if applicable)

![Screenshot 2025-02-25
024338](https://github.com/user-attachments/assets/7559d86e-f718-455b-a766-af5e8855681b)
![Screenshot 2025-02-25
024353](https://github.com/user-attachments/assets/a3ac16ca-e3ae-4a59-a265-1b2288cbcdb8)
![Screenshot 2025-02-25
024457](https://github.com/user-attachments/assets/d1dc4734-042c-4b8c-8f9b-5e4a96709db1)
![Screenshot 2025-02-25
024514](https://github.com/user-attachments/assets/118a6cf8-3055-4404-bfe8-0a9a916012e0)
![Screenshot 2025-02-25
024523](https://github.com/user-attachments/assets/89ec15da-12ac-4c83-be4e-04cf67fd9352)
![Screenshot 2025-02-25
024535](https://github.com/user-attachments/assets/3919f53a-efb7-4848-bc3a-94a0f5488536)
<!--Attach any relevant screenshots or videos demonstrating the
changes-->


## Checklist
<!-- [X] - put a cross/X inside [] to check the box -->
- [X] I have gone through the [contributing
guide](https://github.com/Anjaliavv51/Retro)
- [X] I have updated my branch and synced it with project `main` branch
before making this PR
- [X] I have performed a self-review of my code
- [X] I have tested the changes thoroughly before submitting this pull
request.
- [X] I have provided relevant issue numbers, screenshots, and videos
after making the changes.
- [x] I have commented my code, particularly in hard-to-understand
areas.


## Additional context:
<!--Include any additional information or context that might be helpful
for reviewers.-->
  • Loading branch information
harmeetsingh11 authored Feb 27, 2025
2 parents 4509091 + 344f5d2 commit 5f7bbc7
Show file tree
Hide file tree
Showing 27 changed files with 706 additions and 268 deletions.
145 changes: 9 additions & 136 deletions Coverpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,120 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animated Title and Explore Button</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body, html {
height: 100%;
font-family: 'Arial', sans-serif;
}

.container {
background-image: url('RETRO.png');
background-size: cover;
background-position: center;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
position: relative; /* Ensure container can position children absolutely */
}

.explore-btn {
margin-left: 35%;
margin-top: 20px;
padding: 15px 30px;
font-size: 1.6rem;
color: rgb(115, 45, 45);
background-color: #ff6347;
border: none;
border-radius: 15px;
cursor: pointer;
transition: all 0.3s ease-in-out;
animation: pulse 1.5s infinite;
font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.explore-btn:hover {
background-color: #ff4500;
transform: scale(1.1);
}

@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}

/* SVG Styles */
svg {
margin-left: 35%;
font-family: Algerian;
width: 100%;
height: auto; /* Maintain aspect ratio */
max-width: 600px; /* Limit size */
}
svg text {
animation: stroke 5s infinite alternate;
stroke-width: 2;
stroke: #582f0e;
font-size: 100px;
}
@keyframes stroke {
0% {
fill: rgba(72,138,204,0);
stroke: #582f0e;
stroke-dashoffset: 25%;
stroke-dasharray: 0 50%;
stroke-width: 2;
}
70% {
fill: rgba(72,138,204,0);
stroke: rgb(253, 137, 137);
}
80% {
fill: rgba(72,138,204,0);
stroke: #582f0e;
stroke-width: 3;
}
100% {
fill: #582f0e;
stroke: rgb(0, 0, 0);
stroke-dashoffset: -25%;
stroke-dasharray: 50% 0;
stroke-width: 0;
}
}

@media screen and (max-width: 1095.54px) {
svg text {
font-size: 100px; /* Adjust font size for smaller screens */

}
}
.small-text {
font-size: 1.5rem; /* Smaller font size for "Welcome to" */
color: rgb(136, 9, 9);
text-transform: uppercase;
text-decoration-thickness: 50px;
font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
display: block;
margin-top: 70px;
margin-left: 35%;
}
</style>
<link rel="stylesheet" href="Css-files/coverpage.css">
<link rel="stylesheet" href="/dark-mode/dark-mode.css">
</head>
<body>
<div class="container">
Expand All @@ -131,28 +19,13 @@

<button class="explore-btn" onclick="explore()">Explore</button>
</div>

<script>
function explore() {
alert("Let's explore the Retro World!");
// Redirect to index.html
window.location.href = "index.html";
}
</script>
<script>
window.embeddedChatbotConfig = {
chatbotId: "dGlQ5bP-F7GodLWzgrVAx",
domain: "www.chatbase.co"
}
</script>
<script
src="https://www.chatbase.co/embed.min.js"
chatbotId="dGlQ5bP-F7GodLWzgrVAx"
domain="www.chatbase.co"
defer>
</script>
<div class="gtranslate_wrapper"></div>
<script>window.gtranslateSettings = {"default_language":"en","detect_browser_language":true,"wrapper_selector":".gtranslate_wrapper"}</script>



<script src="script/coverpage.js"></script>
<script src="https://www.chatbase.co/embed.min.js" chatbotId="dGlQ5bP-F7GodLWzgrVAx" domain="www.chatbase.co" defer></script>
<script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>
<script src="/dark-mode/dark-mode.js"></script>
</body>
</html>
</html>
126 changes: 126 additions & 0 deletions Css-files/coverpage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body,
html {
height: 100%;
font-family: 'Arial', sans-serif;
}

.container {
background-image: url('../images/RETRO.png');
background-size: cover;
background-position: center;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
position: relative;
/* Ensure container can position children absolutely */
}

.explore-btn {
margin-left: 35%;
margin-top: 20px;
padding: 15px 30px;
font-size: 1.6rem;
color: rgb(115, 45, 45);
background-color: #ff6347;
border: none;
border-radius: 15px;
cursor: pointer;
transition: all 0.3s ease-in-out;
animation: pulse 1.5s infinite;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.explore-btn:hover {
background-color: #ff4500;
transform: scale(1.1);
}

@keyframes pulse {
0% {
transform: scale(1);
}

50% {
transform: scale(1.05);
}

100% {
transform: scale(1);
}
}

/* SVG Styles */
svg {
margin-left: 35%;
font-family: Algerian;
width: 100%;
height: auto;
/* Maintain aspect ratio */
max-width: 600px;
/* Limit size */
}

svg text {
animation: stroke 5s infinite alternate;
stroke-width: 2;
stroke: #582f0e;
font-size: 100px;
}

@keyframes stroke {
0% {
fill: rgba(72, 138, 204, 0);
stroke: #582f0e;
stroke-dashoffset: 25%;
stroke-dasharray: 0 50%;
stroke-width: 2;
}

70% {
fill: rgba(72, 138, 204, 0);
stroke: rgb(253, 137, 137);
}

80% {
fill: rgba(72, 138, 204, 0);
stroke: #582f0e;
stroke-width: 3;
}

100% {
fill: #582f0e;
stroke: rgb(0, 0, 0);
stroke-dashoffset: -25%;
stroke-dasharray: 50% 0;
stroke-width: 0;
}
}

@media screen and (max-width: 1095.54px) {
svg text {
font-size: 100px;
/* Adjust font size for smaller screens */

}
}

.small-text {
font-size: 1.5rem;
/* Smaller font size for "Welcome to" */
color: rgb(136, 9, 9);
text-transform: uppercase;
text-decoration-thickness: 50px;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
display: block;
margin-top: 70px;
margin-left: 35%;
}
4 changes: 2 additions & 2 deletions Css-files/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ body {
font-size: 1.3rem;
}

.navbar li:hover {
.navbar li:hover {
opacity: 0.7;
}

Expand Down Expand Up @@ -342,7 +342,7 @@ body {

.move {
background-color: rgb(224, 224, 252);;
height: 60px;
height: 0px;
}

.move .text {
Expand Down
2 changes: 1 addition & 1 deletion Html-files/Electronic.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<link
rel="shortcut icon"
type="image/x-icon"
href="../favicon.ico"
href="../Favicon image/favicon-32x32.png"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
Expand Down
17 changes: 12 additions & 5 deletions Html-files/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@
rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Baloo+Bhai|Bree+Serif&display=swap" rel="stylesheet">
<link rel="stylesheet" href="../Css-files/about.css">
<link rel="shortcut icon" type="image/x-icon" href="../favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="../Favicon image/favicon-32x32.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link 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">

<link rel="stylesheet" href="/dark-mode/dark-mode.css">
<style>
@import url('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');
@import url('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');
Expand Down Expand Up @@ -629,6 +631,10 @@
</div>
-->
</div>
<button id="darkModeToggle" class="btn btn-secondary" style="margin-left: 10px;">
<i class="fas fa-sun" id="toggleIcon" style="font-size: 20px;"></i>
<span id="toggleText">Light Mode</span>
</button>
</div>
</nav>
</header>
Expand Down Expand Up @@ -660,7 +666,7 @@ <h1 class="animated-header" style="color: #dc3545;">


<div class="about2">
<h2 class=section__titlestyle style="font-family: var(--ff-philosopher);color: hsl(357, 82%,35%);">Our Story</h2>
<h2 class="section__titlestyle" style="font-family: var(--ff-philosopher);color: hsl(357, 82%,35%);">Our Story</h2>
<p style="font-family: var(--ff-poppins);color: hsl(208, 7%,46%);">Retro was born from a desire to relive and share the joy of the past. We believe that every era has something special to offer, whether it’s the bold designs of the 60s, the innovative spirit of the 70s, or the tech revolutions of the 80s and 90s. Our journey began with a passion for collecting vintage items and a dream to create a space where people could immerse themselves in a world that captures the essence of different generations.</p>
</div>

Expand All @@ -669,13 +675,13 @@ <h2 class=section__titlestyle style="font-family: var(--ff-philosopher);color: h

<section class="about_container" style="width:80vw;margin-top: 80px;margin-bottom: 30px;">
<div class="about3">
<h2 class=section__title>Why Choose Retro?</h2>
<h2 class="section__title">Why Choose Retro?</h2>
<p style="font-family: var(--ff-poppins);color: hsl(208, 7%,46%);">We’re not just about products – we’re about creating a lifestyle that honors the beauty and inspiration of the past. Each item we offer is carefully selected to bring nostalgia to life, allowing you to embrace the timeless designs, flavors, and stories that have shaped history. Whether you're a vintage enthusiast or simply love the look and feel of classic designs, Retro is your gateway to a world that values tradition as much as it does innovation.</p>
</div>
</section>


<footer class="new_footer_area bg_color">
<footer id="abouthtml" class="new_footer_area bg_color">
<div class="new_footer_top">
<div class="container">
<div class="row">
Expand Down Expand Up @@ -777,7 +783,7 @@ <h3 class="f-title f_600 t_color f_size_18">Follow Us</h3>
</div>

<!-- Footer Bottom -->
<div class="footer_bottom">
<div class="footer_bottom abouthtml">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-6 col-sm-7">
Expand Down Expand Up @@ -941,6 +947,7 @@ <h3 class="f-title f_600 t_color f_size_18">Follow Us</h3>
<div class="gtranslate_wrapper"></div>
<script>window.gtranslateSettings = {"default_language":"en","detect_browser_language":true,"wrapper_selector":".gtranslate_wrapper"}</script>
<script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>
<script src="/dark-mode/dark-mode.js"></script>
</body>

</html>
Loading

0 comments on commit 5f7bbc7

Please sign in to comment.