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

Overall UI Improvement in website #963

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pinakviramgama
Copy link

@pinakviramgama pinakviramgama commented Oct 31, 2024

Solved issue number #962

Dear mam, please accept this pull request and close issue number #962 as i resolved it, and please accept and review my code.

Summary by CodeRabbit

  • New Features

    • Complete redesign of the homepage, including a new header with navigation and a mobile-friendly hamburger menu.
    • Introduction of a dark mode toggle for enhanced user experience.
    • Added a progress bar to indicate scroll progress on the page.
    • New "About" section detailing the purpose of the LinkedIn Resume Builder.
  • Styling Enhancements

    • New color scheme and layout adjustments implemented via a new stylesheet (new.css).
    • Redesigned footer with updated social media icons and hover effects.

Copy link

coderabbitai bot commented Oct 31, 2024

Walkthrough

The pull request includes a comprehensive redesign of the index.html file and the introduction of a new CSS file, new.css. Key updates to index.html involve a complete restructuring of the document, new meta tags, a revised title, and enhanced styling. A mobile-friendly navigation system and dark mode toggle have been added, along with a new "About" section. The new.css file introduces various styles for components like cards, headers, and footers, including hover effects and responsive design elements.

Changes

File Change Summary
index.html Overhauled document structure, updated title, added new meta tags, introduced mobile navigation and dark mode toggle, restructured body with a new "About" section, redesigned footer, added scroll progress bar.
new.css Introduced styles for .card, header, and .footer, added hover effects for footer elements and social media icons.

Possibly related PRs

Suggested labels

hacktoberfest, level3, gssoc-ext, hacktoberfest-accepted

Suggested reviewers

  • GarimaSingh0109

🐰 In a world of code, so bright and new,
We’ve crafted a site, with a fresh view.
With buttons that toggle and menus that slide,
Our LinkedIn Builder is now a joyride!
So hop on in, let’s build with cheer,
A resume that shines, oh so clear! 🌟


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?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 8

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 7b65fe0 and 4e1a7ae.

📒 Files selected for processing (2)
  • index.html (1 hunks)
  • new.css (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • new.css
🔇 Additional comments (1)
index.html (1)

648-648: ⚠️ Potential issue

Correct the Font Awesome class for the Twitter icon

The class fa-x-twitter at line 648 is invalid. The correct class for the Twitter icon in Font Awesome is fa-twitter. Updating this ensures the icon displays correctly.

Apply this diff to fix the class name:

Likely invalid or redundant comment.

index.html Show resolved Hide resolved
index.html Show resolved Hide resolved
<div class="cards">
<!-- Our Mission Card -->
<div class="card">
<img src="images/Gemini_Generated_Image_fx9dejfx9dejfx9d.jpg" alt="">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Add descriptive alt text to images for accessibility

The <img> elements at lines 563, 576, and 593 have empty alt attributes. Providing descriptive alt text improves accessibility for users relying on screen readers and enhances SEO.

Apply this diff to add descriptive alt text:

+    <img src="images/Gemini_Generated_Image_fx9dejfx9dejfx9d.jpg" alt="Illustration representing our mission">
+    <img src="images/Gemini_Generated_Image_52rg8r52rg8r52rg.jpg" alt="Illustration explaining how it works">
+    <img src="images/Gemini_Generated_Image_ootrdvootrdvootr.jpg" alt="Illustration showing why to choose us">

Also applies to: 576-576, 593-593

Comment on lines +183 to +187
.footer a {
color: var(--soft-gold);
text-decoration: none;
font-size: 16px;
}

.testimonial-card img {
width: 80px;
/* Profile image width */
height: 80px;
/* Profile image height */
border-radius: 50%;
/* Circular shape for profile images */
margin-bottom: 20px;
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Resolve conflicting CSS styles for .footer a selector

The .footer a selector is defined with different color properties at lines 184 (var(--soft-gold)) and 679 (white). This conflict can lead to unexpected styling. Consolidate these styles to maintain consistency in link colors within the footer.

Also applies to: 678-680

Comment on lines +546 to +550
<br>
<br>
<br>
<br>
<br>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Avoid using multiple <br> tags for spacing; use CSS margins instead

Using multiple <br> tags (lines 546-550) for spacing is not a best practice and may result in inconsistent spacing across devices. Utilize CSS margin or padding properties to control spacing between elements.

Apply this diff to remove the <br> tags:

And adjust spacing with CSS, for example:

.panel-1 {
    padding-top: 100px; /* Adjust the value as needed */
}

Comment on lines +18 to +444
top: 0;
left: 0;
z-index: 9999;
}

#progress-bar {
height: 100%;
background-color: #3f10ea;
}

.panel-1 {
padding-top: 40px;
width: 100vw;
height: auto;
position: relative;
}

.about {
width: 100%;
display: flex;
flex-direction: column;
justify-self: center;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s, transform 0.3s;
}
text-align: center;
padding-top: 5rem;
padding-bottom: 5rem;
}

.about h1 {
font-size: 4rem;
margin-bottom: 1rem;
font-weight: 600;
}

.about p {
width: 70%;
font-size: 1.8rem;
}

.cards {
width: 100%;
display: flex;
justify-content: space-evenly;
position: relative;
padding-bottom: 5rem;
}

.card {
width: 30%;
padding: 2rem;
border-radius: 2rem;
background-color: #f8f9fa;
}

.card:hover {
scale: 105%;
}

.card h2 {
font-size: 2.8rem;
margin-bottom: 1rem;
font-weight: 600;
}

.card p {
font-size: 1.5rem;
margin-bottom: 1rem;
}

.card ul li {
font-size: 1.5rem;
}

.card img {
margin-bottom: 2rem;
}

@media (max-width:450px) {
.cards {
flex-direction: column;
justify-content: center;
align-items: center;
gap: 3rem;
}

.scroll-to-top:hover {
background-color: #005580;
transform: scale(1.1);
}
.card {
width: 90%;
}
}
</style>
</head>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Consider moving inline CSS to an external stylesheet

The inline CSS within the <style> tag spans lines 18-444, making the HTML file large and harder to manage. Moving these styles to an external stylesheet (e.g., new.css) can enhance maintainability, enable browser caching, and reduce page load time.

Comment on lines +686 to +693
const toggler = document.getElementById("toggler");
const body = document.body;
const closeBtn = document.querySelector(".close-btn");

closeBtn.addEventListener("click", function () {
toggler.checked = false;
body.classList.remove("sidebar-active");
});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Ensure the 'close-btn' element exists before adding an event listener

At lines 688-693, an event listener is added to closeBtn, which is selected using document.querySelector(".close-btn"). Since there is no element with the class close-btn in the HTML, closeBtn will be null, causing an error. Remove the unused code or add the missing element.

Apply this diff to remove the unused code:

Committable suggestion was skipped due to low confidence.

Comment on lines +235 to +284
/* .navbar {
background-color: var(--deep-teal); /* Updated navbar background color
padding: 31px 20px; /* Increased top and bottom padding
display: flex;
justify-content: space-between;
align-items: center;
}

.navbar img{
width: 100px;
padding: 0px 6px;
margin-right: -64px;
}

.navbar h1 {
color: var(--off-white); /* Changed to use off-white for better contrast
margin: 0;
font-size: 2rem;
margin-left: -38rem; /* Adjust this value to move the logo right
transition: color 0.3s ease; /* Smooth transition for color change
}

.navbar h1:hover {
color: var(--soft-gold); /* Color change on hover
}

.navbar ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
gap: 20px;
margin-right: 30px; /* Adjust this value to move the items left
}

.navbar ul li {
display: inline;
}

.navbar ul li a {
color: var(--off-white); /* Updated navbar link color *
text-decoration: none;
font-size: 18px;
}

.navbar ul li a:hover {
color: var(--soft-gold); /* Updated hover color to Soft Gold *
text-decoration: none;
transition: color 0.3s ease;
} */
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Avoid nested CSS comments to prevent syntax errors

The comment block starting at line 235 contains nested /* */ comments, which is not allowed in CSS and may lead to syntax errors. Adjust the comments to prevent nesting or remove redundant comments.

Apply this diff to fix the nested comments:

+    /* .navbar {
+        background-color: var(--deep-teal); /* Updated navbar background color */
+        padding: 31px 20px; /* Increased top and bottom padding */

Committable suggestion was skipped due to low confidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant