Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/amanidrummond/GangstaneliCafe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/amanidrummond/burger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/amanidrummond/cheesybites.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/amanidrummond/croissant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
418 changes: 418 additions & 0 deletions src/amanidrummond/index.html

Large diffs are not rendered by default.

Binary file added src/amanidrummond/latte.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/amanidrummond/lemonade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/amanidrummond/loadedfries.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/amanidrummond/mimosa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/amanidrummond/pancakes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/amanidrummond/pasta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/amanidrummond/salmon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions src/amanidrummond/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// LOADING (longer + smoother)
window.addEventListener("load", () => {
setTimeout(() => {
const loader = document.getElementById("loader");
loader.style.opacity = "0";

setTimeout(() => {
loader.style.display = "none";
}, 800); // fade out time

}, 2500); // how long it stays visible (2.5 seconds)
});

// Glowing cursor effect
const cursorGlow = document.getElementById("cursorGlow");

document.addEventListener("mousemove", (e) => {
cursorGlow.style.left = e.clientX + "px";
cursorGlow.style.top = e.clientY + "px";
});

// Cart / checkout system
const cart = [];
const cartCount = document.getElementById("cartCount");
const cartItems = document.getElementById("cartItems");
const cartTotal = document.getElementById("cartTotal");
const cartPanel = document.getElementById("cartPanel");
const toggleCartBtn = document.getElementById("toggleCartBtn");

toggleCartBtn.addEventListener("click", () => {
cartPanel.classList.toggle("open");
});

function addToCart(name, price) {
cart.push({ name, price });
updateCart();
}

function updateCart() {
cartCount.textContent = cart.length;

if (cart.length === 0) {
cartItems.innerHTML = '<div class="empty-cart">Your cart is empty.</div>';
cartTotal.textContent = "0";
return;
}

cartItems.innerHTML = "";
let total = 0;

cart.forEach((item) => {
total += item.price;

const itemDiv = document.createElement("div");
itemDiv.className = "cart-item";
itemDiv.innerHTML = `
<div class="cart-item-name">${item.name}</div>
<div class="cart-item-price">$${item.price}</div>
`;
cartItems.appendChild(itemDiv);
});

cartTotal.textContent = total;
}

function checkout() {
if (cart.length === 0) {
alert("Your cart is empty.");
return;
}

alert("Checkout complete! Thank you for ordering from Gangstaneli Café.");
cart.length = 0;
updateCart();
cartPanel.classList.remove("open");
}
Binary file added src/amanidrummond/sliders.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/amanidrummond/smoothie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/amanidrummond/smoothiebowl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/amanidrummond/soup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading