An interactive, animated, and stylish landing page built with pure HTML, CSS (Bootstrap & custom styles), and JavaScript. This project is not just a static page โ it's a mini web app with cart management, login/register system, animations, and modern UI effects.
- Scroll-based animations: Sections fade in/out when scrolling.
- Dynamic progress bar: A scroll progress indicator at the top of the page.
- Navbar behavior: Auto-hide on scroll down, show on scroll up.
- Typing effect: Animated typography cycling through iPhone models (
iPhone 16,iPhone 16 Pro,iPhone 16 Pro Max). - Counters: Smooth animated counters that start when visible.
- Smooth scrolling: Auto scroll to sections when clicking search results.
- Add products to cart with localStorage persistence.
- Update quantity (
+/-buttons). - Remove items from cart.
- Calculate total price dynamically.
- Cart preview & checkout simulation with thank you message.
- Register with username, password, and phone validation (
09XXXXXXXXX). - Phone number masking for privacy (
0912***5678). - Login system with credential check from localStorage.
- Redirect on login to main page.
- Auto-check login status before proceeding to checkout.
- Search bar with auto-suggestions for sections (e.g.,
intro,pricing). - Click a suggestion โ smooth scrolls to that section.
- Built with Bootstrap 5 grid & components.
- Glassmorphism UI elements for modern look.
- Alerts, buttons, and smooth feedback animations.
- HTML5 โ Structure
- CSS3 / Bootstrap 5 โ Styling & Layout
- JavaScript (ES6) โ Interactivity, Animations, Cart & Auth logic
- LocalStorage API โ Cart & Login persistence
# Clone repository
git clone https://github.com/MahdiJDS/iphone-shop.git
# Navigate to project folder
cd iphone-shop
# Open in browser (just open index.html)No build tools required. Just open in browser and enjoy โจ
โโโ html/
โ โโโ index.html
โ โโโ checkBuy.html
โ โโโ login.html
โโโ javaScript/
โ โโโ index.js
โ โโโ checkBuy.js
โ โโโ login.js
โโโ img/
- Open
index.htmlโ Browse iPhone models. - Add products to cart โ Mini cart updates in real-time.
- Try scroll animations, typing effect, and progress bar.
- Checkout โ Redirects to login if not authenticated.
- Register/Login โ Save credentials in
localStorage. - Final checkout shows thank you message and clears cart.
- Glassmorphism Menus ๐ง
- Magic Scroll Animations โจ
- Interactive Cart ๐
- Typing Hero Section โจ๏ธ
- Smart Search ๐
- Dynamic Counters ๐ข
This isnโt just a landing page โ itโs a mini e-commerce demo app ๐ฏ Perfect for practicing:
- DOM manipulation
- UI/UX with animations
- LocalStorage persistence
- Login/Register logic
๐ฅ Made with โค๏ธ, MahdiJDSโจ