Skip to content

Commit edf2540

Browse files
Merge pull request #10 from ashishgit10/E-Commerce-Website-Branch
Added : E-Commerce Website
2 parents f406b1e + 366a270 commit edf2540

File tree

29 files changed

+2876
-0
lines changed

29 files changed

+2876
-0
lines changed

28-E-commerce-Website/Readme.md

Lines changed: 297 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,297 @@
1+
# 🛒 E-Commerce Website
2+
3+
A modern, fully responsive e-commerce website built with vanilla HTML, CSS, and JavaScript. This project features a complete online shopping experience with multiple pages, product galleries, mobile-responsive design, and interactive user interface elements.
4+
5+
## 📸 Screenshots
6+
7+
| Homepage | Shop Page | Single Product |
8+
|----------|-----------|----------------|
9+
10+
![E-Commerce Website Preview](img/1.png)
11+
![E-Commerce Website Preview](img/2.png)
12+
![E-Commerce Website Preview](img/3.png)
13+
14+
## ✨ Features
15+
16+
### 🏠 **Homepage**
17+
- Hero section with promotional banners and call-to-action
18+
- Featured products showcase with ratings and pricing
19+
- Service highlights (Free Shipping, Online Order, Save Money, etc.)
20+
- Newsletter subscription section
21+
- Brand partnerships display
22+
23+
### 🛍️ **Shop Page**
24+
- Complete product catalog with grid layout
25+
- Product filtering and categorization
26+
- Interactive product cards with hover effects
27+
- Add to cart functionality
28+
- Product ratings and reviews display
29+
30+
### 📱 **Single Product Page**
31+
- Detailed product view with multiple images
32+
- Image gallery with thumbnail navigation
33+
- Product specifications and descriptions
34+
- Size and quantity selectors
35+
- Related products recommendations
36+
37+
### 📝 **Blog Section**
38+
- Fashion and lifestyle blog posts
39+
- Article previews with featured images
40+
- Read more functionality
41+
- Category-based content organization
42+
43+
### 🎨 **Modern UI/UX Design**
44+
- Glassmorphism effects with backdrop blur
45+
- Smooth animations and transitions
46+
- Professional color scheme and typography
47+
- Font Awesome icons integration
48+
- Mobile-first responsive design
49+
50+
### 📱 **Mobile Responsive**
51+
- Hamburger menu for mobile navigation
52+
- Touch-friendly interface elements
53+
- Optimized layouts for all screen sizes
54+
- Swipe gestures support
55+
56+
57+
## 📁 Project Structure
58+
59+
```
60+
E-Commerce-Website/
61+
├── index.html # Homepage with hero section and featured products
62+
├── shop.html # Product catalog and shopping page
63+
├── single-product.html # Individual product details page
64+
├── blog.html # Blog and articles section
65+
├── style.css # Main stylesheet with responsive design
66+
├── script.js # JavaScript functionality and interactions
67+
├── README.md # Project documentation
68+
└── img/ # Image assets directory
69+
├── banner/ # Banner and hero images
70+
├── blog/ # Blog post images
71+
├── feature/ # Feature icons and graphics
72+
├── product/ # Product images and thumbnails
73+
├── pay/ # Payment method logos
74+
├── logo.png # Website logo
75+
├── hero4.png # Main hero background
76+
└── button.png # UI button elements
77+
```
78+
79+
## 🛠️ Technologies Used
80+
81+
- **HTML5**: Semantic markup and modern web standards
82+
- **CSS3**: Advanced styling with Flexbox, Grid, and animations
83+
- **Vanilla JavaScript**: Interactive functionality and DOM manipulation
84+
- **Font Awesome**: Comprehensive icon library
85+
- **Google Fonts**: Typography (Poppins, Roboto)
86+
- **Responsive Design**: Mobile-first approach with CSS media queries
87+
88+
## 📋 Prerequisites
89+
90+
To understand and work with this project, you should have:
91+
92+
- **HTML5**: Semantic elements, forms, and accessibility
93+
- **CSS3**: Flexbox, Grid, responsive design, animations
94+
- **JavaScript**: DOM manipulation, event handling, ES6+ features
95+
- **Responsive Design**: Mobile-first development principles
96+
- **UI/UX Design**: Understanding of modern web design patterns
97+
98+
## ⚙️ Installation & Setup
99+
100+
### 1. Clone the Repository
101+
```bash
102+
git clone https://github.com/ashishgit10/25-Javascript-Projects-for-beginner.git
103+
cd 25-Javascript-Projects-for-beginner/E-Commerce-Website
104+
```
105+
106+
### 3. Open in Browser
107+
Navigate to `http://localhost:8000` to view the website.
108+
109+
## 🎯 Page Features & Functionality
110+
111+
### 🏠 **Homepage (`index.html`)**
112+
- **Hero Section**: Eye-catching banner with promotional offers
113+
- **Featured Products**: Product grid with star ratings and pricing
114+
- **Services Section**: Key selling points with icons
115+
- **Newsletter**: Email subscription form
116+
- **Footer**: Company information and social links
117+
118+
### 🛍️ **Shop Page (`shop.html`)**
119+
- **Product Grid**: Responsive product display
120+
- **Category Navigation**: Product filtering options
121+
- **Product Cards**: Interactive hover effects
122+
- **Shopping Cart**: Add to cart functionality
123+
- **Pagination**: Product page navigation
124+
125+
### 📦 **Single Product (`single-product.html`)**
126+
- **Image Gallery**: Main product image with thumbnail selector
127+
- **Product Details**: Name, price, description, and specifications
128+
- **Quantity Selector**: Add to cart with quantity options
129+
- **Size Selection**: Available size options
130+
- **Related Products**: Suggested similar items
131+
- **Product Reviews**: Customer ratings and feedback
132+
133+
### 📝 **Blog Page (`blog.html`)**
134+
- **Article Grid**: Blog post previews
135+
- **Featured Images**: Attractive blog post thumbnails
136+
- **Read More**: Expandable article content
137+
- **Categories**: Content organization and filtering
138+
139+
## 🎨 Design Features
140+
141+
### **Visual Elements**
142+
- **Color Scheme**: Professional coral and neutral tones
143+
- **Typography**: Clean, readable fonts (Roboto, Poppins)
144+
- **Icons**: Font Awesome integration for UI elements
145+
- **Images**: High-quality product and banner images
146+
- **Layout**: Grid-based responsive design
147+
148+
### **Interactive Elements**
149+
- **Hover Effects**: Product cards and navigation links
150+
- **Mobile Menu**: Hamburger navigation for mobile devices
151+
- **Image Gallery**: Clickable thumbnail navigation
152+
- **Form Elements**: Styled input fields and buttons
153+
- **Smooth Scrolling**: Enhanced page navigation experience
154+
155+
### **Responsive Design**
156+
- **Mobile-First**: Optimized for mobile devices
157+
- **Breakpoints**: Tablet and desktop responsive layouts
158+
- **Touch-Friendly**: Large clickable areas for mobile
159+
- **Performance**: Optimized images and CSS
160+
161+
## 🔧 JavaScript Functionality
162+
163+
### **Navigation System**
164+
```javascript
165+
// Mobile menu toggle functionality
166+
const open_nav = document.querySelector(".fa-bars");
167+
const close_nav = document.querySelector(".x-mark");
168+
const nav_active = document.querySelectorAll(".active-open");
169+
170+
// Menu open/close event listeners
171+
open_nav.addEventListener("click", openMobileMenu);
172+
close_nav.addEventListener("click", closeMobileMenu);
173+
```
174+
175+
### **Image Gallery**
176+
```javascript
177+
// Product image switching functionality
178+
const main_img = document.getElementById("main-img");
179+
const list_img = document.getElementsByClassName("list-img");
180+
181+
// Thumbnail click handlers for image gallery
182+
list_img[0].onclick = function() {
183+
main_img.src = list_img[0].src;
184+
};
185+
```
186+
187+
### **Key Features**
188+
- **Mobile Menu**: Hamburger navigation with smooth transitions
189+
- **Image Gallery**: Dynamic main image switching via thumbnails
190+
- **Event Handling**: Click events for interactive elements
191+
- **DOM Manipulation**: Dynamic content updates
192+
- **Console Logging**: Development debugging features
193+
194+
## 💻 Browser Compatibility
195+
196+
- **Chrome** (Recommended)
197+
- **Firefox**
198+
- **Safari**
199+
- **Edge**
200+
- **Opera**
201+
- **Mobile Browsers** (iOS Safari, Chrome Mobile)
202+
203+
## 📱 Responsive Breakpoints
204+
205+
```css
206+
/* Mobile First Approach */
207+
/* Base styles: 320px and up */
208+
209+
/* Tablet: 768px and up */
210+
@media (min-width: 768px) { ... }
211+
212+
/* Desktop: 1024px and up */
213+
@media (min-width: 1024px) { ... }
214+
215+
/* Large Desktop: 1200px and up */
216+
@media (min-width: 1200px) { ... }
217+
```
218+
219+
## 🎯 Key Learning Concepts
220+
221+
### **HTML5**
222+
- Semantic HTML structure
223+
- Form elements and validation
224+
- Meta tags for SEO and responsive design
225+
- Accessibility best practices
226+
227+
### **CSS3**
228+
- Flexbox and CSS Grid layouts
229+
- CSS animations and transitions
230+
- Media queries for responsive design
231+
- CSS custom properties (variables)
232+
- Glassmorphism and modern design effects
233+
234+
### **JavaScript**
235+
- DOM manipulation and event handling
236+
- ES6+ features and modern JavaScript
237+
- Mobile-first responsive development
238+
- Interactive UI component development
239+
240+
## 🚀 Potential Enhancements
241+
242+
### **E-Commerce Features**
243+
- [ ] Shopping cart with local storage
244+
- [ ] User authentication and login
245+
- [ ] Product search and filtering
246+
- [ ] Wishlist functionality
247+
- [ ] Checkout process simulation
248+
- [ ] Payment gateway integration
249+
250+
### **UI/UX Improvements**
251+
- [ ] Dark mode toggle
252+
- [ ] Product comparison feature
253+
- [ ] Advanced image zoom
254+
- [ ] Loading animations
255+
- [ ] Toast notifications
256+
- [ ] Infinite scroll pagination
257+
258+
### **Technical Enhancements**
259+
- [ ] Progressive Web App (PWA) features
260+
- [ ] API integration for dynamic content
261+
- [ ] State management system
262+
- [ ] Performance optimizations
263+
- [ ] SEO improvements
264+
- [ ] Accessibility enhancements
265+
266+
## 🤝 Contributing
267+
268+
Contributions are welcome! Here's how you can help:
269+
270+
1. **Fork the repository**
271+
2. **Create a feature branch**
272+
```bash
273+
git checkout -b feature/AmazingFeature
274+
```
275+
3. **Commit your changes**
276+
```bash
277+
git commit -m 'Add some AmazingFeature'
278+
```
279+
4. **Push to the branch**
280+
```bash
281+
git push origin feature/AmazingFeature
282+
```
283+
5. **Open a Pull Request**
284+
285+
### **Contribution Ideas**
286+
- Add shopping cart functionality
287+
- Implement product filtering and search
288+
- Create user authentication system
289+
- Add product reviews and ratings
290+
- Implement dark mode
291+
- Add animations and micro-interactions
292+
- Improve accessibility features
293+
- Add payment gateway integration
294+
295+
**🛒 Happy Shopping! Built with ❤️ for Hacktoberfest 2025**
296+
297+
*Ready to dive into e-commerce development? Clone, customize, and create your own online store! 🚀*

0 commit comments

Comments
 (0)