Skip to content
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
14 changes: 2 additions & 12 deletions assets/css_files/faq.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body {
background-position: 50% 50%;
}

.circle {
/* .circle {
z-index: 999999;
width: 20px;
height: 20px;
Expand All @@ -21,17 +21,7 @@ body {
animation: colors 5s infinite;
position: fixed;
transform: translate(-50%, -50%);
}

.circle::before {
content: "";
position: fixed;
width: 50px;
height: 50px;
opacity: 0.2;
transform: translate(-30%, -30%);
border-radius: 50%;
}
} */

.faqWrapper {
padding: 3rem 0;
Expand Down
10 changes: 10 additions & 0 deletions assets/html_files/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@
<li class="nav-item">
<a href="./contact.html" class="nav-link"><i class="fa-solid fa-phone"></i> Contact</a>
</li>
<li class="nav-item color-dropdown">
<a href="#" class="nav-link"><i class="fa-solid fa-palette"></i> Theme</a>
<div class="color-dropdown-content">
<a href="#" data-color="purple" class="color-option"><span class="color-preview purple-preview"></span>Purple</a>
<a href="#" data-color="dark" class="color-option"><span class="color-preview dark-preview"></span>Dark</a>
<a href="#" data-color="blue" class="color-option"><span class="color-preview blue-preview"></span>Blue</a>
<a href="#" data-color="green" class="color-option"><span class="color-preview green-preview"></span>Green</a>
<a href="#" data-color="orange" class="color-option"><span class="color-preview orange-preview"></span>Orange</a>
</div>
</li>
</ul>
<button id="dark-mode-toggle"></button>
<div class="hamburger">
Expand Down
18 changes: 14 additions & 4 deletions assets/html_files/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
<link rel="stylesheet" type="text/css" href="../../style.css">
<link rel="stylesheet" type="text/css" href="../css_files/cursor.css">
<link rel="stylesheet" type="text/css" href="../css_files/contact.css">
<link rel="stylesheet" type="text/css" href="../css_files/commonstyle.css">
<link rel="stylesheet" type="text/css" href="../css_files/progressbar.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.1/css/all.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.8.1/font/bootstrap-icons.min.css">
<script src="../../script.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
<script src="https://kit.fontawesome.com/b08b6de27e.js" crossorigin="anonymous"></script>
<title>Beautiify | Contact Us</title>
</head>
Expand Down Expand Up @@ -53,7 +52,7 @@
<div class="circle" style="background-color: rgb(96, 0, 95); left: 504px; top: 59px; scale: 0.05;"></div>
</div>

<header class="header2">
<header>
<nav class="navbar">
<a href="../../index.html">
<div class="flex-container">
Expand Down Expand Up @@ -81,6 +80,16 @@
<li class="nav-item">
<a href="#" class="nav-link" style="color: red;"><i class="fa-solid fa-phone"></i> Contact</a>
</li>
<li class="nav-item color-dropdown">
<a href="#" class="nav-link"><i class="fa-solid fa-palette"></i> Theme</a>
<div class="color-dropdown-content">
<a href="#" data-color="purple" class="color-option"><span class="color-preview purple-preview"></span>Purple</a>
<a href="#" data-color="dark" class="color-option"><span class="color-preview dark-preview"></span>Dark</a>
<a href="#" data-color="blue" class="color-option"><span class="color-preview blue-preview"></span>Blue</a>
<a href="#" data-color="green" class="color-option"><span class="color-preview green-preview"></span>Green</a>
<a href="#" data-color="orange" class="color-option"><span class="color-preview orange-preview"></span>Orange</a>
</div>
</li>
</ul>
<button id="dark-mode-toggle"></button>
<div class="hamburger">
Expand Down Expand Up @@ -205,6 +214,7 @@ <h1 class="heading">Keep In Touch</h1>

<script src="../js_files/cursor.js"></script>
<script src="../js_files/commonscript.js"></script>
<script src="../../script.js"></script>
</body>

</html>
14 changes: 13 additions & 1 deletion assets/html_files/contributor.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
<link rel="stylesheet" type="text/css" href="../../style.css">
<link rel="stylesheet" type="text/css" href="../css_files/cursor.css">
<link rel="stylesheet" type="text/css" href="../css_files/contributor.css">
<link rel="stylesheet" type="text/css" href="../css_files/commonstyle.css">
<link rel="stylesheet" type="text/css" href="../css_files/progressbar.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.1/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.8.1/font/bootstrap-icons.min.css">
<script src="../../script.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
<script src="https://kit.fontawesome.com/b08b6de27e.js" crossorigin="anonymous"></script>
<title>Beautiify | Contributors</title>
</head>
Expand Down Expand Up @@ -79,6 +80,16 @@
<li class="nav-item">
<a href="./contact.html" class="nav-link"><i class="fa-solid fa-phone"></i> Contact</a>
</li>
<li class="nav-item color-dropdown">
<a href="#" class="nav-link"><i class="fa-solid fa-palette"></i> Theme</a>
<div class="color-dropdown-content">
<a href="#" data-color="purple" class="color-option"><span class="color-preview purple-preview"></span>Purple</a>
<a href="#" data-color="dark" class="color-option"><span class="color-preview dark-preview"></span>Dark</a>
<a href="#" data-color="blue" class="color-option"><span class="color-preview blue-preview"></span>Blue</a>
<a href="#" data-color="green" class="color-option"><span class="color-preview green-preview"></span>Green</a>
<a href="#" data-color="orange" class="color-option"><span class="color-preview orange-preview"></span>Orange</a>
</div>
</li>
</ul>
<button id="dark-mode-toggle"></button>
<div class="hamburger">
Expand Down Expand Up @@ -163,6 +174,7 @@ <h1 class="heading">Keep In Touch</h1>
<script src="../js_files/cursor.js"></script>
<script src="../js_files/contributor.js"></script>
<script src="../js_files/commonscript.js"></script>
<script src="../../script.js"></script>
</body>

</html>
10 changes: 10 additions & 0 deletions assets/html_files/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@
<li class="nav-item">
<a href="./contact.html" class="nav-link"><i class="fa-solid fa-phone"></i> Contact</a>
</li>
<li class="nav-item color-dropdown">
<a href="#" class="nav-link"><i class="fa-solid fa-palette"></i> Theme</a>
<div class="color-dropdown-content">
<a href="#" data-color="purple" class="color-option"><span class="color-preview purple-preview"></span>Purple</a>
<a href="#" data-color="dark" class="color-option"><span class="color-preview dark-preview"></span>Dark</a>
<a href="#" data-color="blue" class="color-option"><span class="color-preview blue-preview"></span>Blue</a>
<a href="#" data-color="green" class="color-option"><span class="color-preview green-preview"></span>Green</a>
<a href="#" data-color="orange" class="color-option"><span class="color-preview orange-preview"></span>Orange</a>
</div>
</li>
</ul>
<button id="dark-mode-toggle"></button>
<div class="hamburger">
Expand Down
Binary file added assets/images/bg_blue.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bg_green.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bg_orange.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions assets/js_files/theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Theme switching functionality
document.addEventListener('DOMContentLoaded', function() {
// Get all color options
const colorOptions = document.querySelectorAll('.color-option');

// Add click event for each color option
colorOptions.forEach(option => {
option.addEventListener('click', function(e) {
e.preventDefault();
const color = this.getAttribute('data-color');
changeBackgroundColor(color);
});
});

// Change background color function
function changeBackgroundColor(color) {
const body = document.body;

body.classList.remove('purple-bg', 'dark-bg', 'blue-bg', 'green-bg', 'orange-bg');

if (color === 'dark') {
body.classList.add('dark-mode');
} else {
body.classList.remove('dark-mode');
}

body.classList.add(`${color}-bg`);

// Save user preference to local storage
localStorage.setItem('preferred-bg-color', color);
}

// Apply saved color when page loads
const savedColor = localStorage.getItem('preferred-bg-color');
if (savedColor) {
changeBackgroundColor(savedColor);
} else {
// Default to purple background
document.body.classList.add('purple-bg');
}
});
17 changes: 14 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
</div>

<header class="header1">
<nav class="navbar" class="nav-bg1">
<nav class="navbar">
<a href="index.html">
<div class="flex-container">
<div class="flex-item-left"><img src="./assets/images/logo.png" width="37px" height="37px"></div>
<div class="flex-item-right" class="logo">Beautiify</div>
<div class="flex-item-right">Beautiify</div>
</div>
</a>

Expand All @@ -82,8 +82,19 @@
<li class="nav-item">
<a href="./assets/html_files/contact.html" class="nav-link"><i class="fa-solid fa-phone"></i> Contact</a>
</li>
<li class="nav-item color-dropdown">
<a href="#" class="nav-link"><i class="fa-solid fa-palette"></i> Theme</a>
<div class="color-dropdown-content">
<a href="#" data-color="purple" class="color-option"><span class="color-preview purple-preview"></span>Purple</a>
<a href="#" data-color="dark" class="color-option"><span class="color-preview dark-preview"></span>Dark</a>
<a href="#" data-color="blue" class="color-option"><span class="color-preview blue-preview"></span>Blue</a>
<a href="#" data-color="green" class="color-option"><span class="color-preview green-preview"></span>Green</a>
<a href="#" data-color="orange" class="color-option"><span class="color-preview orange-preview"></span>Orange</a>
</div>
</li>
</ul>
<button id="dark-mode-toggle"></button>

<!-- <button id="dark-mode-toggle"></button> -->
<div class="hamburger">
<span class="bar"></span>
<span class="bar"></span>
Expand Down
42 changes: 42 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,46 @@ document.addEventListener("DOMContentLoaded", function () {
});
}
// If elements are missing, silently do nothing
});

// Background color selection function
document.addEventListener('DOMContentLoaded', function() {
// Get all color options
const colorOptions = document.querySelectorAll('.color-option');

// Add click event for each color option
colorOptions.forEach(option => {
option.addEventListener('click', function(e) {
e.preventDefault();
const color = this.getAttribute('data-color');
changeBackgroundColor(color);
});
});

// Change background color function
function changeBackgroundColor(color) {
const body = document.body;

body.classList.remove('purple-bg', 'dark-bg', 'blue-bg', 'green-bg', 'orange-bg');

if (color === 'dark') {
body.classList.add('dark-mode');
} else {
body.classList.remove('dark-mode');
}

body.classList.add(`${color}-bg`);

// Save user preference to local storage
localStorage.setItem('preferred-bg-color', color);
}

// Apply saved color when page loads
const savedColor = localStorage.getItem('preferred-bg-color');
if (savedColor) {
changeBackgroundColor(savedColor);
} else {
// Default to purple background
document.body.classList.add('purple-bg');
}
});
Loading