Skip to content

Fix: Reviewed and fixed Refont of Confirmation page after enabling Subscription#1179

Merged
Marchand-Nicolas merged 5 commits intolfglabs-dev:testnetfrom
emarc99:feat-1115
Jul 25, 2025
Merged

Fix: Reviewed and fixed Refont of Confirmation page after enabling Subscription#1179
Marchand-Nicolas merged 5 commits intolfglabs-dev:testnetfrom
emarc99:feat-1115

Conversation

@emarc99
Copy link
Contributor

@emarc99 emarc99 commented Jul 19, 2025

Summary by CodeRabbit

  • Style
    • Improved layout and spacing on the subscription confirmation page and referral section.
    • Adjusted icon sizing for a more consistent appearance.
    • Updated navbar with additional top padding for better visual balance.
    • Introduced new and updated CSS classes for enhanced text emphasis and refined component styling.
    • Added support for the "Poppins-ExtraBold" font for stronger text display.

@vercel
Copy link

vercel bot commented Jul 19, 2025

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

Name Status Preview Comments Updated (UTC)
app-starknet-id ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 19, 2025 9:33am

@vercel
Copy link

vercel bot commented Jul 19, 2025

@emarc99 is attempting to deploy a commit to the LFG Labs Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 19, 2025

Walkthrough

The changes update the confirmation page's design and typography, particularly after subscription activation. Adjustments include modifying CSS classes and layout, refining icon sizes, introducing a new font, and updating the CopyIcon SVG viewBox. No changes were made to exported or public component APIs.

Changes

File(s) Change Summary
components/UI/iconsComponents/icons/copyIcon.tsx Changed CopyIcon SVG viewBox from "0 0 24 24" to "0 0 20 20".
pages/subscriptionConfirmation.tsx Updated class names, layout, and reduced CopyIcon width from 25 to 20 pixels in referral section.
styles/components/confirmation.module.css Adjusted spacing, alignment, colors, and added .content class; minor tweaks to .balloon, .coconut.
styles/components/navbar.module.css Added padding-top: 15px; to .navbarContainer.
styles/globals.css Added "Poppins-ExtraBold" font-face and new .stronger class using this font.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant SubscriptionConfirmationPage
    participant CopyIcon
    participant DoneFilledIcon

    User->>SubscriptionConfirmationPage: Visit confirmation page
    SubscriptionConfirmationPage->>CopyIcon: Render referral link copy icon (width 20px)
    SubscriptionConfirmationPage->>DoneFilledIcon: Render done icon
    SubscriptionConfirmationPage->>SubscriptionConfirmationPage: Apply updated CSS classes and layout
    User->>SubscriptionConfirmationPage: Interact with referral/copy features
Loading

Possibly related PRs

  • Subscription - Final review #1168: The main PR changes the CopyIcon SVG viewBox from "0 0 24 24" to "0 0 20 20" without altering its structure, whereas the retrieved PR completely redefines the CopyIcon component's SVG paths and adds explicit prop typing, indicating the changes affect the same component but at different levels and are related.

Suggested labels

❌ Change request

Suggested reviewers

  • Marchand-Nicolas
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate sequence diagram to generate a sequence diagram of the changes in 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.

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

🧹 Nitpick comments (6)
styles/globals.css (1)

124-126: Reuse Tailwind utilities instead of another custom helper class
.stronger duplicates the semantics of font-extrabold (font-weight 800).
Unless you specifically need the Poppins-ExtraBold face over other weights, consider:

- .stronger {
-   font-family: "Poppins-ExtraBold";
- }
+ /* remove class and switch markup back to Tailwind's `font-extrabold` */

Keeps global CSS lighter and avoids an extra network request for a weight you might not really use elsewhere.

pages/subscriptionConfirmation.tsx (1)

41-46: Fix wording + semantics
Small copy/HTML nits:

  1. “Earn up to $8 per friend” (singular).
  2. Use semantic <p> instead of bare <div> for accessibility / line-spacing.
- <div>Refer your friends to Starknet ID and earn crypto ! </div>
- <div className="stronger">
-   Earn up to 8$ per friends with your referral link below.
- </div>
+ <p>Refer your friends to Starknet ID and earn crypto!</p>
+ <p className="stronger">
+   Earn up to $8 per friend with your referral link below.
+ </p>
styles/components/confirmation.module.css (4)

8-14: Hard-coded spacing values might clash with the design system
gap: 10px & padding-top: 55px are “magic numbers”.
Prefer using CSS variables (e.g. var(--spacing-md)) or Tailwind spacing utilities to keep spacing consistent across pages.


39-49: copyAddr – improve tappable area & selection UX
Nice refactor, but two quick wins:

  1. Add user-select: all so users can still select the text if click-to-copy fails.
  2. Increase touch target to at least 44 px height for WCAG compliance on mobile.
.copyAddr {
@@
   display: flex;
   align-items: center;
+  user-select: all;
@@
-  margin-bottom: 40px;
+  margin-bottom: 40px;
+  min-height: 44px; /* mobile touch target */
 }

51-56: Consider removing .content and rely on global typography
The new .content duplicates global font/line-height rules; if only used once, inline Tailwind classes (leading-7 text-base py-2) keep the CSS leaner.


86-87: Nit: hex with alpha – stick to lowercase
#4545451A is valid but the mix of uppercase hex digits breaks some linters; prefer #4545451a.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 5fa2ff7 and 0fcbc78.

📒 Files selected for processing (5)
  • components/UI/iconsComponents/icons/copyIcon.tsx (1 hunks)
  • pages/subscriptionConfirmation.tsx (2 hunks)
  • styles/components/confirmation.module.css (4 hunks)
  • styles/components/navbar.module.css (1 hunks)
  • styles/globals.css (2 hunks)
🔇 Additional comments (4)
components/UI/iconsComponents/icons/copyIcon.tsx (1)

8-8: Confirm the icon still renders correctly with the smaller viewBox
Reducing the viewBox from 24 to 20 without regenerating the path data can introduce clipping if any coordinate >= 20.
The current path tops out at 18.83, so it should fit, but please sanity-check in all contexts (dark/light themes & retina).
If any clipping is observed, keep the original 24 viewBox and down-scale via width/height instead.

styles/components/navbar.module.css (1)

66-67: Potential double vertical padding
height: 12vh + new padding-top: 15px can over-shift the logo/menu vertically (especially on small screens).
Check visual alignment against the existing media-queries; you may need to add:

.navbarContainer {
  box-sizing: border-box; /* ensure the padding doesn’t grow the element past 12vh */
}

or simply move the padding into the breakpoint-specific blocks where the navbar height already changes.

pages/subscriptionConfirmation.tsx (1)

60-66: Keep icon sizes consistent
CopyIcon is now 20px while the success DoneFilledIcon remains 25px; the result is a jarring size jump after copy.
Either:

- <DoneFilledIcon width="25" ...
+ <DoneFilledIcon width="20" ...

or bump CopyIcon back to 24/25 to match.

styles/components/confirmation.module.css (1)

74-78: Absolute positioning may overlap on very tall screens
The balloon is now positioned at top: 25%; left: 20%. On ultra-wide / tall screens it might overlap the main copy.
Consider converting to em/rem offsets or limiting with max-width in a media query.

Comment on lines +18 to +21
@font-face {
font-family: "Poppins-ExtraBold";
src: url(../public/fonts/poppins/Poppins-ExtraBold.ttf);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Ship web-optimised font formats as well
Only ttf is declared; browsers will download the full-fat file (~100 KB-plus) even on mobile.
Add at least a woff2 source for modern browsers and keep ttf as a fallback:

 @font-face {
   font-family: "Poppins-ExtraBold";
-  src: url(../public/fonts/poppins/Poppins-ExtraBold.ttf);
+  src: url(../public/fonts/poppins/Poppins-ExtraBold.woff2) format("woff2"),
+       url(../public/fonts/poppins/Poppins-ExtraBold.ttf)  format("truetype");
 }
📝 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
@font-face {
font-family: "Poppins-ExtraBold";
src: url(../public/fonts/poppins/Poppins-ExtraBold.ttf);
}
@font-face {
font-family: "Poppins-ExtraBold";
src: url(../public/fonts/poppins/Poppins-ExtraBold.woff2) format("woff2"),
url(../public/fonts/poppins/Poppins-ExtraBold.ttf) format("truetype");
}
🤖 Prompt for AI Agents
In styles/globals.css around lines 18 to 21, the @font-face rule only includes a
TTF font source, which is large and not optimized for web use. Add a WOFF2 font
source before the TTF source to provide a smaller, web-optimized format for
modern browsers while keeping TTF as a fallback. Update the src property to
include both formats with proper format declarations.

Copy link
Collaborator

@Marchand-Nicolas Marchand-Nicolas left a comment

Choose a reason for hiding this comment

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

Well done! It's looks really better now! Lgtm :)

@Marchand-Nicolas Marchand-Nicolas merged commit 71a9041 into lfglabs-dev:testnet Jul 25, 2025
4 of 5 checks passed
@emarc99 emarc99 deleted the feat-1115 branch July 25, 2025 15:43
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.

Refont of confirmation page when you enable subscription - Final Review

2 participants