Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

๐Ÿ›’๐Ÿ”ฅ iPhone Shop Landing Page โ€” README

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.


๐ŸŽฌ Animations & Interactions

  • 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.

๐Ÿ›’ Cart & Shopping System

  • 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.

๐Ÿ” Authentication (LocalStorage Based)

  • 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.

๐Ÿ”Ž Smart Search

  • Search bar with auto-suggestions for sections (e.g., intro, pricing).
  • Click a suggestion โ†’ smooth scrolls to that section.

๐Ÿ“ฑ Responsive & Stylish

  • Built with Bootstrap 5 grid & components.
  • Glassmorphism UI elements for modern look.
  • Alerts, buttons, and smooth feedback animations.

โš™๏ธ Tech Stack

  • HTML5 โ€” Structure
  • CSS3 / Bootstrap 5 โ€” Styling & Layout
  • JavaScript (ES6) โ€” Interactivity, Animations, Cart & Auth logic
  • LocalStorage API โ€” Cart & Login persistence

๐Ÿš€ How to Run

# 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 โœจ


๐Ÿ“Œ Folder Structure

โ”œโ”€โ”€ html/
โ”‚   โ”œโ”€โ”€ index.html
โ”‚   โ”œโ”€โ”€ checkBuy.html
โ”‚   โ””โ”€โ”€ login.html
โ”œโ”€โ”€ javaScript/  
โ”‚   โ”œโ”€โ”€ index.js    
โ”‚   โ”œโ”€โ”€ checkBuy.js   
โ”‚   โ””โ”€โ”€  login.js         
โ””โ”€โ”€ img/            

๐ŸŽฎ Demo Workflow

๐Ÿ”— View Demo

  1. Open index.html โ†’ Browse iPhone models.
  2. Add products to cart โ†’ Mini cart updates in real-time.
  3. Try scroll animations, typing effect, and progress bar.
  4. Checkout โ†’ Redirects to login if not authenticated.
  5. Register/Login โ†’ Save credentials in localStorage.
  6. Final checkout shows thank you message and clears cart.

๐ŸŽจ UI Highlights

  • Glassmorphism Menus ๐ŸงŠ
  • Magic Scroll Animations โœจ
  • Interactive Cart ๐Ÿ›’
  • Typing Hero Section โŒจ๏ธ
  • Smart Search ๐Ÿ”
  • Dynamic Counters ๐Ÿ”ข

๐Ÿ† Why This Project is Special

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

๐Ÿง‘โ€๐Ÿ’ป Developer

๐Ÿ”ฅ Made with โค๏ธ, MahdiJDSโœจ


About

mini iphone shop web app with cart management, login/register system, animations, and modern UI effects.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages