A premium frontend for an online mathematics academy, built with Next.js App Router, TypeScript, and Tailwind CSS. The project is designed for a real course-selling business, with a strong focus on trust, clarity, mobile usability, and future backend integration.
This project is a modern edtech-style frontend for an online mathematics course platform:
- Thai-language UI with a premium and trustworthy visual direction
- Supports course browsing, enrollment, and a mock payment flow
- Fully responsive across desktop, tablet, and mobile
- Reusable component system for easier future expansion
- Prepared for real payment/backend integration later
- Next.js 15
- React 19
- TypeScript
- Tailwind CSS
- App Router
- Home page with hero section, value propositions, testimonials, FAQ, and CTAs
- Courses page with category filters
- Course detail page with full program information
- Checkout / enrollment page with a mock payment flow
- Payment success and failed pages
- About, Contact, Policies, and Terms pages
- Subtle motion and scroll reveal designed for an educational platform
/Home page/coursesCourse listing page/courses/[slug]Course detail page/checkoutEnrollment / payment page/payment/successPayment success page/payment/failedPayment failed page/aboutAbout page/contactContact page/policiesPolicy hub/policies/privacyPrivacy policy/policies/refundRefund policy/termsTerms and conditions/dashboardStudent dashboard placeholder
app/ Next.js App Router pages
components/ Layout, UI, providers, and sections
data/ Mock data for courses and site content
lib/ Utility functions
scripts/ Local development helpers
services/ Payment integration abstraction
types/ Shared TypeScript types
npm installnpm run devOpen the app at:
http://localhost:3000npm run buildnpm run startnpm run devRun the dev server through the safe launchernpm run dev:webpackRun the dev server with webpack fallbacknpm run buildCreate a production buildnpm run startStart the production servernpm run cleanRemove the.nextcache
The payment system in this project is currently a mock frontend flow, created to prepare for real backend integration later.
Related files:
services/payment.tsapp/checkout/page.tsxcomponents/sections/checkout-form.tsx
Current flow:
- The frontend sends student and course data
- The service simulates payment session creation
- The user is redirected to success / failed placeholder pages
This can later be replaced with a real endpoint such as:
POST /api/create-payment-sessionor an external business backend.
This project is designed to feel suitable for a real educational business:
- Thai typography is readable while still feeling modern
- Motion is present but intentionally restrained
- Cards, buttons, and sections follow a clear visual hierarchy
- The overall tone is designed to feel trustworthy for both students and parents
- Most course data and copy are mock content
- There is no real authentication or student dashboard yet
- No real payment gateway is connected yet
- The project is intended as a production-ready frontend foundation
This project can be deployed on Vercel or any platform that supports Next.js.
Typical deployment flow:
- Connect the GitHub repository
- Configure environment variables if a real backend is used
- Deploy using the standard Next.js build process
The goal of this repository is to provide a launch-ready frontend for an online mathematics course business, while keeping the codebase ready for future real-world backend expansion.