paper2code-cli / components /app /.cursor /rules /home-page-components.md
Leon4gr45's picture
Upload folder using huggingface_hub (part 8)
a72140d verified
|
Raw
History Blame Contribute Delete
1.65 kB

Home Page Components Rules

When working with home/landing page components in components-new/app/(home):

Structure

home/
β”œβ”€β”€ sections/         # Major page sections
β”‚   β”œβ”€β”€ hero/        # Hero section with flames
β”‚   β”œβ”€β”€ features/    # Feature showcase
β”‚   β”œβ”€β”€ testimonials/# Customer testimonials
β”‚   β”œβ”€β”€ pricing/     # Pricing cards
β”‚   └── faq/         # FAQ section
β”œβ”€β”€ navbar/          # Landing page navbar
└── footer/          # Landing page footer

Migration Notes

These components will be migrated from marketing/ when beginning home page migration after Dashboard v2.

Priority Sections to Migrate:

  1. Hero - Main landing with HeroFlame effect
  2. Features - Feature grid with animations
  3. Testimonials - Social proof section
  4. Pricing - Pricing tiers with heat buttons
  5. FAQ - Collapsible FAQ items

Usage Pattern:

// app/page.tsx (future)
import { Hero } from '@/components/home/sections/hero';
import { Features } from '@/components/home/sections/features';
import { Testimonials } from '@/components/home/sections/testimonials';
import { Pricing } from '@/components/home/sections/pricing';
import { FAQ } from '@/components/home/sections/faq';

export default function HomePage() {
  return (
    <>
      <Hero />
      <Features />
      <Testimonials />
      <Pricing />
      <FAQ />
    </>
  );
}

Design Principles

  • Fire theme: Subtle flame effects in hero
  • Performance: Lazy load below-fold sections
  • Responsive: Mobile-first approach
  • Animations: Intersection observer for scroll effects