-
Notifications
You must be signed in to change notification settings - Fork 115
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
[Feature] No CSS Applied to ecotipes.html #354 #379
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"liveServer.settings.port": 5502 | ||
"liveServer.settings.port": 5503 | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -246,28 +246,43 @@ <h4>Plastic Alternatives You Should Know</h4> | |
<!-- Footer --> | ||
<footer id="footer"> | ||
<h2>Stay Connected</h2> | ||
<form id="newsletter-form"> | ||
<input type="email" placeholder="Your Email" required> | ||
<button type="submit">Subscribe</button> | ||
<form id="newsletter-form" name="newsletter-form"> | ||
<input type="email" placeholder="Your Email" required /> | ||
<button type="submit">Subscribe</button> | ||
</form> | ||
|
||
<!-- Social Media Section --> | ||
<div class="social-media"> | ||
<a href="#"> | ||
<box-icon type="logo" name="facebook"></box-icon> | ||
</a> | ||
<a href="#"> | ||
<box-icon type="logo" name="twitter"></box-icon> | ||
</a> | ||
<a href="#"> | ||
<box-icon type="logo" name="instagram"></box-icon> | ||
</a> | ||
<a href="#">Facebook</a> | ||
<a href="#">Twitter</a> | ||
<a href="#">Instagram</a> | ||
Comment on lines
+256
to
+258
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 Consider adding icons to social media links While the simplified text links improve accessibility, adding icons alongside the text can enhance visual appeal and recognition. This aligns with the PR objective of improving the visual design. Consider adding Font Awesome icons to the social media links: - <a href="#">Facebook</a>
- <a href="#">Twitter</a>
- <a href="#">Instagram</a>
+ <a href="#"><i class="fab fa-facebook"></i> Facebook</a>
+ <a href="#"><i class="fab fa-twitter"></i> Twitter</a>
+ <a href="#"><i class="fab fa-instagram"></i> Instagram</a> Ensure that the Font Awesome library is properly loaded in the head section of the document.
|
||
</div> | ||
|
||
<!-- Community Message Section --> | ||
<div class="community-message"> | ||
<h3>Our Commitment to Sustainability</h3> | ||
<p>At Waste Management, we are dedicated to building a greener future. Through our community recycling programs and sustainability initiatives, we strive to reduce waste and protect the environment for generations to come. Join us in our mission to create a cleaner, healthier planet.</p> | ||
<h3>Our Commitment to Sustainability</h3> | ||
<p> | ||
At Waste Management, we are dedicated to building a greener future. | ||
Through our community recycling programs and sustainability initiatives, | ||
we strive to reduce waste and protect the environment for generations to | ||
come. Join us in our mission to create a cleaner, healthier planet. | ||
</p> | ||
</div> | ||
<br> | ||
<p>© 2024 Waste Management. All rights reserved.</p> | ||
</footer> | ||
|
||
<!-- Footer Links --> | ||
<div class="footer-links"> | ||
<a href="#upload">Upload Waste</a> | ||
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 "Upload Waste" link points to a non-existent section The "Upload Waste" link in both
🔗 Analysis chainClarify the "Upload Waste" link The "Upload Waste" link might be confusing to users without additional context. Consider providing more clarity or renaming it to better reflect its purpose. Please clarify the purpose of the "Upload Waste" link. If it's for reporting or documenting waste, consider a more descriptive name. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for any references or explanations of the "Upload Waste" feature
rg -i "upload\s+waste"
Length of output: 275 Script: #!/bin/bash
# Extract lines surrounding "Upload Waste" in index.html for better context
rg -i -C 3 "upload\s+waste" index.html
Length of output: 263 Script: #!/bin/bash
# Extract the content of the "#upload" section in index.html for context
rg -i -A 10 '<section id="upload">' index.html
Length of output: 48 |
||
<a href="#features">Features</a> | ||
<a href="#feedback">Feedback</a> | ||
<a href="#about">About Us</a> | ||
</div> | ||
|
||
<!-- Copyright --> | ||
<div class="footer-bottom"> | ||
<p>© 2024 Waste Management. All rights reserved.</p> | ||
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 Use dynamic year in copyright notice The copyright year is hardcoded, which will require manual updates. Consider using a dynamic year to ensure it stays current. Replace the hardcoded year with a JavaScript-generated current year: - <p>© 2024 Waste Management. All rights reserved.</p>
+ <p>© <script>document.write(new Date().getFullYear())</script> Waste Management. All rights reserved.</p> Alternatively, if you prefer to keep the year generation server-side, you can use a server-side language like PHP: © <?php echo date("Y"); ?> Waste Management. All rights reserved. Choose the method that best fits your project's architecture. |
||
</div> | ||
</footer> | ||
|
||
<script src="script.js"></script> | ||
</body> | ||
|
||
|
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.
Add action attribute to the newsletter form
The newsletter form is missing an action attribute, which is necessary for form submission. Consider adding an appropriate action URL or a JavaScript event handler if the form is submitted via AJAX.
Apply this change to add a placeholder action attribute:
Replace "/submit-newsletter" with the actual endpoint for newsletter submission.
📝 Committable suggestion