Skip to content

Update coupon flow copy#11

Merged
Sashko-kapillar merged 1 commit into
mainfrom
feature/coupon-lead-flow
Jun 13, 2026
Merged

Update coupon flow copy#11
Sashko-kapillar merged 1 commit into
mainfrom
feature/coupon-lead-flow

Conversation

@Sashko-kapillar

@Sashko-kapillar Sashko-kapillar commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • Style

    • Refined responsive layouts for desktop and mobile views, improving content display and visual hierarchy.
    • Updated typography sizing with adaptive font scales across different screen sizes.
    • Adjusted component spacing, alignment, and grid configurations for better visual consistency.
  • Content Updates

    • Updated application category naming and related descriptions.

@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
leadgen-microcement-lviv Ready Ready Preview, Comment Jun 13, 2026 7:51am

@coderabbitai

coderabbitai Bot commented Jun 13, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR refines responsive design and typography across seven components and the global CSS system. Changes include adjusting Tailwind breakpoints (shifting Benefits from md to lg visibility), updating grid/flex layouts in How It Works, adding responsive sizing to the global .section-title, styling the hero title and badges, applying responsive classes to the More Info form, updating Applications section content, and fine-tuning component spacing at different screen sizes.

Changes

Responsive Layout and Typography Updates

Layer / File(s) Summary
Global design system typography
src/index.css
.section-title Tailwind class updated to use smaller base size text-xl with responsive scaling (sm:text-3xl, md:text-4xl) and removed font-semibold.
Applications section data
src/components/Applications/data/applications.data.ts
"Kitchen" item title changed to "Комерція" and image alt text updated to "Рецепшн з мікроцементом".
Hero responsive typography and spacing
src/components/Hero/Hero.tsx
Hero title gains font-semibold; badges list gap adjusted from default gap-6 lg:gap-3 to lg:gap-1 only.
Benefits section visibility and layout
src/components/Benefits/Benefits.tsx, src/components/Benefits/BenefitsMobileWheel.tsx
Benefits container breakpoint shifted to lg:flex with flex-nowrap and justify-center; wheel visibility moved from md:hidden to lg:hidden to extend mobile wheel display.
How It Works responsive grid and flex
src/components/HowItWorks/HowItWorks.tsx, src/components/HowItWorks/HowStepCard.tsx
HowItWorks adds md:grid-cols-2 for two-column layout; HowStepCard changes sizing from min-h-[270px] to h-full and removes responsive sm overrides.
More Info form trust line styling
src/components/MoreInfo/MoreInfoForm.tsx
Trust line text span receives responsive layout classes (max-w-70, text-start, md:max-w-none) replacing unstyled wrapper.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 A responsive rebrand, neat and small,
Breakpoints dancing, margins all,
From md to lg, the wheel takes flight,
Typography scales—the design shines bright!
Content whispers in Ukrainian tongue,
A layout ballet, perfectly sung.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title 'Update coupon flow copy' does not match the actual changeset, which consists entirely of Tailwind CSS styling updates and layout adjustments across multiple components, plus minor data changes to application descriptions. Revise the title to accurately reflect the main changes, such as 'Refactor responsive layouts and update Tailwind styling' or 'Update component styling and responsive breakpoints'.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/coupon-lead-flow

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🧹 Nitpick comments (1)
src/components/Hero/Hero.tsx (1)

63-63: ⚡ Quick win

Missing gap definition between md and lg breakpoints.

The badges list becomes visible at the md breakpoint but has no gap defined until lg (where lg:gap-1 applies). This means:

  • At md: gap defaults to gap-0 (no spacing between items)
  • At lg+: gap-1 (~0.25rem / 4px)

The badges will appear tightly packed at medium screens. Consider adding md:gap-2 or similar if some spacing is desired before the lg breakpoint.

💡 Suggested improvement
-          <ul className="mt-10 hidden sm:grid-cols-3 md:grid lg:mt-18 lg:max-w-[620px] lg:gap-1">
+          <ul className="mt-10 hidden sm:grid-cols-3 md:grid md:gap-2 lg:mt-18 lg:max-w-[620px] lg:gap-1">

Or if no gap at md is intentional, consider adding a comment explaining the design choice.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/Hero/Hero.tsx` at line 63, In the Hero component update the
badges list styles: the <ul> element in src/components/Hero/Hero.tsx currently
uses lg:gap-1 but has no gap at the md breakpoint, so add an intermediate gap
(for example md:gap-2) to the className (or explicitly document with a comment
if no gap is intentional) so badges are not tightly packed on medium screens;
locate the <ul className="..."> in the Hero component and insert md:gap-2 (or
another chosen spacing utility) alongside the existing responsive gap utility.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/Applications/data/applications.data.ts`:
- Around line 58-62: The data entry with id 'kitchen' has inconsistent copy
between title, text, and imageAlt; update the fields on the applications data
object (id: 'kitchen') so title, text, and imageAlt all describe the same
concept (either "commercial spaces" or "kitchens" etc.) — for example, if it's
for commercial spaces, change text to describe commercial environments (shops,
offices, cafes) and set imageAlt to match that context; ensure
ApplicationCard/ApplicationLightbox will render consistent copy by making title,
text, and imageAlt align semantically.

In `@src/components/HowItWorks/HowItWorks.tsx`:
- Line 16: The code uses a non-standard Tailwind breakpoint `1xl` in the
HowItWorks and HowStepCard components (e.g., className "1xl:grid-cols-4");
either add a proper Tailwind v4 theme breakpoint named `1xl` (define
--breakpoint-1xl in your CSS `@theme` and map it in the Tailwind v4 breakpoint
tokens) or update the components to use an existing breakpoint (for example
replace `1xl:` with `xl:` or `2xl:`) so the classes resolve; apply the same
change in both HowItWorks and HowStepCard so styling is consistent.

In `@src/components/MoreInfo/MoreInfoForm.tsx`:
- Line 260: The span in the MoreInfoForm component using the nonstandard
Tailwind class "max-w-70" won't apply; replace it with a valid utility or token
(for example change className to use "max-w-[70px]" or an existing token like
"max-w-72"), or alternatively add a CSS variable --max-width-70 to your `@theme`
tokens and map it to a custom utility; update the span that renders
moreInfoTrustLine accordingly (locate the span in MoreInfoForm that contains
moreInfoTrustLine and modify its className).

In `@src/index.css`:
- Line 208: The .section-title rule lost its font weight and will make all <h2
className="section-title"> headings in HowItWorks, Benefits, and MoreInfo render
lighter than intended; restore the intended weight by adding back a font utility
(e.g., font-semibold) or an explicit font-weight (e.g., font-weight: 600) to the
.section-title declaration so those components’ headings remain semibold.

---

Nitpick comments:
In `@src/components/Hero/Hero.tsx`:
- Line 63: In the Hero component update the badges list styles: the <ul> element
in src/components/Hero/Hero.tsx currently uses lg:gap-1 but has no gap at the md
breakpoint, so add an intermediate gap (for example md:gap-2) to the className
(or explicitly document with a comment if no gap is intentional) so badges are
not tightly packed on medium screens; locate the <ul className="..."> in the
Hero component and insert md:gap-2 (or another chosen spacing utility) alongside
the existing responsive gap utility.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 2cbce4c0-5656-4422-a841-e68ecefa4f50

📥 Commits

Reviewing files that changed from the base of the PR and between 76d881c and 7ad2c96.

📒 Files selected for processing (8)
  • src/components/Applications/data/applications.data.ts
  • src/components/Benefits/Benefits.tsx
  • src/components/Benefits/BenefitsMobileWheel.tsx
  • src/components/Hero/Hero.tsx
  • src/components/HowItWorks/HowItWorks.tsx
  • src/components/HowItWorks/HowStepCard.tsx
  • src/components/MoreInfo/MoreInfoForm.tsx
  • src/index.css

Comment thread src/components/Applications/data/applications.data.ts
Comment thread src/components/HowItWorks/HowItWorks.tsx
Comment thread src/components/MoreInfo/MoreInfoForm.tsx
Comment thread src/index.css
@Sashko-kapillar Sashko-kapillar merged commit e4175d7 into main Jun 13, 2026
3 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Jun 13, 2026
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.

1 participant