Skip to content

Commit

Permalink
Add Section-Specific Styling for Enhanced Structure and Visual Appeal (
Browse files Browse the repository at this point in the history
…#419)

Issue Closed: #416

### Description

This PR addresses the styling issues for individual sections as
described in #416. Each section (Home, Upload, Features, Feedback, About
Me, Sign Up, and Contact) has been styled to create a cohesive theme and
enhance readability and user experience. Key improvements include
background colors, section spacing, text alignment, and image styling.

### Changes Made

- Styled each section with unique background colors and fonts to
maintain consistency with the website's theme.
- Added appropriate padding and spacing between sections to prevent
visual overlap and enhance clarity.
- Improved text and image styling to ensure readability, especially for
sections with dense content.
- Ensured content alignment within each section for a balanced and
visually appealing layout.

### Implementation Details

- Updated styles.css with new section-specific classes for each of the
seven sections.
- Applied unique background colors and font styles in line with the
theme of the website.
- Added spacing (padding and margin) to separate sections and avoid
blending.
- Styled images to ensure they are well-aligned with the text and scaled
appropriately across different screen sizes.
- Enhanced section borders and heading styles to make each section
easily distinguishable and visually appealing.

### Screenshots
![Screenshot 2024-11-10 at 01-37-14 Waste
Management](https://github.com/user-attachments/assets/1bce9ad3-c869-4128-a572-6ec079295078)


### Testing

- Verified that each section is properly styled and separated on mobile,
tablet, and desktop devices.
- Checked text readability and image alignment across all sections.
- Ensured each section's content remains visually balanced and
consistent with the overall design.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced new sections for "Disposal Information" and "Waste
Categories," including details on "Biodegradable Waste."
- Enhanced footer with additional links and a community sustainability
message.
- Restructured "Features" section to emphasize eco-friendly tips and
community engagement.
  
- **Style Improvements**
- Comprehensive updates to the visual design, including new layouts,
color schemes, and responsive adjustments for better usability.

- **Documentation**
	- FAQ section reorganized for improved clarity and accessibility.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
GarimaSingh0109 authored Nov 10, 2024
2 parents 8178adc + 6b808bc commit 9b28062
Showing 1 changed file with 228 additions and 0 deletions.
228 changes: 228 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,3 +308,231 @@ h2, h3, h4 {
background-color: rgba(0, 0, 0, 0.5);
padding: 5px 10px;
}

/* Features Section */
.features {
background-color: #f1f1f1;
}
.features h2{
text-align: center;
font-size: 2.3rem;
}
.features-container{
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
margin: 1.5rem;
}
.feature-slider {
display: flex;
overflow-x: scroll;
gap: 20px;
}

.feature-card {
width: 300px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 15px;
}

blockquote {
font-style: italic;
color: #777;
margin-bottom: 15px;
}

.highlight {
font-weight: bold;
color: #2196f3;
}

.cta-button, .hero-btn {
display: inline-block;
padding: 10px 20px;
margin-top: 15px;
background-color: #2196f3;
color: white;
text-decoration: none;
border-radius: 5px;
}

.cta-button:hover, .hero-btn:hover {
background-color: #1976d2;
}

.slider-btn {
background-color: #2196f3;
color: white;
font-size: 2em;
padding: 10px;
border: none;
cursor: pointer;
position: absolute;
top: 50%;
transform: translateY(-50%);
}

.slider-btn.left {
left: 10px;
}

.slider-btn.right {
right: 10px;
}

/* FAQ Section */
.faq-item {
background-color: #fff;
margin: 10px 0;
padding: 15px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
margin-bottom: 10px;
}

.faq-item p {
font-size: 1em;
color: #555;
}

/* Feedback Section */
.feedback {
background-color: #fafafa;
}

#feedback-form input,
#feedback-form textarea {
width: 100%;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
border: 1px solid #ccc;
}

#feedback-form button {
padding: 10px 20px;
background-color: #2196f3;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}

#feedback-form button:hover {
background-color: #1976d2;
}

/* About Us Section */
.about-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

.about-text {
flex: 1;
padding: 15px;
font-size: 1.1em;
}

.about-image img {
width: 100%;
height: auto;
border-radius: 8px;
}

.mission-container {
flex: 1;
padding: 15px;
}

.mission-box {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

.mission-item {
width: 23%;
background-color: #fff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
}

.mission-item img {
width: 50px;
margin-bottom: 10px;
}

/* Values Section */
.values-container {
background-color: #f8f8f8;
}

.values-cards {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

.value-card {
width: 23%;
background-color: #fff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.value-card h4 {
margin-bottom: 10px;
}

/* Sign Up Section */
.signup .form_area {
width: 100%;
max-width: 500px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}

.signup .form_group {
margin-bottom: 20px;
}

.form_style {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}

.form_action button {
padding: 10px 20px;
background-color: #2196f3;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}

.form_action button:hover {
background-color: #1976d2;
}

.link {
color: #2196f3;
}

.link:hover {
text-decoration: underline;
}

0 comments on commit 9b28062

Please sign in to comment.