Skip to content

areebamoosa/E-Commerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’„ HER Cosmetics

An e-commerce store showcasing real-world online shopping features.

Demo

About the project πŸš€

HER Cosmetics is a frontend e-commerce website originally built using React and Tailwind CSS, and later fully migrated into a scalable Next.js + TypeScript architecture.

This project started as a UI-heavy React application, but was then restructured to simulate a real-world production frontend system β€” focusing on scalability, maintainability, and modern Next.js engineering practices.

The goal was not just to build features, but to refactor and evolve a messy component-based project into a clean, structured, and scalable codebase similar to how real frontend teams work in production.

βš™οΈ Architecture Upgrade (React β†’ Next.js)

This project went through a full architectural upgrade:

  • ➀ Migrated from React SPA β†’ Next.js App Router architecture
  • ➀ Refactored entire codebase into feature-based folder structure
  • ➀ Split client and server components for performance and scalability
  • ➀ Separated logic into reusable components, custom hooks, and context providers
  • ➀ Added TypeScript across the entire project for type safety and reliability
  • ➀ Added skeleton loading UI for product pages and cards to improve perceived performance
  • ➀ Implemented debounced search input to reduce unnecessary re-renders and improve efficiency
  • ➀ Used dynamic imports for code splitting (cart, product pages, heavy components)
  • ➀ Optimized images using Next.js Image component for lazy loading and responsiveness
  • ➀ Built toast notification system for add/remove cart actions
  • ➀ Improved product filtering and search rendering logic

Previous Version (v1)

Click to view v1 (React + Tailwind CSS version)

The original version of HER Cosmetics was built using React and Tailwind CSS with a basic frontend structure. The codebase was loosely organized, with repeated patterns across components and no proper structure or consistency. It was also not type-safe as TypeScript was not used.

This version primarily focused on UI implementation rather than scalable architecture or production-level structure.

✨ Key Features

  • πŸ›οΈ Product discovery with category-based browsing
  • πŸ”Ž Live product search with debounced input handling
  • πŸ›’ Cart system with state management
  • πŸ’³ Checkout flow UI
  • πŸ” Authentication pages (Sign up / Sign in)
  • πŸ“„ Brand and informational pages
  • πŸ“± Fully responsive design across all devices
  • ⚑ Optimized UI with improved loading states and user feedback (skeletons + toasts)

πŸ› οΈ Technologies Used

  • Next.js
  • TypeScript
  • Tailwind CSS

πŸŽ₯ Demo / πŸ–ΌοΈ Screenshots


Homepage

Cosmetic's Collection

Fragrance Collection

Skin Care Collection

Featured Product

Discover Page

About the Brand

User Login

🌐 Live Demo :

➜ View Live Website

About

πŸ’„ HER Cosmetics β€” A fully featured cosmetics store built with Next.js, TypeScript and Tailwind CSS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors