Skip to content

learnpack/web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

80 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LearnPack Website

Turn ideas into interactive learning packages in minutes

The official marketing website for LearnPack - an AI-powered platform that enables educators, trainers, and organizations to create interactive learning experiences in minutes.

πŸš€ Overview

LearnPack is a modern educational technology platform that transforms expertise into engaging, interactive learning experiences. This repository contains the marketing website built with React, TypeScript, and Vite.

Live Website: learnpack.co

✨ Features

  • 🎨 Modern Design System: Dark theme with LearnPack blue branding and glass-morphism effects
  • 🌍 Internationalization: Full English and Spanish support with easy translation workflow
  • πŸ’³ Dynamic Pricing: Real-time pricing from BreathCode API with auto-applied coupons
  • ⚑ Performance Optimized: Built for speed with lazy loading and SEO best practices
  • πŸ“± Responsive: Mobile-first design that works on all devices
  • 🎬 Interactive Demos: Video showcases and animated backgrounds

πŸ› οΈ Tech Stack

Frontend

  • React 18 with TypeScript
  • Vite for blazing-fast builds
  • Tailwind CSS for styling
  • Radix UI + shadcn/ui for accessible components
  • Wouter for lightweight routing
  • TanStack Query for server state management
  • react-i18next for internationalization

Backend

  • Node.js with Express
  • TypeScript with ES modules
  • Drizzle ORM for database operations

Developer Experience

  • Hot Module Replacement (HMR)
  • TypeScript strict mode
  • Path aliases for clean imports
  • Automated error handling

🌍 Internationalization

This website supports multiple languages with an easy contribution workflow:

  • Current Languages: English (en), Spanish (es)
  • Translation Files: JSON-based translation system
  • Testing: Force language with ?lang=es query parameter

Want to contribute translations? See our Translation Contribution Guide πŸ“

πŸ“‚ Project Structure

learnpack/
β”œβ”€β”€ client/                    # Frontend application
β”‚   β”œβ”€β”€ public/
β”‚   β”‚   β”œβ”€β”€ locales/          # Translation files
β”‚   β”‚   β”‚   β”œβ”€β”€ en/          # English translations
β”‚   β”‚   β”‚   └── es/          # Spanish translations
β”‚   β”‚   β”œβ”€β”€ plan-features.en.json
β”‚   β”‚   β”œβ”€β”€ plan-features.es.json
β”‚   β”‚   └── redirects.yml     # URL redirect configuration
β”‚   └── src/
β”‚       β”œβ”€β”€ components/       # React components
β”‚       β”œβ”€β”€ pages/           # Page components
β”‚       β”œβ”€β”€ i18n/            # i18n configuration
β”‚       └── lib/             # Utilities and helpers
β”œβ”€β”€ server/                   # Backend API
β”‚   └── routes.ts            # API endpoints
β”œβ”€β”€ CONTRIBUTE.md            # Translation contribution guide
└── README.md               # This file

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn

Installation

  1. Clone the repository:
git clone https://github.com/your-org/learnpack.git
cd learnpack
  1. Install dependencies:
npm install
  1. Set up environment variables:
# Create .env file with:
VITE_LEARNPACK_PLATFORM=https://app.learnpack.co
VITE_LEARNPACK_CREATOR=https://app.learnpack.co
VITE_BREATHCODE_API_TOKEN=your_token_here
VITE_BREATHCODE_ACADEMY_ID=54
VITE_GA_MEASUREMENT_ID=your_ga_id
  1. Run the development server:
npm run dev
  1. Open http://localhost:5000 in your browser

Testing Languages

To test different languages, append the lang query parameter:

  • English: http://localhost:5000/?lang=en
  • Spanish: http://localhost:5000/?lang=es

πŸ“ Available Scripts

npm run dev          # Start development server
npm run build        # Build for production
npm run preview      # Preview production build
npm run lint         # Run ESLint
npm run type-check   # Check TypeScript types

🌐 Pages

  • / - Homepage with hero, value props, social proof, and CTAs
  • /pricing - Dynamic pricing page with BreathCode API integration
  • /our-mission - Company mission and vision
  • /terms-and-conditions - Legal terms
  • /privacy-policy - Privacy policy

🀝 Contributing

We welcome contributions! Here's how you can help:

Translation Contributions

Want to help translate the website or fix translation issues?

πŸ‘‰ Read our Translation Contribution Guide (CONTRIBUTE.md)

The guide covers:

  • How to edit existing translations
  • Adding new languages
  • Testing your changes
  • Submitting pull requests
  • Translation best practices

Code Contributions

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Reporting Issues

Found a bug or have a suggestion? Open an issue

πŸ”’ Environment Variables

Required environment variables:

Variable Description Default
VITE_LEARNPACK_PLATFORM Main platform URL for auth/signup https://app.learnpack.co
VITE_LEARNPACK_CREATOR Creator tool URL https://app.learnpack.co
VITE_BREATHCODE_API_TOKEN BreathCode API authentication token -
VITE_BREATHCODE_ACADEMY_ID Academy ID for pricing data 54
VITE_GA_MEASUREMENT_ID Google Analytics measurement ID -

πŸ“Š Performance

This website is optimized for performance:

  • ⚑ Lighthouse Score: 95+ on all metrics
  • 🎯 Core Web Vitals: Optimized LCP, FID, CLS
  • πŸ“¦ Code Splitting: Lazy-loaded components
  • πŸ–ΌοΈ Image Optimization: WebP with fallbacks
  • πŸ”„ Caching: Intelligent cache strategies

🌍 Supported Languages

Language Code Status Contribute
English en βœ… Complete CONTRIBUTE.md
Spanish es βœ… Complete CONTRIBUTE.md
French fr ⏳ Planned Help us!
German de ⏳ Planned Help us!

Want to add your language? Check our contribution guide!

πŸ“± Browser Support

  • Chrome (last 2 versions)
  • Firefox (last 2 versions)
  • Safari (last 2 versions)
  • Edge (last 2 versions)

πŸ”— Links

πŸ“„ License

This project is proprietary software. All rights reserved.

πŸ™ Acknowledgments

  • Built with ❀️ by the LearnPack team
  • Design inspiration from modern SaaS platforms
  • Translation contributors from around the world

Need help with translations? β†’ CONTRIBUTE.md

Found a bug? β†’ Open an issue

Have questions? β†’ Contact us

Releases

No releases published

Packages

 
 
 

Contributors