Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

BookMind AI - AI-Powered Online Bookstore

A modern, responsive eCommerce bookstore application built with React.js, featuring AI-inspired user experiences, premium 2025 SaaS aesthetic, and comprehensive shopping functionality.

๐Ÿš€ Project Overview

BookMind AI is a production-quality front-end application developed as an Applied AI Specialist capstone project. It demonstrates modern web development practices, responsive design, glassmorphism UI, and AI-enhanced user experiences for an online bookstore specializing in technology, AI, and professional development books.

โœจ Key Features

Core User Flows

  • Authentication: Login/Signup with form validation and smooth transitions
  • Home Page: Premium hero section with AI recommendation widget, featured books
  • Product Catalogue: Advanced filtering, sorting, search with dark theme
  • Product Details: Comprehensive book information with related recommendations
  • Shopping Cart: Quantity management, price calculations, savings display
  • Checkout: Multi-step process (Shipping โ†’ Payment โ†’ Review) with glassmorphism cards
  • Order History: View past orders with "Buy Again" functionality
  • Order Confirmation: Beautiful confirmation page with order details

AI-Differentiated Features

  • โœจ AI-Powered Recommendations: Personalized book suggestions with match percentages
  • ๐Ÿ” Smart Search Assistant: Intelligent search with natural language
  • ๐Ÿค– AI Pick Badges: Highlighted AI-recommended books
  • ๐Ÿ“Š Dynamic Recommendations: "Customers also bought" suggestions
  • ๐Ÿšš AI-Estimated Delivery: Smart delivery time predictions
  • ๐Ÿ’ก Personalized Order History: Context-aware recommendations
  • ๐ŸŽฏ AI Recommendation Widget: Real-time book suggestions on home page

Modern UI Features

  • ๐ŸŽจ 2025 Premium SaaS Aesthetic: Dark theme with glassmorphism effects
  • โœจ Premium Gradient Background: Multi-layer radial gradients with glow effects
  • ๐Ÿ”ฎ Glassmorphism Design: Frosted glass cards with backdrop blur
  • ๐ŸŒŠ Smooth Animations: Fade-ins, hover effects, scale transforms
  • ๐Ÿ“ฑ Mobile-First Responsive: Optimized for all screen sizes
  • ๐ŸŽญ Interactive Elements: Hover states, focus rings, smooth transitions
  • ๐Ÿ“œ Scroll Restoration: Automatic scroll to top on navigation and mode changes
  • ๐Ÿ“ง Newsletter Subscription: Functional email subscription with validation

๐Ÿ› ๏ธ Tech Stack

  • React.js (v18.2.0) - UI library with hooks
  • Vite (v5.0.8) - Modern build tool and dev server
  • React Router DOM (v6.20.0) - Client-side routing with scroll restoration
  • Context API - Global state management
  • Local Storage - Data persistence for cart, orders, and subscriptions
  • CSS3 - Modern styling with custom properties, glassmorphism, gradients
  • HTML5 - Semantic markup with accessibility

๐Ÿ“ Project Structure

bookstore-capstone/
โ”œโ”€โ”€ public/
โ”‚   โ””โ”€โ”€ index.html
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ common/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Button.jsx/css          # Premium button with variants
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ BookCard.jsx/css        # Glassmorphism book cards
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Input.jsx/css           # Dark theme form inputs
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Loading.jsx/css         # Loading spinner
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Notification.jsx/css    # Toast notifications
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ScrollToTop.jsx         # Scroll restoration utility
โ”‚   โ”‚   โ””โ”€โ”€ layout/
โ”‚   โ”‚       โ”œโ”€โ”€ Navbar.jsx/css          # Glassmorphism navbar
โ”‚   โ”‚       โ””โ”€โ”€ Footer.jsx/css          # Footer with newsletter
โ”‚   โ”œโ”€โ”€ context/
โ”‚   โ”‚   โ””โ”€โ”€ AppContext.jsx              # Global state management
โ”‚   โ”œโ”€โ”€ data/
โ”‚   โ”‚   โ””โ”€โ”€ booksData.jsx               # 32 curated books
โ”‚   โ”œโ”€โ”€ pages/
โ”‚   โ”‚   โ”œโ”€โ”€ Home.jsx/css                # Hero + AI widget
โ”‚   โ”‚   โ”œโ”€โ”€ Catalogue.jsx/css           # Book grid with filters
โ”‚   โ”‚   โ”œโ”€โ”€ BookDetails.jsx/css         # Product details
โ”‚   โ”‚   โ”œโ”€โ”€ Cart.jsx/css                # Shopping cart
โ”‚   โ”‚   โ”œโ”€โ”€ Checkout.jsx/css            # Multi-step checkout
โ”‚   โ”‚   โ”œโ”€โ”€ Orders.jsx/css              # Order history
โ”‚   โ”‚   โ”œโ”€โ”€ Login.jsx/css               # Auth with dark theme
โ”‚   โ”‚   โ”œโ”€โ”€ Categories.jsx/css          # Category browsing
โ”‚   โ”‚   โ””โ”€โ”€ OrderConfirmation.jsx/css   # Order success
โ”‚   โ”œโ”€โ”€ App.jsx                         # Main app component
โ”‚   โ”œโ”€โ”€ index.jsx                       # Entry point
โ”‚   โ””โ”€โ”€ index.css                       # Global styles + gradient bg
โ”œโ”€โ”€ vite.config.js
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ README.md

๐ŸŽจ Design System

Color Palette (2025 Dark Theme)

  • Background: Multi-layer gradient (#020617 โ†’ #0B1120 โ†’ #111827)
  • Glow Effects: Indigo (#6366F1), Purple (#A855F7) radial gradients
  • Glass Cards: rgba(255, 255, 255, 0.05) with 24px blur
  • Primary: Indigo (#6366F1 โ†’ #4F46E5)
  • Accent: Purple (#A855F7), Cyan (#06B6D4), Amber (#F59E0B)
  • Semantic: Success (#10B981), Warning (#F59E0B), Error (#EF4444)
  • Text: White (#FFFFFF), Gray-300 (#D1D5DB), Gray-400 (#9CA3AF)

Typography

  • Font Family: Inter, system-ui, -apple-system, sans-serif
  • Headings: Bold (600-700), hierarchical sizing (2rem - 3rem)
  • Body: Regular (400), 1rem with 1.6 line-height
  • Premium: Letter-spacing adjustments for elegance

Visual Effects

  • Glassmorphism: backdrop-filter: blur(24px) with semi-transparent backgrounds
  • Gradients: Linear and radial gradients for depth
  • Shadows: Multi-layer box-shadows for elevation
  • Hover States: Scale transforms, glow effects, color transitions
  • Animations: Smooth 0.3s ease transitions

Components

  • Reusable button variants (primary, secondary, outline, ghost)
  • Glassmorphism cards with hover effects
  • Dark theme form inputs with focus states
  • Loading spinners with gradient animation
  • Toast notifications with auto-dismiss
  • Scroll restoration on navigation

๐Ÿ“š Mock Data

The application includes 32 carefully curated books covering:

  • AI & Machine Learning
  • Software Engineering
  • System Design & Architecture
  • Data Science & Analytics
  • Tech Leadership & Management
  • Cloud Computing & DevOps
  • Cybersecurity
  • Product Engineering

Each book includes:

  • Title, author, category
  • Pricing with discounts (up to 40% off)
  • Ratings (4.0-5.0) and review counts
  • Detailed descriptions
  • ISBN, pages, publisher info
  • Tags and delivery estimates
  • AI recommendation scores
  • High-quality placeholder images

๐Ÿš€ Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn

Installation

  1. Clone the repository:
git clone <repository-url>
cd bookstore-capstone
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open http://localhost:5173 in your browser

Build for Production

npm run build

The optimized build will be in the dist/ folder.

Preview Production Build

npm run preview

๐Ÿ’ก Usage Guide

Demo Mode

The application runs in demo mode with simulated backend:

  • Login: Use any email and password (min 6 characters)
  • Data Persistence: Uses localStorage for cart, orders, subscriptions
  • Mock Checkout: Simulates payment processing with 2-second delay
  • Newsletter: Stores subscriptions locally with duplicate detection

Key User Journeys

  1. Browse & Discover

    • Explore featured books on home page
    • View AI recommendation widget with match percentages
    • Use smart search assistant
    • Filter by category, author, price range
    • Sort by popularity, price, rating, newest
  2. Shopping

    • Add books to cart from any page
    • Adjust quantities in cart
    • View savings and totals
    • Remove items
    • Proceed to checkout
  3. Checkout

    • Enter shipping information (validated)
    • Select payment method (Credit/Debit/UPI/COD)
    • Review order summary
    • Confirm and place order
    • Receive order confirmation
  4. Order Management

    • View complete order history
    • See order details and status
    • Use "Buy Again" for quick reorder
    • Get personalized recommendations
  5. Account

    • Login/Signup with validation
    • Session persistence
    • Smooth mode switching (login โ†” signup)
    • Auto-scroll on mode change

๐ŸŽฏ Features Implemented

Mandatory User Flows โœ…

  • Login / User Authentication
  • Home page / storefront
  • Product catalogue by category
  • Browse books by author/brand
  • Product details page
  • Related recommendations
  • Add to cart
  • Shopping cart
  • Delivery address selection
  • Payment flow (mock frontend)
  • Gift points redemption system
  • Order confirmation
  • Order history with Buy Again
  • Cancel order within 48 hours

AI Features โœ…

  • Smart recommendation widget with real books
  • AI search assistant input
  • Dynamic recommendation badges
  • "Customers also bought" suggestions
  • AI-estimated delivery labels
  • Personalized order history recommendations
  • AI match percentage display

Quality Features โœ…

  • Responsive design (mobile, tablet, desktop)
  • Loading states with spinners
  • Empty states with helpful messages
  • Form validation with error messages
  • Error handling and notifications
  • Smooth transitions and animations
  • Accessible UI components
  • Clean code architecture
  • Scroll restoration on navigation
  • Newsletter subscription functionality

Modern UI Features โœ…

  • 2025 premium SaaS aesthetic
  • Dark theme with glassmorphism
  • Premium gradient background
  • Frosted glass cards
  • Smooth hover effects
  • Interactive animations
  • Modern typography
  • Consistent spacing system

๐Ÿ“ฑ Responsive Design

The application is fully responsive across:

  • Desktop: 1024px and above (multi-column layouts)
  • Tablet: 768px - 1023px (2-column grids)
  • Mobile: 320px - 767px (single column, touch-optimized)

Features:

  • Mobile-first CSS approach
  • Collapsible hamburger navigation menu
  • Touch-friendly button sizes (min 44px)
  • Optimized layouts for all screen sizes
  • Responsive images and cards
  • Adaptive typography scaling

๐Ÿ”’ State Management

Uses React Context API for:

  • User authentication state
  • Shopping cart management (add, remove, update quantity)
  • Order history tracking
  • UI notifications (success, error, info)
  • Loading states
  • Newsletter subscriptions

Data persists in localStorage:

  • User session (isAuthenticated, user info)
  • Cart items (books, quantities)
  • Order history (all past orders)
  • Newsletter subscriptions (email list)

๐ŸŽจ UI/UX Highlights

  • Modern Design: 2025 premium SaaS aesthetic with dark theme
  • Glassmorphism: Frosted glass effect on cards and navbar
  • Premium Gradients: Multi-layer background with radial glows
  • Smooth Animations: Fade-ins, scale transforms, hover effects
  • Visual Feedback: Loading spinners, success messages, error states
  • Intuitive Navigation: Clear hierarchy and flow
  • Premium Feel: Elegant spacing, shadows, rounded corners
  • Accessibility: Semantic HTML, ARIA labels, keyboard navigation
  • Scroll Restoration: Auto-scroll to top on page/mode changes
  • Interactive Elements: Hover states, focus rings, active states

๐Ÿงช Testing Recommendations

Manual Testing Checklist

  • User registration and login
  • Browse catalogue with filters
  • Search functionality
  • Add/remove items from cart
  • Complete checkout flow
  • View order history
  • Test responsive design
  • Verify data persistence
  • Newsletter subscription
  • Scroll restoration
  • Dark theme consistency
  • Glassmorphism effects
  • AI recommendation widget

Browser Compatibility

  • Chrome/Edge (Chromium) โœ…
  • Firefox โœ…
  • Safari โœ…
  • Mobile browsers โœ…

๐Ÿšง Future Enhancements

  • Backend API integration with Node.js/Express
  • Real payment gateway (Stripe/Razorpay)
  • User reviews and ratings system
  • Wishlist functionality
  • Advanced search with AI-powered suggestions
  • Email notifications for orders
  • Social sharing features
  • Multi-language support (i18n)
  • Real-time inventory updates
  • User profile management
  • Book preview/sample chapters
  • Reading lists and collections

๐Ÿ“Š Performance Optimizations

  • Vite for fast builds and HMR
  • Code splitting with React.lazy
  • Optimized images and assets
  • CSS custom properties for theming
  • Efficient re-renders with React.memo
  • localStorage for instant data access
  • Smooth 60fps animations

๐Ÿ“„ License

This project is created for educational purposes as part of an Applied AI Specialist capstone project.

๐Ÿ‘จโ€๐Ÿ’ป Author

Applied AI Specialist Capstone Project - 2026

๐Ÿ™ Acknowledgments

  • React.js community for excellent documentation
  • Modern SaaS design inspiration from Vercel, Linear, and Stripe
  • Glassmorphism design trend
  • AI/ML book recommendations based on industry standards
  • Open-source community for tools and libraries

๐Ÿ“ Recent Updates

Version 2.0 - Modern UI Overhaul (May 2026)

  • โœจ Complete UI redesign with 2025 premium SaaS aesthetic
  • ๐ŸŽจ Dark theme with glassmorphism effects
  • ๐ŸŒˆ Premium gradient background with radial glows
  • ๐Ÿ”ฎ Frosted glass cards throughout the app
  • ๐Ÿ“œ Scroll restoration on navigation and mode changes
  • ๐Ÿ“ง Functional newsletter subscription
  • ๐ŸŽฏ AI recommendation widget on home page
  • ๐ŸŽญ Enhanced hover effects and animations
  • ๐Ÿ“ฑ Improved mobile responsiveness
  • ๐Ÿ› Bug fixes for input styling and dropdown themes

Note: This is a front-end demonstration project with simulated backend functionality. All data is stored locally in browser localStorage and will persist until cache is cleared. The application showcases modern React development practices, premium UI design, and AI-enhanced user experiences suitable for a capstone project portfolio.

About

BookMind AI - AI Powered Online Bookstore built with React, Vite and IBM BOB for Applied AI Specialist Capstone Project

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages