Skip to content

Davidasix/better home page#11

Merged
DavidASix merged 12 commits into
mainfrom
davidasix/better-home-page
Jul 5, 2025
Merged

Davidasix/better home page#11
DavidASix merged 12 commits into
mainfrom
davidasix/better-home-page

Conversation

@DavidASix

Copy link
Copy Markdown
Owner

This PR makes the home page suck marginally less

@DavidASix
DavidASix requested a review from Copilot July 5, 2025 04:21

Copilot AI left a comment

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.

Pull Request Overview

This PR overhauls the home page layout and design, introduces a reusable Badge component, and tweaks global styles and configurations.

  • Adds a new Badge UI component and updates CSS variables for the primary color.
  • Refactors the homepage into distinct sections (Hero, Social Proof, Features, How It Works, CTA, About).
  • Updates pricing card styling/link, bumps a package version, switches to a named Docker volume, and tightens styling guidelines in documentation.

Reviewed Changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/components/ui/badge.tsx Adds a new Badge component powered by class-variance-authority
src/components/common/pricing-options.tsx Removes outer wrapper, updates “Most Popular” badge styling and link
src/app/globals.css Changes primary color values for light/dark modes, increases section padding
src/app/(site)/page.tsx Rewrites home page with multiple new sections and content blocks
package.json Bumps @radix-ui/react-slot from ^1.1.1 to ^1.2.3
docker-compose.yml Switches PostgreSQL data mount from host directory to named volume
CLAUDE.md Updates styling convention language to RFC2119 MUST-usage and formatting
Comments suppressed due to low confidence (1)

CLAUDE.md:79

  • [nitpick] The list under Styling Conventions mixes top-level and sub-items without consistent indentation or bullets. Please align all items uniformly (e.g., prefix each with - at the same indent level) for clarity.
- When using a section tag you MUST apply section and section-padding first before other styles. These take care of the padding and spacing.

Comment thread src/app/globals.css
--popover-foreground: 0 0% 98%;
--primary: 0 0% 98%;
--primary-foreground: 240 5.9% 10%;
--primary: 213 94% 68%;

Copilot AI Jul 5, 2025

Copy link

Choose a reason for hiding this comment

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

The dark-mode --primary value is now identical to the light-mode color, which may break contrast and theming. Please verify and restore or adjust the intended dark-mode primary color.

Suggested change
--primary: 213 94% 68%;
--primary: 213 80% 50%;

Copilot uses AI. Check for mistakes.
Comment thread src/app/(site)/page.tsx
Comment on lines 164 to 165
{reviews.avatars.map((avatar, index) => (
<Avatar key={index} className="size-14 border">

Copilot AI Jul 5, 2025

Copy link

Choose a reason for hiding this comment

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

Using index as a React key can lead to rendering issues if the array changes; consider using a unique identifier (e.g., an id or the src string) for stable keys.

Suggested change
{reviews.avatars.map((avatar, index) => (
<Avatar key={index} className="size-14 border">
{reviews.avatars.map((avatar) => (
<Avatar key={avatar.src} className="size-14 border">

Copilot uses AI. Check for mistakes.
Comment thread src/app/(site)/page.tsx
</div>

<div className="grid md:grid-cols-3 gap-12">
{steps.map((step, index) => (

Copilot AI Jul 5, 2025

Copy link

Choose a reason for hiding this comment

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

The steps map also uses index as a key—consider adding an explicit id to each step to ensure list stability.

Copilot uses AI. Check for mistakes.
Comment thread src/app/(site)/page.tsx
<div className="grid md:grid-cols-3 gap-8">
<Card className="p-8 text-center bg-white">
<div className="w-16 h-16 bg-blue-100 rounded-2xl flex items-center justify-center mx-auto mb-6">
<Code className="w-8 h-8 text-primary" />

Copilot AI Jul 5, 2025

Copy link

Choose a reason for hiding this comment

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

This decorative icon should include aria-hidden="true" (or a suitable role/title) to prevent redundant information for assistive technologies.

Suggested change
<Code className="w-8 h-8 text-primary" />
<Code className="w-8 h-8 text-primary" aria-hidden="true" />

Copilot uses AI. Check for mistakes.
@DavidASix
DavidASix merged commit 1cdfb47 into main Jul 5, 2025
2 checks passed
@DavidASix
DavidASix deleted the davidasix/better-home-page branch July 27, 2025 21:17
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