Skip to content

fix(public): keep the early-access CTA in the first viewport on Promptly/Drishti mobile heroes - #96

Merged
nish3451 merged 64 commits into
mainfrom
fix/promptly-drishti-mobile-hero-cta
Aug 19, 2026
Merged

fix(public): keep the early-access CTA in the first viewport on Promptly/Drishti mobile heroes#96
nish3451 merged 64 commits into
mainfrom
fix/promptly-drishti-mobile-hero-cta

Conversation

@nish3451

@nish3451 nish3451 commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Problem

The pre-launch "Get early access" CTA added in #32 was buried below the first
viewport on the Promptly and Drishti mobile heroes.

Root cause: the global h1 cap (max-width: 9-10ch) with the large clamp font
balloons each sentence-length product headline into a ~500px-tall narrow
column on phones. The h1 alone ate ~60% of a 375x812 viewport, pushing the
action row (and the CTA) below the fold (measured CTA top: 1007px promptly,
1062px drishti at 375x812).

Change

Scope a product-hero modifier to the two product heroes only:

  • public/promptly/index.html, public/drishti/index.html: add
    product-hero class to the hero section.
  • public/styles.css (inside @media (max-width: 720px) only):
    • h1 wraps full width at a mobile-scale size (clamp(2rem, 8vw, 3.4rem))
    • tighter lead + action-row spacing for those heroes

Desktop/tablet (>=721px) layouts are untouched.

Verification

Rendered with headless Chromium and measured element positions:

Viewport Before (CTA top..bottom) After
390x844 1007..1055 / 1062..1110 576..624 / 576..624
375x812 1007..1055 / 1062..1110 578..626 / 578..626
375x667 1007..1055 / 1062..1110 577..625 / 578..626
320x568 1034..1082 / 1088..1136 631..679 / 633..681

The CTA is now fully inside the first viewport on all current phones
(375x667 through 430x932). At 320x568 (iPhone 5/SE1, ~2% of iOS) it remains
below the fold, but is now the best-positioned hero on the site at that width
(homepage 1075, support pages 837) — legacy viewport, documented as
deliberately left at a readable scale. No horizontal overflow at any width;
desktop/tablet positions unchanged.

npm run ci: 621 checks, 0 failures (incl. all 7 public-page suites).

Summary by CodeRabbit

  • Style
    • Improved mobile layouts for product hero sections across Drishti and Promptly.
    • Adjusted heading size and width for better readability on smaller screens.
    • Refined supporting text spacing, typography, and action-row positioning.

…bile heroes

The global h1 cap (9-10ch) balloons the sentence-length Promptly and
Drishti hero headlines into a ~500px-tall narrow column on mobile,
pushing the newly added Get early access CTA below the first viewport.
Scope a product-hero modifier to those two heroes: wider wrap and a
mobile-scale font for the h1, with tightened lead and action-row
spacing, so the primary CTA lands in the first useful viewport.
…wports

Drop the product-hero h1 floor to 2rem and tighten lead/action-row
spacing: the early-access CTA now sits fully inside the first viewport
at 375x667 (iPhone 8/SE2) as well as 375x812+ phones, with no layout
change above 720px.

@greptile-apps greptile-apps 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.

nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 2b5967d8-9d80-4e85-b0de-a22de52fa2e0

📥 Commits

Reviewing files that changed from the base of the PR and between 0cc2f74 and 971f33e.

📒 Files selected for processing (2)
  • public/drishti/index.html
  • public/promptly/index.html
🚧 Files skipped from review as they are similar to previous changes (2)
  • public/promptly/index.html
  • public/drishti/index.html

Included review availability: 1 review is currently available. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.


📝 Walkthrough

Walkthrough

Drishti and Promptly hero sections now use the product-hero class. Mobile CSS adjusts heading width, typography, lead text spacing, and action row spacing.

Changes

Product hero mobile styling

Layer / File(s) Summary
Shared hero class and responsive styling
public/drishti/index.html, public/promptly/index.html, public/styles.css
The Drishti and Promptly hero sections add the product-hero class. Mobile rules remove the heading width limit, reduce typography sizes, tighten lead-text spacing, and reduce the action row margin.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to 971f3

This localized change adjusts the mobile hero layout for Promptly and Drishti without reported merge-blocking issues; it is merge-ready after normal checks and review.

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: keeping the early-access CTA visible in the first mobile viewport for Promptly and Drishti heroes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/promptly-drishti-mobile-hero-cta

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

@greptile-apps greptile-apps 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.

nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@greptile-apps greptile-apps 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.

nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@greptile-apps greptile-apps 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.

nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@greptile-apps greptile-apps 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.

nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@greptile-apps greptile-apps 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.

nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: af5cd08de9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread public/styles.css
Comment on lines +903 to +905
.product-hero h1 {
max-width: none;
font-size: clamp(2rem, 8vw, 3.4rem);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Cover landscape phone viewports

On landscape phones wider than 720 CSS pixels (for example, an 844×390 iPhone viewport), this override never applies. The 1024px breakpoint has already collapsed the hero to one column, but the product heading retains the global 10ch width and large font, so the lead and early-access CTA remain below the short first viewport. Please apply the product-specific compaction to landscape-phone dimensions as well, without necessarily changing the tablet layout.

Useful? React with 👍 / 👎.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@nish3451
nish3451 merged commit 6898084 into main Aug 19, 2026
2 checks passed
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