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

Home Text Typer, Footer Compo, Not Found Page and other UI Updation #149

Closed
wants to merge 8 commits into from

Conversation

AliGates915
Copy link
Contributor

@AliGates915 AliGates915 commented Oct 8, 2024

  1. Before
    Screenshot (697)
    After
    Screenshot (696)

2.Before
Screenshot (691)
After
Screenshot (694)

3.Before
Screenshot (698)
After
Screenshot (700)

4.Before
Screenshot (701)
After
Screenshot (695)

@RamakrushnaBiswal check my PR.

Summary by CodeRabbit

Release Notes

  • New Features

    • Added social media icons for Facebook, Instagram, and TikTok in the footer.
  • Improvements

    • Enhanced visual layout of the "404 Not Found" page.
    • Adjusted heading size on the Landing page for better readability.
    • Refined navigation button positioning in the Review Carousel for improved accessibility.
  • Cosmetic Changes

    • Renamed menu item from "Boardgames" to "BoardGames" in the Navbar.

Text is not proper visible in different screen
updated Arrow section left and right side
BoardGames instead of Boardgames
Change the Footer Section
Set the not Found Page
Copy link

vercel bot commented Oct 8, 2024

@AliGates915 is attempting to deploy a commit to the bunty's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

coderabbitai bot commented Oct 8, 2024

Walkthrough

The pull request introduces several modifications across multiple components in the frontend application. Key changes include layout adjustments in the NotFound, Content, and ReviewCarousel components, a cosmetic rename in the Navbar, and a heading size reduction in the Landing component. These updates enhance the visual presentation and user experience without altering the core functionality of the affected components.

Changes

File Path Change Summary
frontend/src/components/Pages/Notfound.jsx Adjusted margins for <h1> and <p> elements in the NotFound component for layout changes.
frontend/src/components/Shared/Navbar.jsx Renamed menu item from "Boardgames" to "BoardGames"; no functional changes.
frontend/src/components/Shared/footer/Content.jsx Restructured layout, added social media icons, adjusted navigation links, and improved spacing.
frontend/src/components/ui/Landing.jsx Reduced heading size from text-9xl to text-6xl and added ESLint directive above export statement.
frontend/src/components/ui/ReviewCarousel.jsx Adjusted navigation button positioning and size for improved visibility without functional changes.

Possibly related PRs

Suggested labels

enhancement, level 2, gssoc-ext, checked

Suggested reviewers

  • RamakrushnaBiswal

🐰 In the land of code where changes bloom,
A 404 now has more room!
With icons for social, bright and new,
The Navbar shines, a clearer view.
So hop along, let’s make it right,
In the world of frontend, all feels bright! 🌟


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
Contributor

github-actions bot commented Oct 8, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

Copy link
Contributor

@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: 1

🧹 Outside diff range and nitpick comments (6)
frontend/src/components/Pages/Notfound.jsx (1)

7-13: Test responsiveness and consider more flexible layout techniques

The changes to both the heading and paragraph margins aim to adjust the vertical spacing of elements in the NotFound component. While this may create a more compact layout on some screens, it might cause issues on others.

To improve the component's responsiveness and maintainability:

  1. Test the layout on various device sizes to ensure it looks good and remains readable across all screens.
  2. Consider using flexbox or CSS grid for layout, which can provide more flexible and responsive spacing between elements.
  3. Instead of fixed units like mt-20 and mt-[-2rem], use relative units or responsive utility classes that adapt to different screen sizes.
  4. Ensure that the changes don't negatively impact accessibility, particularly in terms of text-background contrast and element overlap.

Example of a more flexible approach using flexbox:

<div className="flex flex-col items-center justify-center h-screen space-y-4 md:space-y-8">
  <h1 className="text-5xl font-bold text-center">404 Not Found</h1>
  <img
    src={Notfound}
    alt="Not Found GIF"
    className="w-full max-w-md"
  />
  <p className="text-lg text-gray-700 text-center">
    Sorry, the page you are looking for could not be found.
  </p>
</div>

This approach uses flexbox and a responsive spacing utility (space-y-4 md:space-y-8) to create a more adaptable layout without relying on fixed margins or negative values.

frontend/src/components/Shared/footer/Content.jsx (4)

11-22: Great addition of social media icons!

The inclusion of social media icons with appropriate links enhances user engagement. The use of aria-labels for accessibility is commendable.

Consider using template literals for the className to maintain consistency with other parts of the code:

-          <div className="text-white mt-10 flex justify-center space-x-6">
+          <div className={`text-white mt-10 flex justify-center space-x-6`}>

Line range hint 44-53: Improved Section2 component layout and responsiveness.

The adjustments to class names and the capitalization of "BoardGame" enhance the component's appearance and consistency.

To improve readability, consider extracting the conditional class names into variables:

const headingClass = isWide ? "text-[9vw] mr-8" : "text-[12vw] mt-10";
const subHeadingClass = isWide ? "text-[9vw]" : "text-[12vw] mt-4";

// Then use them in the JSX
<h1 className={`${headingClass} leading-[0.8]`}>
  BoardGame {!isWide && <br />}
</h1>
<h1 className={`${subHeadingClass} leading-[0.8]`}>
  Cafe
</h1>

Line range hint 75-109: Navigation improvements and layout enhancements.

The updates to navigation link paths, consistent capitalization of "BoardGame", and the improved layout with the addition of the logo enhance the overall structure and functionality of the navigation component.

Consider providing a more descriptive alt text for the logo image:

-            alt="logo"
+            alt="PlayCafe logo"

This change would improve accessibility by providing more context about the image content.


Line range hint 1-146: Overall excellent improvements to the footer component.

The changes made to this file significantly enhance the footer's visual appeal and functionality. Key improvements include:

  1. Addition of social media icons for better user engagement.
  2. Refined layout and responsiveness of the Section2 component.
  3. Corrected navigation link paths and consistent capitalization.
  4. Improved overall structure and organization of the navigation component.

These updates align well with the PR objectives and contribute to a more polished and user-friendly interface.

Consider breaking down this large component into smaller, more manageable sub-components for better maintainability. For example, you could create separate components for the social media icons, the main content section, and the navigation links.

frontend/src/components/ui/ReviewCarousel.jsx (1)

169-169: LGTM: Icon size specification

Setting the size property to 18 for the MdArrowBackIos icon ensures consistent sizing across different environments. This is a good practice for maintaining UI consistency.

Consider applying the same size={18} property to the MdArrowForwardIos icon on line 175 for consistency between both navigation buttons.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 3c988e6 and 043b65b.

📒 Files selected for processing (5)
  • frontend/src/components/Pages/Notfound.jsx (2 hunks)
  • frontend/src/components/Shared/Navbar.jsx (2 hunks)
  • frontend/src/components/Shared/footer/Content.jsx (4 hunks)
  • frontend/src/components/ui/Landing.jsx (3 hunks)
  • frontend/src/components/ui/ReviewCarousel.jsx (1 hunks)
🧰 Additional context used
🔇 Additional comments (10)
frontend/src/components/Pages/Notfound.jsx (2)

7-7: Verify the layout after margin adjustment

The heading's margin has been changed from mb-8 to mt-20, which significantly increases the top margin. This change could push the "404 Not Found" text further down the page, potentially affecting the overall layout and visibility of other elements.

Please ensure that:

  1. The heading is still visible without scrolling on various screen sizes.
  2. The increased top margin doesn't create too much empty space above the heading.
  3. The heading's position relative to the GIF and paragraph below it still looks balanced.

Consider using responsive design techniques to adjust the margin for different screen sizes if necessary.


13-13: Ensure readability with negative margin

The paragraph's top margin has been changed from mt-8 to mt-[-2rem], which will move the text upwards, potentially overlapping with the GIF above it.

Please verify the following:

  1. The paragraph text doesn't overlap with the GIF in a way that reduces readability.
  2. The negative margin works well across different screen sizes and doesn't cause unexpected layout issues.
  3. The overall spacing between the heading, GIF, and paragraph looks balanced and aesthetically pleasing.

Consider using flexbox or grid layout techniques instead of negative margins for more predictable spacing, especially in responsive designs.

frontend/src/components/ui/Landing.jsx (2)

42-42: Heading size adjustment approved.

The reduction in heading size from 'text-9xl' to 'text-8xl' is noted. This change likely improves the visual hierarchy or responsiveness of the design.


9-9: Consider the necessity of disabling the ESLint rule.

While the ESLint directive is correctly placed, disabling ESLint rules should be done cautiously. The 'react-refresh/only-export-components' rule is typically used to ensure that only React components are exported from a file to optimize hot reloading.

Could you provide more context on why this rule needs to be disabled? If it's due to the trackWindowScroll HOC, consider moving it to a separate file to maintain ESLint compliance.

✅ Verification successful

Move trackWindowScroll to a separate file to maintain ESLint compliance.

Since trackWindowScroll is only used within Landing.jsx, relocating it allows the react-refresh/only-export-components ESLint rule to remain enabled, enhancing codebase consistency and hot reloading optimization.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if trackWindowScroll is used elsewhere in the project
rg --type jsx --type tsx "trackWindowScroll" .

Length of output: 74


Script:

#!/bin/bash
# Define custom types for jsx and tsx
rg --type-add 'jsx:*.jsx' --type-add 'tsx:*.tsx' -t jsx -t tsx "trackWindowScroll" .

Length of output: 292

frontend/src/components/Shared/footer/Content.jsx (2)

1-7: LGTM: Imports and main structure updates look good.

The new imports for social media icons and the adjustments to the main div's className improve the layout and prepare for the addition of social media links. These changes align well with the PR objectives of updating the UI.


Line range hint 111-146: LGTM: Navigation links structure refinement.

The adjustments to the navigation links section improve code readability while maintaining the existing functionality. The structure is now more organized and easier to maintain.

frontend/src/components/ui/ReviewCarousel.jsx (3)

167-167: LGTM: Button positioning adjustment

The change in the left property from left-20 to left-10 moves the previous slide button closer to the left edge of the carousel. This adjustment aligns with the PR objectives of updating the UI.

Please verify that this change provides the desired visual effect across different screen sizes.


173-175: LGTM: Consistent button and icon updates

The changes to the next slide button are consistent with those made to the previous slide button:

  1. The right property change from right-20 to right-10 aligns the positioning with the previous button.
  2. Setting the size={18} for the MdArrowForwardIos icon ensures consistency with the back icon.

These changes contribute to a more uniform and polished UI.

Please verify that these adjustments provide the desired visual effect across different screen sizes, ensuring that both navigation buttons are symmetrically positioned and sized.


167-175: Summary: UI improvements align with PR objectives

The changes made to the ReviewCarousel component focus on improving the UI by:

  1. Adjusting the positioning of navigation buttons.
  2. Ensuring consistent icon sizes for both previous and next buttons.

These updates align well with the PR objectives of updating the UI. The changes are minor but contribute to a more polished and consistent user interface.

To ensure these UI changes meet the desired outcome:

  1. Test the component across various screen sizes to verify that the button positioning remains optimal.
  2. Confirm that the icon sizes are visually appealing and consistent with the overall design.
  3. Verify that the functionality of the carousel remains intact, especially the navigation between slides.

Consider running the following commands to verify the changes:

✅ Verification successful

Verification Successful: UI Enhancements in ReviewCarousel.jsx Confirmed

The updates to the ReviewCarousel component have been thoroughly verified:

  1. Button Positioning: Navigation buttons are correctly repositioned with left-10 and right-10, ensuring optimal placement within the UI.
  2. Icon Size Consistency: Both MdArrowBackIos and MdArrowForwardIos icons maintain a consistent size of 18, adhering to the design specifications.
  3. Component Logic Integrity: No unintended changes were detected in the component's functionality, ensuring that the carousel operates as expected.

All UI improvements align with the PR objectives, contributing to a more polished and consistent user interface without introducing any issues.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the changes in ReviewCarousel component

# Test: Check for any unintended changes in the component's logic
rg -n "const ReviewCarousel" frontend/src/components/ui/ReviewCarousel.jsx -A 10

# Test: Verify the button class changes
rg -n "className=\"absolute hidden p-2" frontend/src/components/ui/ReviewCarousel.jsx

# Test: Check for any other occurrences of left/right positioning that might need similar updates
rg -n "left-\d+" frontend/src/
rg -n "right-\d+" frontend/src/

# Test: Verify icon size consistency across the component
rg -n "size={" frontend/src/components/ui/ReviewCarousel.jsx

Length of output: 1901


Script:

#!/bin/bash
# Description: Corrected regex to verify icon size consistency in ReviewCarousel component

# Test: Verify icon size consistency across the component with corrected regex
rg -n 'size=\{' frontend/src/components/ui/ReviewCarousel.jsx

Length of output: 214

frontend/src/components/Shared/Navbar.jsx (1)

21-21: LGTM! Consider checking for consistency across the app.

The capitalization of "BoardGames" improves consistency with other menu items. This is a good change.

To ensure consistency, let's check if "BoardGames" is used elsewhere in the codebase:

If there are any occurrences of "Boardgames" (lowercase 'g') in other files, consider updating them for consistency.

✅ Verification successful

LGTM! No further inconsistencies found.

The capitalization of "BoardGames" in the Navbar component improves UI consistency. Other occurrences of "Boardgames" are correctly used in asset paths and do not affect the user interface.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for occurrences of "Boardgames" and "BoardGames" in the codebase

echo "Occurrences of 'Boardgames':"
rg --type-not binary "Boardgames"

echo "\nOccurrences of 'BoardGames':"
rg --type-not binary "BoardGames"

Length of output: 279


Script:

#!/bin/bash
# Description: Check for occurrences of "Boardgames" and "BoardGames" in the codebase

echo "Occurrences of 'Boardgames':"
rg "Boardgames"

echo "\nOccurrences of 'BoardGames':"
rg "BoardGames"

Length of output: 1463

frontend/src/components/ui/Landing.jsx Outdated Show resolved Hide resolved
Copy link

vercel bot commented Oct 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
play-cafe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 1:14pm

@RamakrushnaBiswal
Copy link
Owner

RamakrushnaBiswal commented Oct 8, 2024

1 and 4 not needed just remove that
@AliGates915

@AliGates915
Copy link
Contributor Author

@RamakrushnaBiswal Check my other PR.

@AliGates915 AliGates915 closed this Oct 8, 2024
@RamakrushnaBiswal
Copy link
Owner

@AliGates915 why did you closed it

@AliGates915
Copy link
Contributor Author

@AliGates915 why did you closed it

Because bro already open to another PR. Plz bro merge it.

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.

2 participants