Skip to content

feat: new try now home page#647

Merged
Hugo0 merged 1 commit intodevelopfrom
fix/try-now
Jan 24, 2025
Merged

feat: new try now home page#647
Hugo0 merged 1 commit intodevelopfrom
fix/try-now

Conversation

@kushagrasarathe
Copy link
Copy Markdown
Contributor

@kushagrasarathe kushagrasarathe commented Jan 24, 2025

  • add a new /pay page with cashout, send and request cta's
    fixes TASK-8443

Summary by CodeRabbit

  • New Features

    • Added a new /pay page with payment-related functionality
    • Introduced a TryNow component with cryptocurrency transaction cards
    • Updated landing page call-to-action button to link to the new pay page
  • UI/UX Changes

    • Added new icons for various actions and cryptocurrency-related elements
    • Implemented responsive card layout for transaction options
  • Navigation

    • Modified hero section link to redirect to the new /pay route

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 24, 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 Jan 24, 2025 3:35pm

@notion-workspace
Copy link
Copy Markdown

@kushagrasarathe kushagrasarathe requested a review from Hugo0 January 24, 2025 15:33
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jan 24, 2025

Walkthrough

This pull request introduces several changes across multiple files, focusing on enhancing the payment and navigation functionality of the application. The modifications include updating the landing page's call-to-action link, creating a new pay page, expanding the icons asset collection, and adding a new TryNow component. The changes appear to be part of a broader effort to improve the user interface and payment-related user experience.

Changes

File Change Summary
src/app/page.tsx - Reordered imports
- Changed hero CTA link from /send to /pay
src/app/pay/page.tsx - Added new PayPage component
- Implemented metadata generation
src/assets/icons/index.ts - Added new icon exports: ARROW_DOWN_CIRCLE, ARROW_UP_CIRCLE, CASHOUT_ICON
- Reintroduced GITHUB_ICON and GITHUB_INVERTED_ICON
src/components/Global/TryNow/index.tsx - Created new TryNow component
- Defined ITryNowCard interface for card configurations

Sequence Diagram

sequenceDiagram
    participant User
    participant LandingPage
    participant PayPage
    participant TryNow

    User->>LandingPage: Visits landing page
    LandingPage-->>User: Displays CTA button
    User->>PayPage: Clicks "Pay" CTA
    PayPage->>TryNow: Renders TryNow component
    TryNow-->>User: Displays transaction cards
Loading

Possibly related PRs

Suggested reviewers

  • Hugo0

Poem

🐰 A rabbit's tale of code so bright,
Payments dancing with pure delight
Icons new, and pages sleek
Navigation's path we now seek
Hop along the digital way! 🚀

✨ Finishing Touches
  • 📝 Generate Docstrings (Beta)

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. (Beta)
  • @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
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

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 9dcc067 and 6a68951.

⛔ Files ignored due to path filters (3)
  • src/assets/icons/arrow-down-circle.svg.svg is excluded by !**/*.svg
  • src/assets/icons/arrow-up-circle.svg is excluded by !**/*.svg
  • src/assets/icons/cashout-icon.svg is excluded by !**/*.svg
📒 Files selected for processing (4)
  • src/app/page.tsx (2 hunks)
  • src/app/pay/page.tsx (1 hunks)
  • src/assets/icons/index.ts (1 hunks)
  • src/components/Global/TryNow/index.tsx (1 hunks)
🔇 Additional comments (13)
src/app/pay/page.tsx (3)

1-5: Ensure consistent import organization
Imports for TryNow, Layout, and generateMetadata look fine. Consider grouping them together for clarity.


6-13: Great use of metadata for SEO
The metadata configuration with title, description, image, and keywords will help bolster the page’s discoverability and clarity.


15-21: PayPage structure is clear and minimal
The page properly uses the Layout component and embeds the TryNow component. No immediate issues found.

src/assets/icons/index.ts (2)

8-9: Consistent naming
ETHEREUM_ICON and GAS_ICON exports are good for clarity. Ensure all icon filenames match their references for maintainability.


11-12: Reintroduced GitHub icons
Reinstating GITHUB_INVERTED_ICON and GITHUB_ICON aligns with prior usage. No concerns found.

src/components/Global/TryNow/index.tsx (5)

1-5: Appropriate imports
The chosen libraries (Chakra UI, tailwind-merge, etc.) are well-suited for building a responsive UI.


7-12: Well-defined interface
The ITryNowCard interface provides clarity on the shape of the card data. Keep it up for future expansions.


14-33: Card data is clearly separated
Storing card details in an array is a good approach to maintain scalability and ease of updates if more actions are introduced.


35-83: Responsive design looks good
The grid layout and conditional classes for mobile/desktop provide a smooth user experience. Good job ensuring each card is individually clickable.


85-85: Export statement
Single default export is concise. No issues found.

src/app/page.tsx (3)

5-5: Grouped imports
Importing multiple LandingPage components in one statement is clean. No concerns here.


7-7: Hook import order
useEffect and useState appear in a standard order; no issues identified.


18-18: Corrected CTA link
Switching the hero button’s href from /send to /pay aligns with the new PayPage. This is likely correct.

Comment on lines +1 to +2
export { default as ARROW_DOWN_CIRCLE } from './arrow-down-circle.svg.svg'
export { default as ARROW_UP_CIRCLE } from './arrow-up-circle.svg'
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

Typo in file extension
Line 1 references './arrow-down-circle.svg.svg'. This may be a typographical oversight. Consider removing the extra .svg.

-export { default as ARROW_DOWN_CIRCLE } from './arrow-down-circle.svg.svg'
+export { default as ARROW_DOWN_CIRCLE } from './arrow-down-circle.svg'
📝 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
export { default as ARROW_DOWN_CIRCLE } from './arrow-down-circle.svg.svg'
export { default as ARROW_UP_CIRCLE } from './arrow-up-circle.svg'
export { default as ARROW_DOWN_CIRCLE } from './arrow-down-circle.svg'
export { default as ARROW_UP_CIRCLE } from './arrow-up-circle.svg'

@Hugo0 Hugo0 merged commit 4c4e30a into develop Jan 24, 2025
@coderabbitai coderabbitai bot mentioned this pull request Jan 24, 2025
@Hugo0 Hugo0 deleted the fix/try-now branch July 3, 2025 18:23
@coderabbitai coderabbitai bot mentioned this pull request Aug 14, 2025
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