Skip to content

fix: landing page hero font size + stats vertical alignment#21

Merged
MinitJain merged 1 commit into
mainfrom
fix-landing-page-ui
Mar 26, 2026
Merged

fix: landing page hero font size + stats vertical alignment#21
MinitJain merged 1 commit into
mainfrom
fix-landing-page-ui

Conversation

@MinitJain

@MinitJain MinitJain commented Mar 26, 2026

Copy link
Copy Markdown
Owner
  • Reduce hero headline clamp from 80px max to 64px so buttons are visible on a 14-inch MacBook without scrolling
  • Stats strip: add flexbox centering to each cell and alignItems stretch on the grid so labels align consistently across all three columns
  • Install @google/genai (prep for P2.4 AI tagging)

What does this PR do?

Type of change

  • New feature
  • Bug fix
  • Refactor
  • Docs / infra

Checklist

  • Code builds without errors (npm run build)
  • No TypeScript errors (npx tsc --noEmit)
  • Lint passes (npm run lint)
  • Self-reviewed the diff
  • Tested manually in the browser

Summary by CodeRabbit

  • New Features

    • Integrated Google Generative AI capabilities to support enhanced application features.
  • Style

    • Refined hero headline responsive font scaling for improved visual consistency across devices.
    • Enhanced stats section layout with improved centering and typography spacing for better readability.

- Reduce hero headline clamp from 80px max to 64px so buttons are
  visible on a 14-inch MacBook without scrolling
- Stats strip: add flexbox centering to each cell and alignItems stretch
  on the grid so labels align consistently across all three columns
- Install @google/genai (prep for P2.4 AI tagging)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Mar 26, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
recall Ready Ready Preview, Comment Mar 26, 2026 7:18pm

@coderabbitai

coderabbitai Bot commented Mar 26, 2026

Copy link
Copy Markdown

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'instructions'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • 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
📝 Walkthrough

Walkthrough

The changes add a Google GenAI dependency and refine the landing page layout and typography. Hero headline scaling adjustments reduce maximum font size and viewport percentage. Stats strip grid now uses flexbox for improved alignment, with adjusted spacing and line-height for stat values and centered label text.

Changes

Cohort / File(s) Summary
Dependency Update
client/package.json
Added @google/genai at version ^1.46.0 to project dependencies.
Landing Page Layout & Typography
client/src/app/page.tsx
Updated hero headline responsive font sizing (reduced clamp range), refactored stats strip grid to use flexbox layout with vertical centering, and adjusted stat value typography (increased bottom margin and line-height) with centered text alignment for stat labels.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
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 (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the two main UI fixes in the changeset: reducing hero font size and improving stats vertical alignment.
Description check ✅ Passed The description covers the main changes and includes completed checklist items, but only partially addresses the template structure with minimal context before the template section.

✏️ 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 fix-landing-page-ui

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.

🧹 Nitpick comments (1)
client/package.json (1)

12-12: Keep guardrail in mind for upcoming feature implementation.

The dependency is currently unused (@google/genai has no imports). When the AI tagging feature is implemented, ensure imports only occur in server code, not in "use client" components like those in client/src/components/ and client/src/app/auth/.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@client/package.json` at line 12, The package currently lists the unused
dependency "@google/genai"; remove it until the AI tagging feature is
implemented, and when you add that feature ensure any imports of "@google/genai"
occur only in server-side code (e.g., API routes or server-only modules) and
never inside "use client" React components under client/src/components/ or
client/src/app/auth/; if server-only code is needed, create a dedicated server
module (e.g., an API route or a file without the "use client" directive) to wrap
calls to "@google/genai" and import that server module from client code via
secure API endpoints instead of direct imports.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@client/package.json`:
- Line 12: The package currently lists the unused dependency "@google/genai";
remove it until the AI tagging feature is implemented, and when you add that
feature ensure any imports of "@google/genai" occur only in server-side code
(e.g., API routes or server-only modules) and never inside "use client" React
components under client/src/components/ or client/src/app/auth/; if server-only
code is needed, create a dedicated server module (e.g., an API route or a file
without the "use client" directive) to wrap calls to "@google/genai" and import
that server module from client code via secure API endpoints instead of direct
imports.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9c61d54a-c81c-4d4f-a53e-23069c6644bd

📥 Commits

Reviewing files that changed from the base of the PR and between 74b42da and 06565bf.

⛔ Files ignored due to path filters (1)
  • client/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • client/package.json
  • client/src/app/page.tsx

@MinitJain MinitJain merged commit b28e98f into main Mar 26, 2026
4 checks passed
@MinitJain MinitJain deleted the fix-landing-page-ui branch March 28, 2026 13:53
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