Welcome to the ShoppyKart Website β a seamless and dynamic platform where users can browse through products, add them to their cart, and enjoy a fully functional shopping experience, all built using modern web technologies: HTML, CSS, and JavaScript.
- Product Catalog: Users can view and explore a variety of products with detailed images, ratings, and descriptions.
- Interactive Cart: Add products to your cart and view the total price dynamically.
- Dark/Light Theme Toggle: Enhance the browsing experience by switching between light and dark themes.
- Zoom-in Product Images: Hover over product images to zoom in for more details.
- HTML: Semantic structure for the web pages.
- CSS: Styling and layout using custom fonts, grids, and flexbox.
- JavaScript: Core interactivity, including product management, cart operations, and UI functionality.
- LocalStorage: Data persistence for cart items and product listings, ensuring data is not lost across sessions.
- External Libraries:
- Font Awesome: For the history button icon.
- SweetAlert: For error alerts (e.g., division by zero).
- Clone this repository:
git clone https://github.com/sandeepku-s/ShoppyKart-template.git
- Navigate to the project directory:
cd ShoppyKart-template
- Open
index.html
in your web browser to use the ShoppyKart-template.
-
Product Display:
- Products are displayed on the main page in a grid layout.
- Each product shows the image, name, rating, original price, and discounted price.
-
Product Details:
- Clicking on a product name or image opens a detailed view of the product with additional information like rating, price, and description.
-
Add to Cart:
- Users can add products to the cart directly from the main product display.
- The cart icon in the header shows the current count of products in the cart.
-
Cart Management:
- View cart by clicking the cart icon in the header.
- The cart dynamically updates with the total price.
- Once the user is ready to purchase, they can view the total cart amount and proceed with checkout.
- The project uses a simple SweetAlert confirmation upon successful checkout.
Here is an overview of the project structure:
ShoppyKart-template/
βββ index.html # The main HTML file with the product listing and cart structure
βββ CSS/
β βββ Style.css # The main stylesheet for page layouts and UI
β βββ Font.css # Additional styles related to custom fonts
βββ Fonts/
β βββ font_templates # Custom fonts and templates used in the app
βββ Images/
β βββ product_1.jpg # Example product image
β βββ product_2.jpg # Another example image
β βββ ............. # All Images
βββ Script.js # JavaScript logic for managing products, cart, and UI behavior
This project can be deployed easily using platforms like GitHub Pages. To preview the live version, visit:
You can preview the live demo of the application by following this link: Demo Link