<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Donut Market | SMP Shop</title>
 
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
 
:root {
--bg: #10110f;
--panel: #191c18;
--panel2: #22251f;
--gold: #dfb45f;
--muted: #999d94;
--border: #34382f;
}
 
body {
background: var(--bg);
color: #f3f3ef;
font-family: Arial, sans-serif;
}
 
header {
height: 75px;
padding: 0 8%;
background: #171915;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
z-index: 10;
}
 
.logo {
color: var(--gold);
font-size: 22px;
font-weight: 900;
letter-spacing: 1px;
}
 
nav {
display: flex;
gap: 24px;
}
 
nav a {
text-decoration: none;
color: #b8b8b0;
font-size: 14px;
}
 
nav a:hover {
color: var(--gold);
}
 
.hero {
padding: 95px 8%;
background:
radial-gradient(ellipse at 80% 30%, #333321 0%, transparent 55%),
linear-gradient(120deg,#20241c,#11130f);
border-bottom: 1px solid var(--border);
}
 
.hero small {
color: var(--gold);
letter-spacing: 3px;
font-weight: bold;
}
 
.hero h1 {
font-size: clamp(38px,6vw,65px);
margin: 20px 0;
line-height: 1.1;
}
 
.hero h1 span {
color: var(--gold);
}
 
.hero p {
color: var(--muted);
line-height: 1.8;
max-width: 510px;
}
 
.hero button {
background: var(--gold);
color: #17140e;
border: none;
padding: 14px 24px;
margin-top: 25px;
border-radius: 5px;
font-weight: bold;
cursor: pointer;
}
 
.container {
padding: 55px 8%;
}
 
.section-heading {
margin-bottom: 25px;
}
 
.section-heading h2 {
font-size: 27px;
}
 
.section-heading p {
color: var(--muted);
margin-top: 8px;
font-size: 14px;
}
 
.toolbar {
display: flex;
justify-content: space-between;
gap: 15px;
flex-wrap: wrap;
margin-bottom: 25px;
}
 
.search, .currency {
background: var(--panel);
color: white;
border: 1px solid var(--border);
padding: 13px;
border-radius: 5px;
}
 
.search {
width: min(350px,100%);
}
 
.currency {
min-width: 190px;
}
 
.filters {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 28px;
}
 
.filters button {
padding: 11px 18px;
border-radius: 5px;
border: 1px solid var(--border);
background: var(--panel);
color: #ccc;
cursor: pointer;
}
 
.filters button.active,
.filters button:hover {
background: var(--gold);
color: #15120c;
}
 
.products {
display: grid;
grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
gap: 20px;
}
 
.product {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
transition: .2s;
}
 
.product:hover {
transform: translateY(-4px);
border-color: var(--gold);
}
 
.product-image {
height: 165px;
background: var(--panel2);
display: flex;
justify-content: center;
align-items: center;
}
 
.product-image img {
width: 105px;
height: 105px;
object-fit: contain;
image-rendering: pixelated;
}
 
.product-info {
padding: 18px;
}
 
.product-info h3 {
font-size: 16px;
margin-bottom: 9px;
}
 
.product-info p {
color: var(--muted);
font-size: 13px;
min-height: 32px;
}
 
.price {
color: var(--gold);
font-size: 21px;
font-weight: bold;
margin-top: 16px;
}
 
.original-price {
color: var(--muted);
font-size: 12px;
margin-top: 5px;
}
 
.add {
width: 100%;
padding: 12px;
border: none;
background: var(--gold);
color: #17140e;
font-weight: bold;
border-radius: 4px;
margin-top: 16px;
cursor: pointer;
}
 
.add:hover {
background: #f0cb7e;
}
 
.cart-section {
max-width: 850px;
margin: 30px auto;
padding: 30px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 8px;
}
 
.cart-section h2 {
margin-bottom: 20px;
}
 
.cart-row {
display: grid;
grid-template-columns: 1fr auto auto;
gap: 15px;
align-items: center;
padding: 15px 0;
border-bottom: 1px solid var(--border);
}
 
.quantity {
display: flex;
align-items: center;
gap: 10px;
}
 
.quantity button {
background: var(--panel2);
color: white;
border: 1px solid var(--border);
padding: 5px 10px;
cursor: pointer;
}
 
.remove {
background: none;
border: none;
color: #e87979;
cursor: pointer;
margin-left: 10px;
}
 
.cart-total {
margin-top: 25px;
display: flex;
justify-content: space-between;
font-size: 22px;
font-weight: bold;
}
 
.cart-total span {
color: var(--gold);
}
 
.checkout {
margin-top: 25px;
width: 100%;
background: var(--gold);
border: none;
border-radius: 5px;
padding: 15px;
font-weight: bold;
cursor: pointer;
}
 
.order-section {
max-width: 850px;
margin: 35px auto;
padding: 30px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 8px;
}
 
.order-section h2 {
margin-bottom: 10px;
}
 
.subtitle {
color: var(--muted);
font-size: 14px;
line-height: 1.6;
margin-bottom: 25px;
}
 
label {
display: block;
font-size: 13px;
margin-bottom: 8px;
color: #ccc;
}
 
.field {
margin-bottom: 18px;
}
 
.field input, .field textarea {
width: 100%;
padding: 14px;
background: #10120f;
color: white;
border: 1px solid var(--border);
border-radius: 5px;
outline: none;
}
 
.field input:focus,
.field textarea:focus {
border-color: var(--gold);
}
 
.delivery-note {
background: #24291f;
border: 1px solid #484b34;
color: #d3d0b7;
padding: 15px;
border-radius: 5px;
font-size: 13px;
line-height: 1.7;
margin-bottom: 20px;
}
 
#confirmation {
display: none;
margin-top: 20px;
background: #202d20;
border: 1px solid #486b43;
border-radius: 6px;
padding: 18px;
line-height: 1.7;
}
 
.contact {
padding: 60px 20px;
background: #191c17;
text-align: center;
}
 
.contact p {
color: var(--muted);
margin: 15px 0;
}
 
.contact a {
display: inline-block;
padding: 13px 25px;
background: #586bdb;
border-radius: 5px;
color: white;
text-decoration: none;
}
 
footer {
text-align: center;
color: #777;
padding: 25px;
font-size: 13px;
}
 
@media(max-width:600px) {
header {
padding: 0 5%;
}
 
nav {
gap: 12px;
}
 
nav a {
font-size: 12px;
}
 
.container {
padding: 35px 5%;
}
 
.cart-section, .order-section {
margin: 20px 5%;
padding: 20px;
}
 
.cart-row {
grid-template-columns: 1fr;
}
}
</style>
</head>
 
<body>
 
<header>
<div class="logo">DONUT MARKET</div>
 
<nav>
<a href="#shop">Shop</a>
<a href="#cart">Cart</a>
<a href="#order">Checkout</a>
</nav>
</header>
 
<section class="hero">
<small>PLAYER MARKETPLACE</small>
 
<h1>DONUT SMP<br><span>MARKET</span></h1>
 
<p>
Your place for Donut SMP money, spawners
and useful items. Choose what you want,
place an order and arrange delivery in-game.
</p>
 
<button onclick="document.getElementById('shop').scrollIntoView({behavior:'smooth'})">
EXPLORE SHOP
</button>
</section>
 
<main class="container" id="shop">
 
<div class="section-heading">
<h2>Marketplace</h2>
<p>Browse the available products.</p>
</div>
 
<div class="toolbar">
<input
class="search"
id="search"
placeholder="Search products..."
oninput="renderProducts()"
>
 
<select class="currency" id="currency" onchange="refreshPrices()">
<option value="USD">🇺🇸 USD - Dollar</option>
<option value="SAR">🇸🇦 SAR - Riyal</option>
<option value="EUR">🇪🇺 EUR - Euro</option>
<option value="GBP">🇬🇧 GBP - Pound</option>
<option value="AED">🇦🇪 AED - Dirham</option>
<option value="KWD">🇰🇼 KWD - Dinar</option>
<option value="BHD">🇧🇭 BHD - Dinar</option>
<option value="QAR">🇶🇦 QAR - Riyal</option>
<option value="OMR">🇴🇲 OMR - Rial</option>
</select>
</div>
 
<div class="filters">
<button class="active" onclick="setCategory('All',this)">All</button>
<button onclick="setCategory('Money',this)">Money</button>
<button onclick="setCategory('Spawners',this)">Spawners</button>
<button onclick="setCategory('Items',this)">Items</button>
</div>
 
<div class="products" id="products"></div>
 
</main>
 
<section class="cart-section" id="cart">
<h2>Your Cart</h2>
 
<div id="cart-items">
<p style="color:#999">Your cart is empty.</p>
</div>
 
<div class="cart-total">
<div>Total</div>
<span id="total">$0.00</span>
</div>
</section>
 
<section class="order-section" id="order">
 
<h2>Checkout</h2>
 
<p class="subtitle">
Enter your Minecraft username so the seller
knows where to deliver your order.
</p>
 
<div class="field">
<label>Minecraft Username *</label>
<input id="mcname" maxlength="16"
placeholder="Your Minecraft username">
</div>
 
<div class="field">
<label>Discord Username *</label>
<input id="discord"
placeholder="Your Discord username">
</div>
 
<div class="field">
<label>Additional Notes</label>
<textarea id="notes" rows="3"
placeholder="Anything the seller should know?"></textarea>
</div>
 
<div class="delivery-note">
<strong>How delivery works</strong><br>
1. Select your products.<br>
2. Enter your Minecraft username.<br>
3. Submit your order.<br>
4. Arrange payment and a meeting with the seller.<br>
5. The seller teleports to you and delivers your items.
</div>
 
<button class="checkout" onclick="placeOrder()">
SUBMIT ORDER
</button>
 
<div id="confirmation"></div>
 
</section>
 
<section class="contact">
<h2>Need help?</h2>
<p>Contact the seller if you have questions about an order.</p>
 
<!-- REPLACE WITH YOUR DISCORD SERVER INVITE -->
<a href="https://discord.gg/YOUR_INVITE" target="_blank">
Contact Seller
</a>
</section>
 
<footer>
DONUT MARKET © 2026<br>
Independent player marketplace.
Not affiliated with Donut SMP.
</footer>
 
<script>
 
// ======================================
// EDIT PRODUCTS AND PRICES HERE
// Prices are example USD prices.
// ======================================
 
const products = [
 
// MONEY PACKAGES
 
{
name: "100M Donut Money",
category: "Money",
price: 3,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/item/gold_ingot.png",
description: "100 million in-game money."
},
{
name: "500M Donut Money",
category: "Money",
price: 8,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/item/emerald.png",
description: "500 million in-game money."
},
{
name: "1B Donut Money",
category: "Money",
price: 15,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/item/diamond.png",
description: "1 billion in-game money."
},
{
name: "2B Donut Money",
category: "Money",
price: 25,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/item/diamond_block.png",
description: "2 billion in-game money."
},
{
name: "5B Donut Money",
category: "Money",
price: 50,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/item/netherite_ingot.png",
description: "5 billion in-game money."
},
{
name: "10B Donut Money",
category: "Money",
price: 90,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/item/nether_star.png",
description: "10 billion in-game money."
},
 
// SPAWNERS
// The standard Minecraft spawner texture is shared.
 
{
name: "Zombie Spawner",
category: "Spawners",
price: 2,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/block/spawner.png",
description: "Zombie spawner."
},
{
name: "Skeleton Spawner",
category: "Spawners",
price: 2,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/block/spawner.png",
description: "Skeleton spawner."
},
{
name: "Creeper Spawner",
category: "Spawners",
price: 5,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/block/spawner.png",
description: "Creeper spawner."
},
{
name: "Spider Spawner",
category: "Spawners",
price: 2,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/block/spawner.png",
description: "Spider spawner."
},
{
name: "Blaze Spawner",
category: "Spawners",
price: 5,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/block/spawner.png",
description: "Blaze spawner."
},
{
name: "Iron Golem Spawner",
category: "Spawners",
price: 5,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/block/spawner.png",
description: "Iron golem spawner."
},
 
// ITEMS
 
{
name: "Totem of Undying",
category: "Items",
price: 1,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/item/totem_of_undying.png",
description: "Totem of undying."
},
{
name: "Golden Apple",
category: "Items",
price: 1,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/item/golden_apple.png",
description: "Golden apple."
},
{
name: "Enchanted Golden Apple",
category: "Items",
price: 2,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/item/enchanted_golden_apple.png",
description: "Enchanted golden apple."
},
{
name: "Diamond",
category: "Items",
price: 1,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/item/diamond.png",
description: "Diamond."
},
{
name: "Netherite Ingot",
category: "Items",
price: 2,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/item/netherite_ingot.png",
description: "Netherite ingot."
},
{
name: "Ender Pearl",
category: "Items",
price: 1,
image: "https://mcasset.cloud/1.21.4/assets/minecraft/textures/item/ender_pearl.png",
description: "Ender pearl."
}
];
 
// Approximate USD conversion rates.
// USD is the base price.
 
const rates = {
USD: 1,
SAR: 3.75,
EUR: 0.92,
GBP: 0.79,
AED: 3.6725,
KWD: 0.307,
BHD: 0.377,
QAR: 3.64,
OMR: 0.385
};
 
const symbols = {
USD: "$",
SAR: "ر.س",
EUR: "€",
GBP: "£",
AED: "د.إ",
KWD: "د.ك",
BHD: "د.ب",
QAR: "ر.ق",
OMR: "ر.ع."
};
 
let cart = [];
let category = "All";
 
function getCurrency() {
return document.getElementById("currency").value;
}
 
function convert(amount) {
return amount * rates[getCurrency()];
}
 
function money(amount) {
const currency = getCurrency();
 
return new Intl.NumberFormat("en", {
style: "currency",
currency: currency,
minimumFractionDigits: 2
}).format(convert(amount));
}
 
// DISPLAY PRODUCTS
 
function renderProducts() {
 
const container = document.getElementById("products");
const search = document.getElementById("search").value.toLowerCase();
 
container.innerHTML = "";
 
products.forEach((product,index) => {
 
if(category !== "All" && product.category !== category) return;
 
if(!product.name.toLowerCase().includes(search)) return;
 
container.innerHTML += `
<div class="product">
 
<div class="product-image">
<img src="${product.image}"
alt="${product.name}"
onerror="this.alt='Texture unavailable'">
</div>
 
<div class="product-info">
<h3>${product.name}</h3>
 
<p>${product.description}</p>
 
<div class="price">
${money(product.price)}
</div>
 
<div class="original-price">
Base price: $${product.price.toFixed(2)} USD
</div>
 
<button class="add" onclick="addToCart(${index})">
ADD TO CART
</button>
</div>
 
</div>
`;
});
 
if(!container.innerHTML) {
container.innerHTML = "<p>No products found.</p>";
}
}
 
// CATEGORY FILTER
 
function setCategory(value,button) {
 
category = value;
 
document.querySelectorAll(".filters button")
.forEach(b => b.classList.remove("active"));
 
button.classList.add("active");
 
renderProducts();
}
 
// CART
 
function addToCart(index) {
 
const existing = cart.find(item => item.index === index);
 
if(existing) {
existing.quantity++;
} else {
cart.push({
index: index,
quantity: 1
});
}
 
renderCart();
}
 
function changeQuantity(index,amount) {
 
const item = cart.find(item => item.index === index);
 
if(!item) return;
 
item.quantity += amount;
 
if(item.quantity <= 0) {
cart = cart.filter(item => item.index !== index);
}
 
renderCart();
}
 
function renderCart() {
 
const container = document.getElementById("cart-items");
 
if(cart.length === 0) {
container.innerHTML = '<p style="color:#999">Your cart is empty.</p>';
} else {
 
container.innerHTML = cart.map(item => {
 
const product = products[item.index];
 
return `
<div class="cart-row">
 
<strong>${product.name}</strong>
 
<div class="quantity">
<button onclick="changeQuantity(${item.index},-1)">−</button>
${item.quantity}
<button onclick="changeQuantity(${item.index},1)">+</button>
</div>
 
<div>
${money(product.price * item.quantity)}
<button class="remove"
onclick="changeQuantity(${item.index},-${item.quantity})">
Remove
</button>
</div>
 
</div>
`;
 
}).join("");
}
 
updateTotal();
}
 
function updateTotal() {
 
const total = cart.reduce((sum,item) => {
return sum + products[item.index].price * item.quantity;
},0);
 
document.getElementById("total").textContent = money(total);
}
 
function refreshPrices() {
renderProducts();
renderCart();
}
 
// ORDER
 
function escapeHTML(value) {
return String(value).replace(/[&<>"']/g, char => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
'"': "&quot;",
"'": "&#039;"
})[char]);
}
 
function placeOrder() {
 
const mcname = document.getElementById("mcname").value.trim();
const discord = document.getElementById("discord").value.trim();
const notes = document.getElementById("notes").value.trim();
 
if(!/^[A-Za-z0-9_]{3,16}$/.test(mcname)) {
alert("Enter a valid Minecraft username.");
return;
}
 
if(!discord) {
alert("Please enter your Discord username.");
return;
}
 
if(cart.length === 0) {
alert("Your cart is empty.");
return;
}
 
const total = cart.reduce((sum,item) => {
return sum + products[item.index].price * item.quantity;
},0);
 
const orderItems = cart.map(item => {
const product = products[item.index];
 
return `${product.name} x${item.quantity}`;
}).join("\n");
 
const orderText = `
DONUT MARKET - NEW ORDER
 
Minecraft Username: ${mcname}
Discord Username: ${discord}
 
PRODUCTS:
${orderItems}
 
TOTAL: ${money(total)}
Currency: ${getCurrency()}
 
NOTES:
${notes || "None"}
 
Delivery: Arrange in-game TPA
`;
 
const confirmation = document.getElementById("confirmation");
 
confirmation.style.display = "block";
 
confirmation.innerHTML = `
<h3>Order Ready!</h3>
<p>Your order has been prepared.</p>
<p><strong>Minecraft:</strong> ${escapeHTML(mcname)}</p>
<p><strong>Discord:</strong> ${escapeHTML(discord)}</p>
<p><strong>Total:</strong> ${money(total)}</p>
<p style="margin-top:10px">
Copy your order details and send them to the seller.
</p>
<button class="checkout" onclick="copyOrder()">
COPY ORDER DETAILS
</button>
`;
 
window.currentOrder = orderText;
 
confirmation.scrollIntoView({behavior:"smooth"});
 
}
 
function copyOrder() {
 
if(!window.currentOrder) return;
 
navigator.clipboard.writeText(window.currentOrder)
.then(() => alert("Order copied! Send it to the seller on Discord."))
.catch(() => alert("Copy wasn't available. Please copy your order manually."));
}
 
renderProducts();
renderCart();
 
</script>
 
</body>
</html>