Skip to content

Latest commit

Β 

History

History
124 lines (93 loc) Β· 3.74 KB

File metadata and controls

124 lines (93 loc) Β· 3.74 KB

Kreator Landing Page

A professional landing page for Kreator, the platform that connects professionals across industries and regions to generate referrals and grow their businesses.

πŸš€ Features

  • Next.js 14.2.16
  • React 18 and React DOM 18
  • TypeScript 5
  • Tailwind CSS 4.1.9
  • Clean component structure (UI, Layout, Sections, Registration)
  • Full accessibility best practices (WAI-ARIA, keyboard navigation)
  • Responsive design (optimized for screens starting at 300px wide)
  • Unit tests with Vitest + React Testing Library
  • End-to-end tests (E2E) with Playwright

πŸ› οΈ Installation and Development

# Install dependencies
pnpm install

# Run in development mode
pnpm dev

# Build for production
pnpm build

# Run in production
pnpm start

πŸ§ͺ Testing

# Unit tests
pnpm test

# Unit tests in watch mode
pnpm test:watch

# End-to-end tests
pnpm test:e2e

# E2E tests with visual UI
pnpm test:e2e:ui

πŸ“ Project Structure

src/
β”œβ”€β”€ app/                  # Next.js App Router entry (root layout + pages)
β”‚   β”œβ”€β”€ layout.tsx        # Root layout (metadata, fonts, providers, GTM)
β”‚   └── page.tsx          # Home / landing page
β”‚
β”œβ”€β”€ components/           # Reusable React components
β”‚   β”œβ”€β”€ layout/           # Shell elements: Header, Navbar, Footer, wrappers
β”‚   β”œβ”€β”€ legal/            # Legal-related components and layouts
β”‚   β”œβ”€β”€ login/            # Login components (forms, views, helpers)
β”‚   β”œβ”€β”€ registration/     # Registration form, map and registration UI
β”‚   └── ui/               # Small reusable UI atoms (Button, Input, Badge…)
β”‚
β”œβ”€β”€ sections/             # Page-level sections
β”‚   └── home/
β”‚       β”œβ”€β”€ hero/         # Hero section with main CTA
β”‚       β”œβ”€β”€ about/        # β€œWhat is Kreator” section
β”‚       β”œβ”€β”€ benefits/     # Benefits and value proposition
β”‚       β”œβ”€β”€ how-it-works/ # Step-by-step β€œHow it works”
β”‚       β”œβ”€β”€ profiles/     # Profiles: Professional / Team Leader
β”‚       β”œβ”€β”€ testimonial/  # Testimonials / social proof
β”‚       └── final-cta/    # Final call-to-action block
β”‚
β”œβ”€β”€ data/                 # Typed static content (FAQs, copy, feature lists)
β”œβ”€β”€ hooks/                # Custom React hooks
β”œβ”€β”€ lib/                  # Utility functions and helpers
β”œβ”€β”€ providers/            # Global React context providers
β”œβ”€β”€ services/             # External services and integrations (e.g. Stripe)
β”œβ”€β”€ styles/               # Global styles and design tokens
β”‚   └── globals.css       # Main global stylesheet for the whole app
└── types/                # Shared TypeScript types and interfaces

Other relevant folders:

e2e/          # Tests end-to-end
__tests__/    # Unit tests
public/       # Static assets (images, favicons, etc.)

🎯 Accessibility

The landing page complies with best practices for accessibility:

  • βœ… 100% keyboard navigation
  • βœ… Visible focus on all interactive elements
  • βœ… ARIA labels and appropriate roles
  • βœ… Semantic HTML5 structure
  • βœ… WCAG AA colour contrast

🎨 Branding

Brand colors and typography variables are defined in src/styles/globals.css.

πŸ“± Responsive Design

  • Mobile First: Optimised design from 300px
  • Breakpoints: sm (640px), md (768px), lg (1024px), xl (1280px)
  • Fluid components: Automatically adapt to different screen sizes

πŸ‘₯ Colaboradores

Project created and maintained by:

πŸ“„ Licence

Β© 2025 Kreator. All rights reserved.