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

Styling[Responsiveness]: Made the site responsive for smaller devices. #373

Conversation

the-shivam-gupta
Copy link
Contributor

@the-shivam-gupta the-shivam-gupta commented Dec 10, 2023

Fixes issue

Fixes #350

Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • My change requires changes to the documentation.
  • I have updated the documentation accordingly.
  • This PR does not contain plagiarized content.
  • The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

Summary by CodeRabbit

  • Style Updates
    • Updated heading sizes and class names in the Contribute component for improved readability and visual appeal.
    • Enhanced text alignment and size in the Features component for a more polished look.
    • Adjusted the layout of the MainSection component to fill the screen height for a more immersive experience.
    • Refined image styling with width adjustments and added margins in the global styles for better presentation.

Copy link

vercel bot commented Dec 10, 2023

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

Name Status Preview Comments Updated (UTC)
drifty ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2023 3:34am

Copy link
Contributor

coderabbitai bot commented Dec 10, 2023

Walkthrough

The recent updates to the website's components involve stylistic refinements across various JSX files and a CSS adjustment. These changes primarily focus on visual presentation, such as modifying text sizes, alignment, and class names, as well as enhancing layout properties for better screen fit and element spacing.

Changes

File Path Change Summary
.../Contribute.js,
.../Features.js
Modified heading sizes, class names, and anchor tag attributes in JSX elements. Changed text styling and alignment in JSX.
.../MainSection.js Added h-screen class to root div.
.../globals.css Updated .img-layer class with new width, margin, and justify-content properties.

🐇✨
Changes here, changes there,
Code hops along without a care.
Text aligns, styles embrace,
A website's charm, with a rabbit's grace. 🌟
🐇✨

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 X ?


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

@github-actions github-actions bot added the Website 🌐 Issues/Pull Requests regarding Website label Dec 10, 2023
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Yeah! You did it 🎉 Now, Relax 😉, Grab a drink ☕, and wait for the maintainers to check your contributions. Meanwhile, you can discuss on other issues and solve them 😀. Thank You 😃!

Meanwhile you can also discuss about the project in our Discord Server 😀

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.

Review Status

Actionable comments generated: 2

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 34edf71 and 2f4c7b1.
Files selected for processing (4)
  • Website/app/Contribute.js (3 hunks)
  • Website/app/Features.js (1 hunks)
  • Website/app/MainSection.js (1 hunks)
  • Website/app/globals.css (1 hunks)
Additional comments: 8
Website/app/Contribute.js (5)
  • 19-19: The heading size adjustments and class name changes in the JSX elements seem to align with the goal of improving responsiveness. Ensure that these changes are consistent with the design system and breakpoints used throughout the project.

  • 22-22: Verify that the new class names added to the Link component do not affect its functionality and are consistent with the project's styling conventions.

  • 31-31: The new layout for the contributors' section with flexbox and grid should be tested across different screen sizes to ensure it remains responsive and visually appealing.

  • 47-49: Check that the new links with dynamic content (stars and forks count) are accessible and that the content is being fetched and displayed correctly. Also, ensure that the icons used are properly referenced and displayed.

  • 34-34: Confirm that the calculation of totalNoOfContributors - 6 is intentional and accurately reflects the desired information to be displayed to the user.

Website/app/Features.js (1)
  • 54-56: The changes to the class names in the JSX element are consistent with the PR's objective to improve responsiveness on smaller devices. Ensure that the visual changes are tested across different devices and screen sizes to confirm that they meet the design and usability standards.
Website/app/MainSection.js (1)
  • 6-6: The addition of the h-screen class will make the MainSection take up the full height of the screen on all devices. Ensure this change aligns with the design requirements and does not cause unintended layout issues, especially when content does not fill the entire screen height.
Website/app/globals.css (1)
  • 26-31: The changes to the .img-layer class with the addition of width, margin, and justify-content properties are appropriate for centering elements and should contribute to the responsiveness of the site on smaller devices. Ensure that these changes do not adversely affect the layout on larger screens or in different contexts where the .img-layer class is used.

Website/app/MainSection.js Show resolved Hide resolved
Website/app/Contribute.js Show resolved Hide resolved
@SaptarshiSarkar12 SaptarshiSarkar12 added the bug 🐛 Issues/Pull Requests reporting/fixing a bug label Dec 10, 2023
Copy link
Owner

@SaptarshiSarkar12 SaptarshiSarkar12 left a comment

Choose a reason for hiding this comment

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

  • @the-shivam-gupta Please consider reducing the extra spaces in some of the cards (Not all - please check once) 👇
    image

  • Please add a statement to not display the animation for small devices.
    image

  • Please add equal gaps in the left side of the contribute button as present in the right side of the forks button.
    image

Website/app/MainSection.js Show resolved Hide resolved
@the-shivam-gupta
Copy link
Contributor Author

the-shivam-gupta commented Dec 10, 2023

okay. "Please add a statement to not display the animation for small devices." So what do you want there to display?

@SaptarshiSarkar12
Copy link
Owner

For small devices like mobiles, animation is not mandatory. So, keeping the responsiveness and performance of the website in mind, it would be better to not display the animation. @the-shivam-gupta What do you think? Please share any other alternatives if you think can work 😁.

@the-shivam-gupta
Copy link
Contributor Author

Ya it would be a nice idea.@SaptarshiSarkar12

@SaptarshiSarkar12
Copy link
Owner

Okay @the-shivam-gupta 👍

@the-shivam-gupta
Copy link
Contributor Author

the-shivam-gupta commented Dec 11, 2023

Hey @SaptarshiSarkar12, the files are of the same width and height based on the content. Can you plz provide for which screen or browser the problem is occurring:

image

Do u want something like this:

image

Copy link
Owner

@SaptarshiSarkar12 SaptarshiSarkar12 left a comment

Choose a reason for hiding this comment

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

@the-shivam-gupta Please make the following changes 👇

  • Fix the large redundant blue part in the homepage of the website There is a huge extension of the blue background in the homepage of the website.

    Before Your changes were made

    image

    After Your changes were made

    Screenshot from 2023-12-11 21-12-04

  • The small animation can be seen in Galaxy Fold device. You should ensure that such animation shouldn't be displayed for devices like that.
    image

  • Please add some space to the left of the Contribute button as present in the right of the Fork button for Galaxy Fold like devices only.
    image

    • There are some blank spaces in the top and bottom of some feature cards as you can see below for Galaxy Fold like devices.
      image

@the-shivam-gupta
Copy link
Contributor Author

the-shivam-gupta commented Dec 12, 2023

Hey should I create a new pull request bcoz all the things are messed up here.

@SaptarshiSarkar12
Copy link
Owner

@the-shivam-gupta Yes, you can. Please keep in mind that you should first update your local git repo and then, work on the task. You must close this PR then 😁.

@the-shivam-gupta the-shivam-gupta deleted the responsive-page branch December 12, 2023 09:51
@the-shivam-gupta the-shivam-gupta restored the responsive-page branch December 12, 2023 09:51
@SaptarshiSarkar12 SaptarshiSarkar12 added the invalid This doesn't seem right label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issues/Pull Requests reporting/fixing a bug invalid This doesn't seem right Website 🌐 Issues/Pull Requests regarding Website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Website is not responsive for devices for 280px - 320px dimension
2 participants