Skip to content

update: lp banner and faq item#708

Merged
kushagrasarathe merged 4 commits intodevelopfrom
ui/lp-update
Mar 5, 2025
Merged

update: lp banner and faq item#708
kushagrasarathe merged 4 commits intodevelopfrom
ui/lp-update

Conversation

@kushagrasarathe
Copy link
Copy Markdown
Contributor

@kushagrasarathe kushagrasarathe commented Feb 25, 2025

  • contributes to TASK-9223
  • updated landing page banner
  • peanut guy is now hidden for desktop views
  • added a new faq explaining what is peanut

Summary by CodeRabbit

  • New Features

    • Introduced a new FAQ entry that details Peanut’s functionalities and adjusted the order of existing FAQs for a smoother user experience.
  • Style and Visual Enhancements

    • Expanded and refreshed graphical assets, including new illustrations.
    • Updated the landing page hero section with a new image and refined image sizing for enhanced visual presentation.

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 25, 2025

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

Name Status Preview Comments Updated (UTC)
peanut-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2025 9:51am

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 25, 2025

Walkthrough

This pull request updates the FAQ section and asset management. A new FAQ entry about “Peanut” is inserted at the beginning with ID '0', and all subsequent FAQ IDs are incremented by one. In addition, multiple illustration assets are added and reorganized in the export file, with some assets removed and re‑exported. The landing page’s Hero component now imports a different asset and applies minor style adjustments to image width and component alignment.

Changes

File Change Summary
src/app/page.tsx Added a new FAQ entry ("So what's Peanut?") with ID '0'; all existing FAQ entry IDs are renumbered (e.g., '1' → '2', …, '6' → '7').
src/assets/illustrations/index.ts Added exports for multiple SVG/GIF assets (e.g., BUILD_ON_US_NOW, ButterySmoothGlobalMoneyBanner, CashoutNow, etc.); removed then re‑added some existing assets to reorganize exports.
src/components/LandingPage/hero.tsx Updated import from ButterySmoothGlobalMoney to AboutPeanut; adjusted image maximum width and modified the alignment class in the Hero component.

Suggested reviewers

  • Hugo0

Poem

I'm a hopping little rabbit with a code-loving heart,
Celebrating changes—each line a fresh start.
FAQ entries bloom like carrots in a row,
Illustrated assets in vibrant, new show.
I nibble on updates with a joyful little hop,
In the garden of code, may these changes never stop!


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2db5f82 and 7f626bb.

📒 Files selected for processing (1)
  • src/components/LandingPage/hero.tsx (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/components/LandingPage/hero.tsx

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 generate docstrings to generate docstrings for this 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.

@notion-workspace
Copy link
Copy Markdown

Landing page revamp

@kushagrasarathe kushagrasarathe requested review from Hugo0 and removed request for Hugo0 March 3, 2025 17:43
Copy link
Copy Markdown
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

🧹 Nitpick comments (1)
src/components/LandingPage/hero.tsx (1)

48-48: Potential duplicate rendering of HeroImages component.

The HeroImages component appears twice in the code - once on line 48 and again inside the hidden div. Since the first instance isn't hidden on mobile, this could lead to duplicate rendering on certain screen sizes. Consider removing one instance to avoid potential performance issues.

-                    <HeroImages />
                </Stack>
                <img
                    src={PeanutGuyGIF.src}
                    className="mg:bottom-0 mx-auto h-auto max-h-[60vh] w-[80%] transform object-contain md:w-auto lg:w-[20%]"
                    alt="Peanut Guy"
                />
                <Stack spacing={2} className="relative h-1/3 items-center justify-center px-4 text-center lg:h-full">
                    <img
                        src={AboutPeanut.src}
                        className="z-0 mx-auto w-full max-w-[1000px] object-contain lg:w-[40%]"
                        alt="Buttery Smooth Global Money"
                    />

                    <div className="hidden md:block">
                        <HeroImages />
                    </div>

Also applies to: 62-64

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4f51fd1 and 2db5f82.

⛔ Files ignored due to path filters (1)
  • src/assets/illustrations/hero-description.svg is excluded by !**/*.svg
📒 Files selected for processing (2)
  • src/assets/illustrations/index.ts (1 hunks)
  • src/components/LandingPage/hero.tsx (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/assets/illustrations/index.ts
🔇 Additional comments (5)
src/components/LandingPage/hero.tsx (5)

1-1: Added AboutPeanut import to display the new banner asset.

This change corresponds to the PR objective of updating the landing page banner with new assets.


41-49: New Stack component added to improve hero layout.

This new Stack component with the ButterySmoothGlobalMoney image creates a better visual hierarchy on the landing page. The responsive width adjustments (full width on mobile, 40% width on large screens) help maintain proper scaling across different device sizes.


52-52: Updated PeanutGuyGIF width to improve responsive display.

Changed from max-width percentage to a fixed width percentage (80%) which provides more consistent sizing across devices.


55-61: New AboutPeanut banner added as part of landing page update.

This new Stack component properly implements the AboutPeanut asset that was requested in the PR objectives. The responsive width settings (full width on mobile, 40% on desktop) ensure proper display across different screen sizes.


62-64: Successfully implemented desktop-only visibility for HeroImages.

The hidden md:block classes ensure the HeroImages component is only visible on medium and larger screens, which fulfills the PR objective of hiding the "peanut guy" element for desktop views.

className="z-0 mx-auto w-full max-w-[1000px] object-contain lg:w-3/4"
src={AboutPeanut.src}
className="z-0 mx-auto w-full max-w-[1000px] object-contain lg:w-[40%]"
alt="Buttery Smooth Global Money"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Incorrect alt text for AboutPeanut image.

The alt text still refers to "Buttery Smooth Global Money" but the image source is now AboutPeanut. This creates an accessibility issue as screen readers will announce incorrect information.

-                        alt="Buttery Smooth Global Money"
+                        alt="About Peanut"
📝 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.

Suggested change
alt="Buttery Smooth Global Money"
alt="About Peanut"

@kushagrasarathe kushagrasarathe merged commit fee0ecf into develop Mar 5, 2025
4 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Mar 28, 2025
@Hugo0 Hugo0 deleted the ui/lp-update branch July 3, 2025 18:24
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