A premium, bilingual (English & Bangla) single-page website for laptop and desktop spare parts targeting the Bangladesh market. Built with vanilla HTML5, CSS3, and JavaScript with modern animations and responsive design.
Website Purpose:
Market and sell quality laptop and desktop spare parts to customers in Bangladesh with a focus on premium branding, smooth animations, and easy contact integration.
Features:
- β Bilingual content (English + Bangla)
- β Premium dark-gold visual theme
- β Responsive design (mobile-first)
- β Smooth scroll animations
- β Product catalog with 15 items (10 laptop, 5 desktop)
- β Multiple contact methods (Phone, WhatsApp, Email)
- β Contact form with WhatsApp integration
- β Accessibility-first (reduced-motion support)
- β Fast loading (no external dependencies)
PC Part Web/
βββ index.html # Main website (all sections)
βββ css/
β βββ main.css # Core styling & design tokens
β βββ animations.css # Keyframes & animation system
βββ js/
β βββ main.js # Interactions & scroll effects
βββ assets/
β βββ icons/ # (Reserved for icon assets)
βββ README.md # This file
- HTML5 - Semantic markup
- CSS3 - Flexbox, Grid, custom properties, keyframe animations
- Vanilla JavaScript - No frameworks, lightweight (~10KB)
- Responsive Design - Mobile, tablet, desktop optimized
Option A: Direct File Open
# Windows: Right-click index.html β Open with β Browser
# Or drag index.html into your browserOption B: Local Server (Recommended)
# Using Python 3.x
python -m http.server 8000
# Using Node.js (if installed)
npx http-server
# Using PHP
php -S localhost:8000Then visit http://localhost:8000 in your browser.
Open index.html and update:
- Contact Phone:
01670204864(search and replace) - WhatsApp:
8801670204864(formatted for WhatsApp API) - Email:
lingkonbindu@gmail.com - Business Name: Search for "PC Parts Pro"
Open css/main.css and modify the :root variables:
--accent-gold: #d4af37; /* Primary gold */
--accent-gold-light: #e8c547; /* Lighter gold */
--accent-gold-dark: #b89f2e; /* Darker gold */
--primary-dark: #1a1410; /* Dark background */In index.html, find the .products-grid sections:
- Laptop Parts (10 items with π‘πβ‘ icons)
- Desktop Parts (5 items)
To add/remove items, duplicate/delete .product-card blocks and update the icon emoji and text.
Create an assets/images/ folder and update paths in HTML:
<!-- Replace emoji icons with image backgrounds -->
<div class="product-icon" style="background-image: url('assets/images/wifi-card.jpg')"></div>- Hero section slides in from left
- Product cards fade and slide up on scroll
- Staggered reveal effect (each card has slight delay)
- Intersection Observer triggers animations once
- Product cards lift on hover with gold glow
- Buttons have ripple effect and color transition
- Links have underline animation
- Reduced animation complexity on small screens
- Touch device support (tap animations)
- Accessibility fallback: Disabled animations for
prefers-reduced-motionsetting
Edit css/animations.css to:
- Change animation timing:
--transition-base: 0.3s(in main.css) - Add new keyframes: Search
@keyframesin animations.css - Adjust delays: Product cards use
--delayCSS variable
<a href="tel:01670204864">Call Now</a>Works on mobile devices; shows notification on desktop.
<a href="https://wa.me/8801670204864?text=Message">Chat on WhatsApp</a>Opens WhatsApp Web or app with pre-filled message.
<a href="mailto:lingkonbindu@gmail.com?subject=Inquiry">Send Email</a>Opens email client with pre-filled subject.
The contact form in the HTML sends messages via WhatsApp (no backend required).
| Device | Width | Optimizations |
|---|---|---|
| Mobile | < 480px | Single column, larger touch targets |
| Tablet | 480-768px | 2-column layout, adjusted spacing |
| Desktop | > 768px | 3-4 column grid, full animations |
-
Minimize HTTP Requests
- All CSS/JS inline or single files
- No external CDN dependencies
-
Optimize Images (When Added)
- Use WebP format with JPG fallback
- Lazy load with
data-srcattribute
-
Browser Caching
- Set expires headers on hosting platform
- CSS/JS files rarely change
-
Accessibility
- Test with screen readers
- Keyboard navigation supported
- Reduced-motion fallback included
- Netlify: Drag & drop folder, auto-deploys
- GitHub Pages: Push to
gh-pagesbranch - Vercel: Similar to Netlify, optimized for speed
- Firebase Hosting: Google's static host
- Upload files via FTP to
public_htmlfolder - Ensure
.htaccessallows.htmlfiles (usually default)
- Run from local server for Bangladesh office network
- Use
python -m http.serverfor quick setup
- Test all contact links (phone, WhatsApp, email)
- Verify responsive layout on mobile browser
- Check animation smoothness in Chrome and Firefox
- Update business info if changed
- Duplicate a
.product-cardin the grid - Change icon emoji and text
- Update Bangla translation
- Reload browser to see new item
- Edit 6 CSS variables in
css/main.css:rootsection - All elements inherit the new theme automatically
- No need to edit individual files
| Browser | Support | Notes |
|---|---|---|
| Chrome | β Full | Latest 2 versions |
| Firefox | β Full | Latest 2 versions |
| Safari | β Full | Latest 2 versions |
| Edge | β Full | Latest 2 versions |
| IE 11 | Some animations won't work |
- Check: CSS file is linked correctly in
index.html - Fix: Verify
<link rel="stylesheet" href="css/animations.css"> - Browser: Disable browser extensions blocking CSS
- Phone: Only works on mobile devices
- WhatsApp: Ensure browser allows popups
- Email: Requires email client installed
- Check: Meta viewport tag in
<head> - Fix: Ensure
<meta name="viewport" content="width=device-width, initial-scale=1.0"> - Clear: Browser cache (Ctrl+Shift+Del)
- Check file sizes:
css/main.css(~15KB),js/main.js(~8KB) - Disable browser extensions
- Use Chrome DevTools β Performance tab
- Add image gallery for products
- Integrate live chat widget (Crisp, Drift)
- Add order tracking system
- Email newsletter signup
- Google Maps integration for office location
- Product comparison tool
- Customer testimonials section
- Blog for PC maintenance tips
- Multi-language support (Urdu, Hindi)
- Dark mode toggle
- Contact Data: Form submissions go directly to WhatsApp (no server storage)
- Cookies: Website uses no tracking or analytics (GDPR compliant)
- Links: External links (WhatsApp, email) open in new tabs
For help maintaining or updating this website:
- Backup: Always backup
index.htmlbefore major changes - Test Locally: Use local server to test changes before upload
- Version Control: Consider using Git for version tracking (if technical)
- Contact Info: Keep all business contact details in one place for easy updates
This website is created for PC Parts Pro and is proprietary. Use and modify freely for your business needs.
Created: June 2026
Last Updated: June 13, 2026
Status: Ready for Production
For questions or updates, contact: 01670204864 or lingkonbindu@gmail.com