-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Improve Footer and Navbar Styling on About Page #833
Conversation
WalkthroughThe changes in this pull request involve significant updates to the Changes
Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
<img src="images/logo.png" alt="logo"> | ||
<a class="tab" href="index.html">Home</a> | ||
<a class="tab" href="about.html">About</a> | ||
<a class="tab" href="resume.html">Build Resume</a> | ||
<a class="tab" href="resume_tips.html">Resume Tips</a> | ||
<a class="tab" href="signup.html">Sign Up</a> | ||
<a class="tab" href="login.html">Login</a> | ||
<a class="tab" href="privacypolicy.html">Privacy Policy</a> | ||
</div> |
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 the mismatched HTML tags in the navbar
There's an unmatched closing </div>
tag within the nav
element starting at line 418, which may cause rendering issues. Ensure that all HTML tags are properly opened and closed.
Apply this diff to correct the HTML structure:
<nav class="navbar">
<img src="images/logo.png" alt="logo">
<a class="tab" href="index.html">Home</a>
<a class="tab" href="about.html">About</a>
<a class="tab" href="resume.html">Build Resume</a>
<a class="tab" href="resume_tips.html">Resume Tips</a>
<a class="tab" href="signup.html">Sign Up</a>
<a class="tab" href="login.html">Login</a>
- </div>
</nav>
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
<img src="images/logo.png" alt="logo"> | |
<a class="tab" href="index.html">Home</a> | |
<a class="tab" href="about.html">About</a> | |
<a class="tab" href="resume.html">Build Resume</a> | |
<a class="tab" href="resume_tips.html">Resume Tips</a> | |
<a class="tab" href="signup.html">Sign Up</a> | |
<a class="tab" href="login.html">Login</a> | |
<a class="tab" href="privacypolicy.html">Privacy Policy</a> | |
</div> | |
<img src="images/logo.png" alt="logo"> | |
<a class="tab" href="index.html">Home</a> | |
<a class="tab" href="about.html">About</a> | |
<a class="tab" href="resume.html">Build Resume</a> | |
<a class="tab" href="resume_tips.html">Resume Tips</a> | |
<a class="tab" href="signup.html">Sign Up</a> | |
<a class="tab" href="login.html">Login</a> |
<style> | ||
.footer-section{ | ||
display: flex; | ||
justify-content: left; | ||
flex-direction: column; | ||
} | ||
.ul{ | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: left; | ||
} | ||
li{ | ||
text-align: left; | ||
} | ||
.footer a{ | ||
color: white; | ||
} | ||
.footer p{ | ||
margin-top: 2rem; | ||
} | ||
</style> |
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.
🛠️ Refactor suggestion
Move footer styles to the <head>
section or external stylesheet
Defining CSS within <style>
tags inside the body is not recommended. For better maintainability and consistency, consider moving these footer styles to the <head>
section or an external stylesheet. Additionally, consider using more descriptive class names instead of .ul
, since ul
is an HTML tag, to avoid confusion.
Apply this diff to move the footer styles to the <head>
section and rename the .ul
class:
<!-- Remove the inline footer styles from the body -->
-<style>
- .footer-section{
- display: flex;
- justify-content: left;
- flex-direction: column;
- }
- .ul{
- display: flex;
- flex-direction: column;
- justify-content: left;
- }
- li{
- text-align: left;
- }
- .footer a{
- color: white;
- }
- .footer p{
- margin-top: 2rem;
- }
-</style>
Add these styles to the existing <style>
section in the <head>
:
+/* Add to your existing CSS in the <head> */
+.footer-section {
+ display: flex;
+ justify-content: left;
+ flex-direction: column;
+}
+.footer-list {
+ display: flex;
+ flex-direction: column;
+ justify-content: left;
+}
+li {
+ text-align: left;
+}
+.footer a {
+ color: white;
+}
+.footer p {
+ margin-top: 2rem;
+}
Update the HTML to use the new class name:
-<ul class="ul">
+<ul class="footer-list">
Committable suggestion was skipped due to low confidence.
Description:
This pull request addresses issue #810, which focuses on improving the styling of the footer and navbar on the About page. The current styling was inconsistent, and this update ensures the design is clean, responsive, and aligned with the overall project theme.
Changes Implemented:
Navbar Styling:
Footer Styling:
Screenshot:
Testing:
Summary by CodeRabbit
New Features
Enhancements