Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
vishantrathi authored Oct 16, 2024
2 parents 0c59ccc + fa096fd commit 73a20a2
Show file tree
Hide file tree
Showing 7 changed files with 218 additions and 124 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/jekyll-gh-pages.yml

This file was deleted.

168 changes: 160 additions & 8 deletions Feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,8 @@
color: black;
padding: 10px;
}
ul li a:hover {
color: rgb(56, 56, 237) !important;
}
a:hover {
color: rgb(1, 4, 177) !important;
}



.navbar.dark-mode {
background-color: black;
Expand Down Expand Up @@ -103,7 +99,7 @@
}

.menu a:hover {
background-color: rgb(22, 160, 219);
background-color: blue;
/* Blue background on hover */
color: white;
/* White text on hover */
Expand Down Expand Up @@ -760,12 +756,155 @@ <h3>How can hospitals benefit from AmbuFlow?</h3>
// Back to top button functionality
const backToTopButton = document.getElementById('backToTopBtn');

<<<<<<< HEAD
<script src="preloader.js"></script>

<script>

document.addEventListener('DOMContentLoaded', function () {
const toggleButton = document.getElementById('dark-mode-toggle');
const darkModeButton = document.querySelector('.dark-mode-toggle');
const logoImage = document.querySelector('.logo img'); // Select the logo image
const navbar = document.querySelector('.navbar'); // Select the navbar

// Reset to light mode for the Contact page
document.body.classList.remove("dark-mode");
document.body.classList.add("light-mode");
darkModeButton.innerHTML = '<i class="fa-solid fa-moon"></i>'; // Set icon for light mode
navbar.classList.remove("dark-mode"); // Ensure navbar is in light mode

// Clear the sessionStorage for theme on this page
sessionStorage.removeItem("theme");

toggleButton.addEventListener('click', function () {
document.body.classList.toggle('dark-mode');
navbar.classList.toggle('dark-mode'); // Toggle dark mode for navbar

// Update sessionStorage based on current mode
if (document.body.classList.contains('dark-mode')) {
sessionStorage.setItem("theme", "dark");
darkModeButton.innerHTML = '<i class="fa-solid fa-sun"></i>'; // Change icon
} else {
sessionStorage.setItem("theme", "light");
darkModeButton.innerHTML = '<i class="fa-solid fa-moon"></i>'; // Change icon
}

});
});

// end
</script>

<script>
// Add event listeners to each star label for toggling the selection
const stars = document.querySelectorAll('.star-rating input');
stars.forEach(star => {
star.addEventListener('change', function () {
// Remove the checked state from all stars
stars.forEach(s => {
const label = document.querySelector(`label[for="${s.id}"]`);
label.style.color = '#ddd'; // Reset color for unselected stars
});
// Highlight the selected star and all previous stars
this.checked = true;
const currentStarValue = this.value;
for (let i = 1; i <= currentStarValue; i++) {
const label = document.querySelector(`label[for="star${i}"]`);
label.style.color = '#ffdd00'; // Highlight selected stars
}
});
});

// Handle form submission
const form = document.getElementById('feedback-box');
const feedbackBox = document.querySelector('.feedback-box');
const thankYouMessage = document.getElementById('thank-you-message');

form.addEventListener('submit', function (event) {
event.preventDefault(); // Prevent the default form submission

// Hide the feedback-box div
feedbackBox.style.display = 'none';

// Show the thank-you message
thankYouMessage.style.display = 'flex';

// Hide the form to avoid further submissions
form.style.display = 'none';

// Redirect to the home page after 2 seconds
setTimeout(function () {
window.location.href = 'index.html';
}, 5000); // Adjust the delay as needed
});

// Update or add this JavaScript for the cursor effect
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");

const colors = [
"#ffb56b",
"#fdaf69",
"#f89d63",
"#f59761",
"#ef865e",
"#ec805d",
"#e36e5c",
"#df685c",
"#d5585c",
"#d1525c",
"#c5415d",
"#c03b5d",
"#b22c5e",
"#ac265e",
"#9c155f",
"#950f5f",
"#830060",
"#7c0060",
"#680060",
"#60005f",
"#48005f",
"#3d005e"
];

circles.forEach(function (circle, index) {
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length];
});

window.addEventListener("mousemove", function (e) {
coords.x = e.clientX;
coords.y = e.clientY;
});

function animateCircles() {
let x = coords.x;
let y = coords.y;

circles.forEach(function (circle, index) {
circle.style.left = x - 12 + "px";
circle.style.top = y - 12 + "px";

circle.style.scale = (circles.length - index) / circles.length;

circle.x = x;
circle.y = y;

const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
});

requestAnimationFrame(animateCircles);
=======
// Show the button when scrolled down 100px from the top
window.onscroll = function () {
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
backToTopButton.style.display = "block";
} else {
backToTopButton.style.display = "none";
>>>>>>> c3e6128543c5c7da4acc09c472a624a52adb1043
}
};

Expand Down Expand Up @@ -862,11 +1001,24 @@ <h3>How can hospitals benefit from AmbuFlow?</h3>
"detect_browser_language": true,
"wrapper_selector": ".gtranslate_wrapper",
"alt_flags": {"en": "usa"}
}
}
</script>

<script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>

<script>
});

window.addEventListener('click', (event) => {
if (event.target === faqPopup) {
faqPopup.style.display = 'none';
}
});
</script>


<!-- Add this if it's not already present -->
<div class="circle"></div>
<!-- Add this if it's not already present -->
<div class="circle"></div>
</body>
Expand Down
9 changes: 0 additions & 9 deletions _config.yml

This file was deleted.

38 changes: 0 additions & 38 deletions _layouts/default.html

This file was deleted.

26 changes: 14 additions & 12 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -350,18 +350,20 @@
align-items: center;
animation: logoAnimation 1s ease forwards;
}
ul li a:hover {
color: blue !important;
}
a:hover {
color: blue !important;
}
.menu ul li a:hover {
background-color: rgb(10, 61, 212) !important;
/* Blue background on hover */
color: white !important;
/* White text on hover */
}

ul li a:hover {
color: blue !important; /* Hover color for all links */
}

a:hover {
color: blue !important; /* General hover color */
}

.menu ul li a:hover {
background-color: rgb(10, 61, 212) !important; /* Blue background on hover */
color: white !important; /* White text on hover */
}


.brand-name {
display: flex;
Expand Down
32 changes: 23 additions & 9 deletions features.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@
/* Black text on hover in dark mode */
}

.light-dark-btn {

background-color: transparent;
border: 1px solid black;
/* Black border */
cursor: pointer;
color: black;
/* Default button color */
width: 50px;
}

.light-dark-btn {
background-color: transparent;
border: 1px solid black;
Expand Down Expand Up @@ -217,17 +228,15 @@
}

.menu ul li a:hover {
background-color: #000;
background-color: blue;
color: white;
}

.menu ul li a.active {
color: white;
background-color: #000;
}
ul li a:hover {
color: blue !important;
}


.content {
margin: 20px;
Expand Down Expand Up @@ -444,13 +453,18 @@

<nav class="menu">
<ul>
<li><a href="index.html" id="home-link" onclick="changeContent('home')">
<li><a href="index.html" id="home-link" onclick="changeContent('home')"><i
class="fa-solid fa-house"></i>
Home</a></li>
<li><a href="features.html" id="features-link" onclick="changeContent('features')"> Features</a></li>
<li><a href="team.html" id="team-link" onclick="changeContent('team')">
<li><a href="features.html" id="features-link" onclick="changeContent('features')"><i
class="fa-solid fa-file"></i> Features</a></li>
<li><a href="team.html" id="team-link" onclick="changeContent('team')"><i
class="fa-solid fa-user-group"></i>
Team</a></li>
<li><a href="contact.html" id="contact-link" onclick="changeContent('contact')">Contact</a></li>
<li><a href="Feedback.html" id="feedback-link" onclick="changeContent('feedback')"> Feedback</a></li>
<li><a href="contact.html" id="contact-link" onclick="changeContent('contact')"><i
class="fa-solid fa-phone"></i> Contact</a></li>
<li><a href="Feedback.html" id="feedback-link" onclick="changeContent('feedback')"><i
class="fa-solid fa-clipboard"></i> Feedback</a></li>
</ul>
</nav>
<div class="buttons">
Expand Down
Loading

0 comments on commit 73a20a2

Please sign in to comment.