diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..8042f0c Binary files /dev/null and b/.DS_Store differ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/images/.DS_Store b/images/.DS_Store new file mode 100644 index 0000000..b82e8fa Binary files /dev/null and b/images/.DS_Store differ diff --git a/images/alien.jpg b/images/alien.jpg new file mode 100644 index 0000000..7bc0b9b Binary files /dev/null and b/images/alien.jpg differ diff --git a/images/drinkicon.png b/images/drinkicon.png new file mode 100644 index 0000000..62adcfa Binary files /dev/null and b/images/drinkicon.png differ diff --git a/images/food.png b/images/food.png new file mode 100644 index 0000000..7a056b4 Binary files /dev/null and b/images/food.png differ diff --git a/images/foodicon.png b/images/foodicon.png new file mode 100644 index 0000000..7220820 Binary files /dev/null and b/images/foodicon.png differ diff --git a/images/images.jpeg b/images/images.jpeg new file mode 100644 index 0000000..399324d Binary files /dev/null and b/images/images.jpeg differ diff --git a/images/spiderman.jpg b/images/spiderman.jpg new file mode 100644 index 0000000..ce37fd8 Binary files /dev/null and b/images/spiderman.jpg differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..b37c2bc --- /dev/null +++ b/index.html @@ -0,0 +1,39 @@ + + +
+ + +Available Saturdays and Sundays only
+ `; + } else { + menuTitle.textContent = categoryTitles[category]; + } + + menuData[category].forEach(item => { + const menuItem = document.createElement("div"); + menuItem.classList.add("menu-item"); + + menuItem.innerHTML = ` +${item.description}
+${item.price}
+ `; + + menuDisplay.appendChild(menuItem); + }); +} + +displayMenu("breakfast"); +buttons[0].classList.add("active"); + +buttons.forEach(button => { + button.addEventListener("click", function () { + buttons.forEach(btn => btn.classList.remove("active")); + button.classList.add("active"); + + const selectedCategory = button.dataset.category; + displayMenu(selectedCategory); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..cb7019d --- /dev/null +++ b/style.css @@ -0,0 +1,167 @@ +main { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +body { + font-family: Wingdings, cursive, sans-serif; + background-color: #243de1; + color: #84df99; + line-height: 1.6; + padding: 20px; +} + +.hero { + text-align: center; + margin-bottom: 30px; +} + +.hero h1 { + font-size: 2.5rem; + margin-bottom: 10px; +} + +.hero p { + font-size: 1.1rem; + color: #3d46c5; +} + +.menu-controls { + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 10px; + margin-bottom: 30px; +} + +.menu-btn { + padding: 12px 18px; + border: none; + background-color: #1ac97a; + color: rgb(106, 21, 30); + border-radius: 8px; + cursor: pointer; + font-size: 1rem; +} + +.menu-btn:hover { + background-color: #1fb878; +} + +.menu-btn.active { + background-color: #dfca0f; +} + +.menu-section { + max-width: 900px; + margin: 0 auto; +} + +#menu-title { + text-align: center; + margin-bottom: 20px; +} + +#menu-display { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); + gap: 20px; +} + +.menu-item { + background-color: rgb(255, 255, 255); + border-radius: 10px; + padding: 18px; + box-shadow: 0 4px 10px rgba(180, 26, 126, 0.08); +} + +.menu-item h3 { + margin-bottom: 8px; +} + +.menu-item p { + margin-bottom: 10px; + color: #2f2681; +} + +.price { + font-weight: bold; + color: #d97706; +} +.badge { + display: inline-block; + margin-left: 6px; + padding: 2px 6px; + font-size: 0.7rem; + border-radius: 10px; + background: black; + color: white; +} + +.weekend-msg { + margin-top: 10px; + font-style: italic; +} + + + +/* style.css */ +* { + box-sizing: border-box; +} + +.menu-controls { + display: grid; + grid-template-columns: repeat(3, minmax(160px, 1fr)); + gap: 12px; + max-width: 1100px; + margin: 0 auto 30px; +} + +.menu-btn { + display: flex; + align-items: center; + justify-content: center; + gap: 8px; + width: 100%; + min-height: 72px; + padding: 12px 16px; + border: none; + background-color: #1ac97a; + color: rgb(106, 21, 30); + border-radius: 8px; + cursor: pointer; + font-size: 1rem; +} + +.menu-btn img { + width: 28px; + height: 28px; + object-fit: contain; +} + +.menu-btn:hover { + background-color: #1fb878; +} + +.menu-btn.active { + background-color: #dfca0f; +} + +img { + max-width: 100%; + height: auto; +} + +@media (max-width: 768px) { + .menu-controls { + grid-template-columns: repeat(2, minmax(140px, 1fr)); + } +} + +@media (max-width: 480px) { + .menu-controls { + grid-template-columns: 1fr; + } +} \ No newline at end of file