-
Notifications
You must be signed in to change notification settings - Fork 590
Safesphere #7
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
base: main
Are you sure you want to change the base?
Safesphere #7
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,15 @@ | ||||||||||
| </body> | ||||||||||
| </html><!DOCTYPE html> | ||||||||||
| <html lang="en"> | ||||||||||
| <head> | ||||||||||
| <meta charset="UTF-8"> | ||||||||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||||||||
| <title>Document</title> | ||||||||||
| </head> | ||||||||||
| <body> | ||||||||||
| <h1 style="color: darkslateblue;">About</h1> | ||||||||||
| </p> Our platform is dedicated to providing real-time disaster alerts and essential resources to support communities in need. Whether you are looking to lend a helping hand, access critical guidelines, or contribute to disaster relief efforts, we offer a comprehensive set of tools and information to empower individuals and organizations alike.></p> | ||||||||||
| </p>Together, we can make a significant impact in times of crisis. Join us in supporting communities and creating a safer, more resilient world.</p> | ||||||||||
|
Comment on lines
+11
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix malformed paragraph tags and improve content structure. The paragraph tags are incorrectly closed and opened. -</p> Our platform is dedicated to providing real-time disaster alerts and essential resources to support communities in need. Whether you are looking to lend a helping hand, access critical guidelines, or contribute to disaster relief efforts, we offer a comprehensive set of tools and information to empower individuals and organizations alike.></p>
+<p>Our platform is dedicated to providing real-time disaster alerts and essential resources to support communities in need. Whether you are looking to lend a helping hand, access critical guidelines, or contribute to disaster relief efforts, we offer a comprehensive set of tools and information to empower individuals and organizations alike.</p>📝 Committable suggestion
Suggested change
|
||||||||||
| </p> Feel free to adjust the content to fit your tone or any additional details you’d like to include!</p> | ||||||||||
| </P> In case of any queries regarding the website, do email us</p> | ||||||||||
| </p> [email protected] or [email protected]</p> | ||||||||||
|
Comment on lines
+14
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification These Gmail addresses should be removed from
🔗 Analysis chainRemove personal email addresses from the public HTML. Exposing personal email addresses in public HTML can lead to spam and security issues. Consider using a contact form or a generic support email address. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check for other instances of email addresses in the codebase
rg -i '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}'
Length of output: 122 |
||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,136 @@ | ||||||||||||||||||||||||||||||||||||||||
| </body> | ||||||||||||||||||||||||||||||||||||||||
| </html><!DOCTYPE html> | ||||||||||||||||||||||||||||||||||||||||
| <html lang="en"> | ||||||||||||||||||||||||||||||||||||||||
| <head> | ||||||||||||||||||||||||||||||||||||||||
| <meta charset="UTF-8"> | ||||||||||||||||||||||||||||||||||||||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||||||||||||||||||||||||||||||||||||||
| <title>Document</title> | ||||||||||||||||||||||||||||||||||||||||
| </head> | ||||||||||||||||||||||||||||||||||||||||
| <body> | ||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix document structure and enhance metadata. The HTML structure has several issues that need to be addressed:
-</body>
-</html><!DOCTYPE html>
+<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
+ <title>SAFESPHERE - Disaster Management Guidelines</title>
+ <meta name="description" content="Comprehensive safety guidelines for various disaster scenarios including earthquakes, floods, fires, and more.">
+ <link rel="stylesheet" href="styles.css">
</head>📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
| <h1 style="color: rgb(188, 21, 206);">Guidelines</h1> | ||||||||||||||||||||||||||||||||||||||||
| <h2 style="color: rgb(23, 22, 23);">1.Earth quake</h2> | ||||||||||||||||||||||||||||||||||||||||
| <p></p> | ||||||||||||||||||||||||||||||||||||||||
| Guidelines: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Stay indoors during an earthquake; do not run outside. | ||||||||||||||||||||||||||||||||||||||||
| Drop to the ground, take cover under furniture or against an interior wall, and hold on until shaking stops. | ||||||||||||||||||||||||||||||||||||||||
| Stay away from windows, glass, and exterior walls. | ||||||||||||||||||||||||||||||||||||||||
| If outdoors, stay in an open area away from buildings, trees, and power lines. | ||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||
| <p></p> | ||||||||||||||||||||||||||||||||||||||||
| Safety Measures: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Secure heavy furniture and appliances to walls. | ||||||||||||||||||||||||||||||||||||||||
| Have an emergency kit with food, water, first aid, flashlight, and batteries. | ||||||||||||||||||||||||||||||||||||||||
| Know how to turn off the gas, electricity, and water in your home. | ||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+12
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix inconsistent paragraph tags and improve content structure. There are several instances of incorrectly opened/closed paragraph tags and inconsistent HTML structure. For example, in the earthquake section: - <p></p>
- Guidelines:
-
- Stay indoors during an earthquake; do not run outside.
- Drop to the ground, take cover under furniture or against an interior wall, and hold on until shaking stops.
- Stay away from windows, glass, and exterior walls.
- If outdoors, stay in an open area away from buildings, trees, and power lines.
-</p>
+ <div class="guidelines">
+ <h3>Guidelines:</h3>
+ <ul>
+ <li>Stay indoors during an earthquake; do not run outside.</li>
+ <li>Drop to the ground, take cover under furniture or against an interior wall, and hold on until shaking stops.</li>
+ <li>Stay away from windows, glass, and exterior walls.</li>
+ <li>If outdoors, stay in an open area away from buildings, trees, and power lines.</li>
+ </ul>
+ </div>Also applies to: 49-55, 77-83 |
||||||||||||||||||||||||||||||||||||||||
| <h2 style="color: rgb(23, 22, 23);">2. Floods</h2> | ||||||||||||||||||||||||||||||||||||||||
| <p></p> | ||||||||||||||||||||||||||||||||||||||||
| Guidelines: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Move to higher ground immediately if you are in a flood-prone area. | ||||||||||||||||||||||||||||||||||||||||
| Avoid driving through flooded roads. | ||||||||||||||||||||||||||||||||||||||||
| Stay away from floodwaters, as they can be contaminated or hide dangerous debris. | ||||||||||||||||||||||||||||||||||||||||
| Follow evacuation orders from authorities. | ||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||
| Safety Measures: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Install sump pumps or flood barriers if you're in a flood-prone area. | ||||||||||||||||||||||||||||||||||||||||
| Elevate important items above potential flood levels. | ||||||||||||||||||||||||||||||||||||||||
| Keep an emergency kit in an accessible, elevated location. | ||||||||||||||||||||||||||||||||||||||||
| <h2 style="color: rgb(23, 22, 23);">3.Fires</h2> | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Guidelines: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| If you're in a building, evacuate immediately when a fire alarm sounds. | ||||||||||||||||||||||||||||||||||||||||
| If trapped by smoke, stay low to the ground and cover your mouth with a cloth. | ||||||||||||||||||||||||||||||||||||||||
| Do not use elevators during a fire. | ||||||||||||||||||||||||||||||||||||||||
| Know multiple escape routes from your home or workplace. | ||||||||||||||||||||||||||||||||||||||||
| <p></p> | ||||||||||||||||||||||||||||||||||||||||
| Safety Measures: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Install smoke detectors in every bedroom and hallway. | ||||||||||||||||||||||||||||||||||||||||
| Keep fire extinguishers in easily accessible locations. | ||||||||||||||||||||||||||||||||||||||||
| Have an evacuation plan and practice fire drills regularly. | ||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||
| <h2 style="color: rgb(23, 22, 23);">4.Hurricanes/Typhoons</h2> | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Guidelines: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Stay indoors during the storm, away from windows and doors. | ||||||||||||||||||||||||||||||||||||||||
| If ordered to evacuate, do so immediately and follow evacuation routes. | ||||||||||||||||||||||||||||||||||||||||
| Have an emergency kit ready, including a flashlight, water, food, and medications. | ||||||||||||||||||||||||||||||||||||||||
| <p></p> | ||||||||||||||||||||||||||||||||||||||||
| Safety Measures: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Secure windows and doors before the storm hits. | ||||||||||||||||||||||||||||||||||||||||
| Stock up on essential supplies like bottled water, non-perishable food, and medications. | ||||||||||||||||||||||||||||||||||||||||
| Install storm shutters or use plywood to protect windows from wind damage. | ||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||
| <h2 style="color: rgb(23, 22, 23);">5.Tornadoes</h2> | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Guidelines: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Take shelter in a basement or an interior room on the lowest level of a building. | ||||||||||||||||||||||||||||||||||||||||
| Avoid windows and cover your head and neck. | ||||||||||||||||||||||||||||||||||||||||
| Stay informed by listening to weather reports or a NOAA weather radio. | ||||||||||||||||||||||||||||||||||||||||
| <P></P> | ||||||||||||||||||||||||||||||||||||||||
| Safety Measures: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Have a safe room or storm shelter. | ||||||||||||||||||||||||||||||||||||||||
| Keep a disaster kit with essentials in your shelter area. | ||||||||||||||||||||||||||||||||||||||||
| Know the warning signs of a tornado, such as a greenish sky or a large, low-lying, dark-colored cloud. | ||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||
| <h2 style="color: rgb(23, 22, 23);">6.Wildfires</h2> | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Guidelines: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Evacuate if advised by local authorities and avoid driving in smoky areas. | ||||||||||||||||||||||||||||||||||||||||
| If trapped, stay in a cleared area, cover your nose and mouth with a cloth, and try to protect yourself from heat. | ||||||||||||||||||||||||||||||||||||||||
| Don't attempt to fight a wildfire on your own. | ||||||||||||||||||||||||||||||||||||||||
| <p></p> | ||||||||||||||||||||||||||||||||||||||||
| Safety Measures: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Create defensible space around your home by clearing brush and flammable materials. | ||||||||||||||||||||||||||||||||||||||||
| Have a fire escape plan for your family and pets. | ||||||||||||||||||||||||||||||||||||||||
| Keep fire extinguishers and hoses easily accessible. | ||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||
| <h2 style="color: rgb(23, 22, 23);">7.Pandemics(health-related Disasters)</h2> | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Guidelines: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Follow public health advice regarding quarantine, mask-wearing, and social distancing. | ||||||||||||||||||||||||||||||||||||||||
| Wash hands frequently with soap and water or use hand sanitizer. | ||||||||||||||||||||||||||||||||||||||||
| Seek medical attention if feeling ill or showing symptoms of the disease. | ||||||||||||||||||||||||||||||||||||||||
| <p></p> | ||||||||||||||||||||||||||||||||||||||||
| Safety Measures: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Keep a stock of essential medical supplies, including masks, hand sanitizers, and disinfectant. | ||||||||||||||||||||||||||||||||||||||||
| Have a quarantine plan in case you or someone in your household is exposed. | ||||||||||||||||||||||||||||||||||||||||
| Monitor official health channels for updates. | ||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||
| <h2 style="color: rgb(23, 22, 23);">8.Nuclear/Radiation Emergencies</h2> | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Guidelines: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Take shelter indoors immediately, preferably in a basement or underground area. | ||||||||||||||||||||||||||||||||||||||||
| Seal windows and doors to minimize exposure. | ||||||||||||||||||||||||||||||||||||||||
| Stay tuned to emergency broadcasts for evacuation orders and further instructions. | ||||||||||||||||||||||||||||||||||||||||
| <p></p> | ||||||||||||||||||||||||||||||||||||||||
| Safety Measures: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Keep a disaster kit with radiation protection materials such as iodine tablets (if advised by authorities). | ||||||||||||||||||||||||||||||||||||||||
| Stay indoors until the all-clear is given by authorities. | ||||||||||||||||||||||||||||||||||||||||
| Know the location of the nearest fallout shelter. | ||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+10
to
+125
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Move styles to CSS file and fix HTML structure. The content has several structural and styling issues:
Here's how to improve the structure: - <h1 style="color: rgb(188, 21, 206);">Guidelines</h1>
- <h2 style="color: rgb(23, 22, 23);">1.Earth quake</h2>
- <p></p>
- Guidelines:
+ <h1>Guidelines</h1>
+ <section class="disaster-guide">
+ <h2>1. Earthquake</h2>
+ <h3>Guidelines:</h3>
+ <ul>
+ <li>Stay indoors during an earthquake; do not run outside.</li>
+ <li>Drop to the ground, take cover under furniture or against an interior wall, and hold on until shaking stops.</li>
+ <!-- ... other guidelines ... -->
+ </ul>Add this to your CSS file: h1 {
color: #bc15ce;
}
h2 {
color: #171617;
margin-top: 2rem;
}
.disaster-guide {
margin-bottom: 2rem;
}
.disaster-guide ul {
margin: 1rem 0;
padding-left: 2rem;
} |
||||||||||||||||||||||||||||||||||||||||
| General Disaster Preparedness Tips: | ||||||||||||||||||||||||||||||||||||||||
| Emergency Kit: Always have a disaster kit that includes first aid supplies, flashlights, batteries, non-perishable food, water, medications, and important documents. | ||||||||||||||||||||||||||||||||||||||||
| Communication Plan: Establish a family emergency communication plan that includes meeting spots and contacts. | ||||||||||||||||||||||||||||||||||||||||
| Training: Consider taking CPR, first aid, and basic survival training. | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+136
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Enhance accessibility for critical safety information. As this page contains vital safety information, it's crucial to ensure it's accessible to all users, including those using screen readers. Consider these accessibility improvements:
Example implementation: <main role="main" aria-label="Disaster Management Guidelines">
<nav class="skip-links">
<a href="#main-content" class="skip-link">Skip to main content</a>
</nav>
<h1 id="main-content">Guidelines</h1>
<section class="disaster-guide" aria-labelledby="earthquake-heading">
<h2 id="earthquake-heading">1. Earthquake</h2>
<!-- ... -->
</section>
</main> |
||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>Image Example</title> | ||
| </head> | ||
| <body> | ||
|
|
||
| <h1></h1> | ||
| <p>Hope</p> | ||
|
|
||
| <!-- Adding an image --> | ||
| <img src=C:\Users\Athara Niya\OneDrive\Desktop\vs code\asset\flood.png.jpg alt="Description of the image" width="500" height="300"> | ||
|
|
||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,98 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||
| <!DOCTYPE html> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <html lang="en"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <head> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <meta charset="UTF-8"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <title>safesphere</title> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </head> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <body> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <link rel="stylesheet" | ||||||||||||||||||||||||||||||||||||||||||||||||
| href="new.css"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <h1 style="color: rgb(100, 221, 169);">"Disaster Shield:Be prepared,Stay safe"</h1> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <p style="color: rgb(33, 112, 160);"> Welcome to our Disaster Management Hub, where preparedness meets action. Our mission is to provide reliable resources, expert guidance, and cutting-edge solutions for disaster prevention, response, and recovery. Whether you're an individual, business, or community leader, we offer the tools and knowledge you need to effectively manage emergencies and minimize their impact. Together, we can build a resilient future, one step at a time. Join us in making disaster preparedness a priority—because every moment counts when it comes to saving lives and protecting what matters most.</p> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </body> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </html> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <!DOCTYPE html> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <html lang="en"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <head> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <meta charset="UTF-8"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <title>Dashboard</title> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <link rel="stylesheet" href="styles.css"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </head> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <body> | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- Sidebar --> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <div class="sidebar"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <h2 style="color: darkorchid;">Dashboard</h2> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <ul> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <li><a href="about.html">about</a></li> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <li><a href="guidelines.html">Guidelines</a></li> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <li><a href="resource.html">Resource Center</a></li> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <li><a href="volunteerlist.html">Community Engagement</a></li> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </ul> | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| </body> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </html> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <!DOCTYPE html> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <html lang="en"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <head> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <meta charset="UTF-8"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <title>Dashboard</title> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <link rel="stylesheet" href="styles.css"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </head> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <body> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- Sidebar --> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- <div class="sidebar"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <h2>Dashboard</h2> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <ul> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <li><a href="home.html">Home</a></li> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <li><a href="guidelines.html">Guidelines</a></li> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <li><a href="resource.html">Resource Center</a></li> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <li><a href="interactive.html">Interactive Map</a></li> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <li><a href="#" onclick="showContent('community')">Community Engagement</a></li> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </ul> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </div> --> | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- Main Content Area --> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <div class="content"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <div id="home" class="page"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <h1>Welcome to the Home Page</h1> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <p>hey how can i help you</p> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <div id="guidelines" class="page" style="display: none;"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <h1>Guidelines</h1> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <p>Here you can add guidelines for users.</p> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <div id="resources" class="page" style="display: none;"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <h1>Resource Center</h1> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <p>Provide resources or documents for your audience here.</p> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <div id="interactive" class="page" style="display: none;"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <h1>Interactive Map</h1> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <p>Embed or display an interactive map in this section.</p> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <div id="community" class="page" style="display: none;"> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <h1>Community Engagement</h1> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <p>Use this area for user interactions and community updates.</p> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- JavaScript to Toggle Pages --> | ||||||||||||||||||||||||||||||||||||||||||||||||
| <script> | ||||||||||||||||||||||||||||||||||||||||||||||||
| function showContent(pageId) { | ||||||||||||||||||||||||||||||||||||||||||||||||
| // Hide all pages | ||||||||||||||||||||||||||||||||||||||||||||||||
| document.querySelectorAll('.page').forEach(page => { | ||||||||||||||||||||||||||||||||||||||||||||||||
| page.style.display = 'none'; | ||||||||||||||||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||||||||||||||||
| // Show the selected page | ||||||||||||||||||||||||||||||||||||||||||||||||
| document.getElementById(pageId).style.display = 'block'; | ||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||
| </script> | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+88
to
+96
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Add error handling to the showContent function. The function should handle cases where the pageId doesn't exist. function showContent(pageId) {
+ const page = document.getElementById(pageId);
+ if (!page) {
+ console.error(`Page with id "${pageId}" not found`);
+ return;
+ }
// Hide all pages
document.querySelectorAll('.page').forEach(page => {
page.style.display = 'none';
});
// Show the selected page
- document.getElementById(pageId).style.display = 'block';
+ page.style.display = 'block';
}📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
| </body> | ||||||||||||||||||||||||||||||||||||||||||||||||
| </html> | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+98
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Split the file into separate HTML documents. The file contains three separate HTML documents, which is invalid. Each document should be in its own file.
Also, consolidate the CSS files: -<link rel="stylesheet" href="new.css">
-<link rel="stylesheet" href="styles.css">
+<link rel="stylesheet" href="styles.css">
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| /* This will style the background of the page */ | ||
| body { | ||
| background-color: rgb(253, 251, 251); | ||
| } | ||
|
|
||
| /* This will make the heading bold and centered */ | ||
| h1 { | ||
| color: rgb(222, 27, 164); | ||
| text-align: center; | ||
| } | ||
|
|
||
| /* This will change the text color of paragraphs */ | ||
| p { | ||
| color: green; | ||
| font-size: 18px; | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix invalid HTML structure.
The file starts with closing tags before the DOCTYPE declaration, which is invalid HTML.
📝 Committable suggestion