Skip to content

RealRiftzyYT/Simple-Web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Odoo E-commerce Website

A modern, responsive e-commerce website built with HTML, CSS, and JavaScript, featuring Odoo's signature design aesthetic.

๐Ÿš€ Features

๐Ÿ›๏ธ Shopping Experience

  • Product Catalog: Browse 8 sample products with detailed descriptions and pricing
  • Shopping Cart: Add, remove, and modify quantities of products
  • Real-time Updates: Cart count and total price update instantly
  • Responsive Design: Optimized for desktop, tablet, and mobile devices

๐ŸŽจ Design & UI

  • Odoo-inspired Styling: Authentic color scheme with purple/teal gradients
  • Modern Interface: Clean, professional layout with smooth animations
  • Interactive Elements: Hover effects, button feedback, and smooth transitions
  • Card-based Layout: Elegant product cards with hover animations

๐Ÿ›’ Cart Functionality

  • Sidebar Cart: Slide-out cart panel from the right
  • Quantity Controls: Increase, decrease, or remove items
  • Price Calculation: Automatic total calculation with tax
  • Empty State: User-friendly empty cart messaging
  • One-click Checkout: Simple checkout process with confirmation

๐Ÿ› ๏ธ Technical Stack

  • HTML5: Semantic markup and modern structure
  • CSS3: Custom styling with CSS Grid, Flexbox, and animations
  • Vanilla JavaScript: No external dependencies
  • Responsive Design: Mobile-first approach with CSS media queries

๐Ÿ“ File Structure

โ”œโ”€โ”€ index.html          # Main HTML file containing all code
โ”œโ”€โ”€ README.md          # This documentation file
โ””โ”€โ”€ (No external files required)

๐Ÿš€ Getting Started

Prerequisites

  • Any modern web browser (Chrome, Firefox, Safari, Edge)
  • No server or build tools required

Installation

  1. Download the index.html file
  2. Open it in any web browser
  3. Start shopping immediately!

Or use locally:

# Clone or download the file
# Navigate to the directory
# Open with any web browser
open index.html

๐Ÿ’ก Usage

Adding Products to Cart

  1. Browse the product catalog
  2. Click "Add to Cart" on any product
  3. See the cart count update in the header
  4. Products are added with quantity 1 (or increased if already in cart)

Managing Cart

  1. Click the "Cart" button in the header to open the cart sidebar
  2. Use +/- buttons to adjust quantities
  3. Click ร— button to remove items completely
  4. View real-time total at the bottom

Checkout Process

  1. Open the cart sidebar
  2. Review your items and total
  3. Click "Proceed to Checkout"
  4. Confirmation message will appear
  5. Cart will be cleared after successful checkout

๐ŸŽจ Customization

Colors (CSS Variables)

:root {
    --primary-color: #875a7b;    /* Purple - main brand color */
    --secondary-color: #017e84;  /* Teal - accent color */
    --accent-color: #f0ad4e;     /* Orange - highlights */
    --success-color: #5cb85c;    /* Green - success states */
    --danger-color: #d9534f;     /* Red - danger/delete */
}

Adding New Products

Edit the products array in the JavaScript section:

const products = [
    {
        id: 9,                    // Unique ID
        name: "New Product",      // Product name
        description: "Description", // Product description
        price: 99.99,            // Price in dollars
        emoji: "๐ŸŽ"              // Display emoji
    }
];

Modifying Styles

  • All CSS is contained in the <style> section
  • Uses CSS custom properties for easy theming
  • Responsive breakpoints at 768px for mobile

๐ŸŒŸ Key Features Explained

Responsive Design

  • Desktop: Multi-column product grid with sidebar cart
  • Tablet: Adjusted grid layout with optimized spacing
  • Mobile: Single-column layout with full-width cart overlay

Interactive Elements

  • Hover Effects: Product cards lift and shadow on hover
  • Button Feedback: "Add to Cart" buttons show success state
  • Smooth Animations: CSS transitions for all interactive elements
  • Loading States: Visual feedback for user actions

Cart Management

  • Persistent State: Cart data maintained during session
  • Quantity Controls: Intuitive +/- buttons for adjustments
  • Price Calculation: Automatic totaling with proper decimal formatting
  • Empty State Handling: Graceful display when cart is empty

๐Ÿ”ง Browser Compatibility

  • Chrome: 60+ โœ…
  • Firefox: 60+ โœ…
  • Safari: 12+ โœ…
  • Edge: 79+ โœ…
  • Mobile Browsers: iOS Safari 12+, Chrome Mobile 60+ โœ…

๐Ÿ“ฑ Mobile Experience

  • Touch-friendly buttons and controls
  • Optimized tap targets (44px minimum)
  • Full-screen cart on mobile devices
  • Responsive typography and spacing
  • Smooth scrolling and animations

๐Ÿš€ Performance

  • No External Dependencies: Faster loading, no CDN reliance
  • Lightweight: Single HTML file under 50KB
  • Optimized CSS: Efficient selectors and minimal repaints
  • Smooth Animations: Hardware-accelerated transforms

๐Ÿ›ก๏ธ Data Storage

  • In-Memory Storage: All cart data stored in JavaScript variables
  • Session-based: Data persists only during browser session
  • No Cookies: Privacy-friendly, no data persistence
  • No External APIs: Fully self-contained application

๐ŸŽฏ Use Cases

  • E-commerce Prototyping: Quick mockups and demos
  • Educational Projects: Learning web development basics
  • Portfolio Pieces: Showcasing front-end skills
  • Template Base: Starting point for larger projects

๐Ÿค Contributing

This is a single-file application perfect for:

  • Adding new product categories
  • Implementing payment integration
  • Adding user reviews and ratings
  • Expanding with more interactive features

๐Ÿ“„ License

Open source - feel free to use, modify, and distribute as needed.

๐Ÿ”ฎ Future Enhancements

Potential features that could be added:

  • Product search and filtering
  • Product categories and navigation
  • Image galleries for products
  • User reviews and ratings
  • Wishlist functionality
  • Multi-currency support
  • Payment gateway integration
  • Order history and tracking

๐Ÿ“ž Support

For questions or issues:

  • Check browser console for any JavaScript errors
  • Ensure you're using a modern browser
  • Verify the HTML file is complete and unmodified

Built with โค๏ธ using modern web technologies

About

Simple Web

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages