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

change the font #852

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

Conversation

ambrishgoswami
Copy link

@ambrishgoswami ambrishgoswami commented Oct 23, 2024

Pull Request for Resum-Resume 💡#390

Issue Title :

  • Info about the related issue (Aim of the project) :
  • Name:
  • GitHub ID:
  • Email ID:

Closes: #issue number that will be closed through this PR

Describe the add-ons or changes you've made 📃

Give a clear description of what have you added or modifications made

Type of change ☑️

What sort of change have you made:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, local variables)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested? ⚙️

Describe how it has been tested
Describe how have you verified the changes made

Checklist: ☑️

  • My code follows the guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly wherever it was hard to understand.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added things that prove my fix is effective or that my feature works.
  • Any dependent changes have been merged and published in downstream modules.

Summary by CodeRabbit

  • New Features

    • Enhanced visual appeal of the "About" page with updated styling and layout.
    • Improved hover effects for headings and buttons to increase interactivity.
    • Responsive design adjustments for better usability on smaller screens.
  • Bug Fixes

    • Improved alignment and spacing of cards in the "About" section for a cleaner look.
  • Style

    • Updated font family and color themes for a more cohesive design.
    • Refined background colors and text contrasts for better readability.

Copy link

coderabbitai bot commented Oct 23, 2024

Walkthrough

The changes in this pull request focus on the about.html file, implementing various styling and layout adjustments. Key modifications include updating the font family for the navbar heading to Arial, defining CSS color variables in the :root selector, and enhancing background colors and hover effects for different elements. The layout of the "About" section cards has been refined for better alignment and interactivity, while responsive design adjustments ensure usability across devices.

Changes

File Change Summary
about.html - Updated font family for navbar heading to Arial.
- Defined CSS color variables in :root.
- Changed background and text colors, and refined hover effects.
- Adjusted card layout for better alignment and hover effects.
- Improved footer styling and visual hierarchy.
- Implemented responsive design adjustments with media queries.

Possibly related PRs

Suggested labels

hacktoberfest, level1, gssoc-ext, hacktoberfest-accepted

Suggested reviewers

  • GarimaSingh0109

Poem

In the land of code where rabbits play,
We styled our page in a bright new way.
With colors and fonts that dance and sing,
Our about.html shines like spring!
So hop along, and take a look,
A modern page, just like a book! 🐇✨


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: 0

🧹 Outside diff range and nitpick comments (4)
about.html (4)

Line range hint 153-158: Remove duplicate CSS variable definitions.

The :root CSS variables are defined twice in the file. The second definition at line 153 is redundant as these variables are already defined at line 18.

Remove the duplicate definition:

-:root {
-    --deep-teal: #003d4d;
-    --off-white: #f8f9fa;
-    --dark-slate: #2f4f4f;
-    --soft-gold: #d9c79e;
-}

Line range hint 419-432: Fix invalid navbar structure.

There are several issues in the navbar section:

  1. Nested nav elements with duplicate navbar class
  2. Unclosed nav tag
  3. Misplaced div closing tag

Apply this fix to correct the structure:

-    <h1 style="font-family: Arial, sans-serif;">Resum Resume</h1>
-    <nav class="navbar">
-        <div class="tabs-container"></div>
+    <h1 style="font-family: Arial, sans-serif;">Resum Resume</h1>
+    <div class="tabs-container">
         <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>
-    </nav>
+    </div>

Line range hint 484-486: Improve image accessibility with meaningful alt text.

The current alt text for card images appears to be missing or uses auto-generated filenames. This doesn't provide meaningful information for screen readers and fails accessibility requirements.

Update the alt text to describe the image content:

-                <img src="images/Gemini_Generated_Image_fx9dejfx9dejfx9d.jpg" alt="">
+                <img src="images/Gemini_Generated_Image_fx9dejfx9dejfx9d.jpg" alt="Illustration representing our mission and goals">

-                <img src="images/Gemini_Generated_Image_52rg8r52rg8r52rg.jpg" alt="">
+                <img src="images/Gemini_Generated_Image_52rg8r52rg8r52rg.jpg" alt="Step-by-step guide illustration">

-                <img src="images/Gemini_Generated_Image_ootrdvootrdvootr.jpg" alt="">
+                <img src="images/Gemini_Generated_Image_ootrdvootrdvootr.jpg" alt="Benefits and features illustration">

Also applies to: 495-497, 508-510


Line range hint 447-463: Optimize progress bar performance.

The current progress bar implementation may cause performance issues due to:

  1. Frequent style updates during scroll
  2. Potential layout thrashing from reading scrollY and updating width in the same function

Consider these optimizations:

 function updateProgressBar() {
-    const scrollTop = window.scrollY; 
-    const windowHeight = document.documentElement.scrollHeight - window.innerHeight; 
-    const scrollPercentage = (scrollTop / windowHeight) * 100; 
-
-    const progressBar = document.getElementById('progress-bar');
-    
-    
-    lastScrollPercentage += (scrollPercentage - lastScrollPercentage) * 0.1; 
-    progressBar.style.width = lastScrollPercentage + '%'; 
+    // Use requestAnimationFrame for smooth animation
+    requestAnimationFrame(() => {
+        const scrollTop = window.scrollY;
+        const windowHeight = document.documentElement.scrollHeight - window.innerHeight;
+        const scrollPercentage = (scrollTop / windowHeight) * 100;
+        
+        const progressBar = document.getElementById('progress-bar');
+        
+        // Use transform instead of width for better performance
+        lastScrollPercentage += (scrollPercentage - lastScrollPercentage) * 0.1;
+        progressBar.style.transform = `translateX(${lastScrollPercentage}%)`;
+    });
 }
-window.addEventListener('scroll', updateProgressBar);
+// Throttle scroll events for better performance
+let ticking = false;
+window.addEventListener('scroll', () => {
+    if (!ticking) {
+        ticking = true;
+        updateProgressBar();
+        setTimeout(() => ticking = false, 16); // ~60fps
+    }
+});
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between fdc4db8 and fe951f3.

📒 Files selected for processing (1)
  • about.html (1 hunks)
🧰 Additional context used

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