A colorful, mobile-friendly snack ordering website with WhatsApp checkout.
snack-shop/
├── index.html ← Main page
├── style.css ← All styles
├── app.js ← Menu data, cart, language, WhatsApp logic
├── README.md ← This file
└── images/ ← Put your food images here
├── chips.jpg
├── tempeh.jpg
├── cheese-sticks.jpg
├── brownies.jpg
├── donut.jpg
├── mochi.jpg
├── lemonade.jpg
├── matcha.jpg
└── milkshake.jpg
Open app.js and change line 8:
const WHATSAPP_NUMBER = "628123456789";
// Format: country code + number, no + or spaces
// Indonesia example: 6281234567890- Create an
images/folder in the project root - Add your photos with these exact filenames (JPG or PNG):
chips.jpg,tempeh.jpg,cheese-sticks.jpg,brownies.jpg,donut.jpg,mochi.jpg,lemonade.jpg,matcha.jpg,milkshake.jpg - If an image is missing, an emoji placeholder shows automatically ✅
Open index.html and find the <iframe id="mapEmbed"> tag (~line 80).
Replace the src="..." value with your actual Google Maps embed URL.
To get your embed link:
- Go to Google Maps → find your location
- Click Share → Embed a map → Copy HTML
- Paste just the
src="..."URL value into the iframe
Open app.js and edit the menuData array (starts ~line 20).
Each item has:
nameEn/nameId— English and Indonesian namesdescEn/descId— English and Indonesian descriptionsprice— in IDR (numbers only)img— image path (e.g."images/mysnack.jpg")emoji— fallback emoji if image missingcategory—"snack","sweet", or"drink"
- Push all files to a GitHub repository
- Go to Settings → Pages
- Set Source to Deploy from branch → main → / (root)
- Your site will be live at
https://yourusername.github.io/repo-name
- 🌐 One-click English ↔ Indonesian language switch
- 🛒 Shopping cart with quantity controls
- 💰 Auto price calculator in IDR
- 📲 WhatsApp order with pre-filled message
- 📍 Google Maps embed section
- 🎨 Colorful, animated design
- 📱 Mobile responsive
- Recommended image size: 800×600px or square 600×600px
- Use JPG for photos (smaller file size = faster load)
- Test on mobile before going live!