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

ENHANCEMENT NEEDED IN "EMERGENCY SOS" SECTION #1821 #1822

Merged
merged 1 commit into from
Nov 5, 2024
Merged
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
74 changes: 73 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1781,14 +1781,86 @@ <h2>Packing Checklist</h2>


<!--Emergency-->
<section class="services" id="services">
<section class="service" id="services">
<div class="sos-container">
<h2>Emergency SOS</h2>
<p id="emergency-text" style="color: whitesmoke;">In case of an emergency, press the button to send your current location to your emergency contacts.</p>
<button id="sosButton" onclick="sendSOS()">Send SOS</button>
<div id="sos-status"></div>
</div>
</section>

<style>
.sos-container h2{
color: white;
font-size: 3.0rem;
text-decoration:underline;
}
/* General Section Styling */
.service {
padding: 40px;
background-color: #1a2a3a; /* Eye-comfort background color */
color: #f1f1f1; /* Text color for readability */
border-radius: 12px;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
transition: background-color 0.3s ease;
border: 10px solid white;
}

.service:hover {
background-color: #2b3b4c; /* Slightly darker on hover */
}

/* SOS Button Styling */
#sosButton {
width: 150px;
height: 60px;
margin-top: 40px;
background-color: #ff5555;
color: #fff;
padding: 12px 24px;
border: none;
border-radius: 8px;
font-size: 1.1em;
font-weight: bolder;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}

#sosButton:hover {
background-color: #ff3333;
transform: scale(1.05); /* Slight scaling effect on hover */
}

#sosButton:active {
background-color: #ff1111;
transform: scale(0.98); /* Pressed button effect */
}

/* SOS Status and Emergency Text Styling */
#emergency-text {
margin-top: 40px;
font-size: 1em;
margin-bottom: 16px;
}

#sos-status {
margin-top: 20px;
font-size: 1em;
font-weight: bold;
color: #eef2f5; /* Color to signify emergency status */
}

/* sos-container for additional styling */
.sos-container {
max-width: 500px;
margin: 0 auto;
}

</style>


<!--posts section-->
<div id="posts">
<header class="posts_blog">
Expand Down
Loading