Absolutely! Below is a fully functional inline HTML + CSS + JS solution for your 10-Day Foodie Tour.
This version displays each day with restaurant info, allows users to mark a day as completed (which strikes it through), displays calories, and includes a simple star review system using JavaScript.
💡 Note: This example is made for a single HTML page, mobile-responsive, and can be easily embedded into a WordPress HTML block. If you want to scale it, consider separating data using a JSON file or CMS and using frameworks like Vue/React.
✅ Paste this into your WordPress "Custom HTML" block or any HTML environment:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>10-Day Foodie Tour - Barcelona 🍽️</title>
<style>
body {
font-family: 'Segoe UI', sans-serif;
background: #f9f9f9;
color: #333;
margin: 20px;
}
.day-card {
background: white;
border-radius: 10px;
padding: 20px;
margin: 15px 0;
box-shadow: 0 0 10px rgba(0,0,0,0.05);
position: relative;
transition: opacity 0.3s ease;
}
.day-card.completed {
opacity: 0.6;
text-decoration: line-through;
}
.day-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.day-header h2 {
margin: 0;
}
.desc {
margin: 10px 0;
font-size: 0.95rem;
}
ul.dishes {
list-style-type: 🍴;
margin-left: 20px;
}
.day-img {
width: 100%;
border-radius: 8px;
margin: 10px 0;
}
.map-link {
display: inline-block;
margin: 10px 0;
color: #0073e6;
text-decoration: none;
font-weight: bold;
}
.calories {
font-style: italic;
margin-top: 10px;
color: #888;
}
.btn-complete {
background: #28a745;
color: white;
padding: 5px 12px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 0.85rem;
}
.stars {
display: inline-block;
font-size: 20px;
margin-top: 8px;
}
.star {
cursor: pointer;
color: #ccc;
}
.star.checked {
color: #ffc107;
}
@media (max-width: 600px) {
.day-card {
padding: 15px;
}
}
</style>
</head>
<body>
<h1>🍷 10-Day Foodie Tour in Barcelona</h1>
<p>Mark each day's dinner when you're done — and don't forget to rate the meal!</p>
<div id="days-container"></div>
<script>
const days = [
{
day: 1,
name: "El Nacional",
desc: "Upscale food hall with classic Spanish regional eats.",
dishes: ["Iberian Jamón with Tomato Bread", "Grilled Octopus", "Catalan Meatballs"],
image: "https://source.unsplash.com/800x400/?tapas,barcelona",
map: "https://maps.google.com/?q=El+Nacional+Barcelona",
calories: 800
},
{
day: 2,
name: "Can Culleretes",
desc: "Barcelona's oldest restaurant with hearty Catalan food.",
dishes: ["Catalan Stew", "Cod with Romesco", "Crema Catalana"],
image: "https://source.unsplash.com/800x400/?restaurant,spain",
map: "https://maps.google.com/?q=Can+Culleretes+Barcelona",
calories: 950
},
{
day: 3,
name: "Bodega Biarritz 1881",
desc: "Tiny tapas heaven in the Gothic Quarter.",
dishes: ["Patatas Bravas", "Chorizo in Cider", "Manchego Cheese"],
image: "https://source.unsplash.com/800x400/?cheese,tapas",
map: "https://maps.google.com/?q=Bodega+Biarritz+1881",
calories: 700
},
{
day: 4,
name: "La Paradeta",
desc: "DIY-style seafood — choose and they’ll cook it!",
dishes: ["Grilled Prawns", "Mussels", "Fried Calamari"],
image: "https://source.unsplash.com/800x400/?seafood,market",
map: "https://maps.google.com/?q=La+Paradeta+Barcelona",
calories: 850
},
{
day: 5,
name: "Ciudad Condal",
desc: "Lively tapas bar popular with locals.",
dishes: ["Mini Foie Burgers", "Asparagus with Romesco", "Anchovies"],
image: "https://source.unsplash.com/800x400/?tapas,city",
map: "https://maps.google.com/?q=Ciudad+Condal+Barcelona",
calories: 750
},
{
day: 6,
name: "Cerveseria Catalana",
desc: "Bustling hotspot for tapas lovers.",
dishes: ["Tuna Tartare", "Shrimp Skewers", "Ham Croquettes"],
image: "https://source.unsplash.com/800x400/?barcelona,food",
map: "https://maps.google.com/?q=Cerveseria+Catalana",
calories: 800
},
{
day: 7,
name: "Tapeo",
desc: "Trendy modern tapas with bold flavors.",
dishes: ["Pork Ribs", "Grilled Artichokes", "Tuna Tartare"],
image: "https://source.unsplash.com/800x400/?fine+dining,barcelona",
map: "https://maps.google.com/?q=Tapeo+Barcelona",
calories: 850
},
{
day: 8,
name: "Güell Tapas",
desc: "Casual tapas near Park Güell. Great drinks too!",
dishes: ["Spanish Omelette", "Pork Cheeks", "Sangria Pitcher"],
image: "https://source.unsplash.com/800x400/?sangria,spanish",
map: "https://maps.google.com/?q=Güell+Tapas",
calories: 900
},
{
day: 9,
name: "Besta",
desc: "Catalan-Galician fusion with seasonal dishes.",
dishes: ["Red Shrimp Tartare", "Grilled Duck", "Mushroom Risotto"],
image: "https://source.unsplash.com/800x400/?gourmet,barcelona",
map: "https://maps.google.com/?q=Besta+Barcelona",
calories: 850
},
{
day: 10,
name: "Disfrutar",
desc: "Michelin-star experience with modernist magic.",
dishes: ["Liquid Olives", "Foie Surprise", "Truffle Cream"],
image: "https://source.unsplash.com/800x400/?michelin,restaurant",
map: "https://maps.google.com/?q=Disfrutar+Barcelona",
calories: 1200
}
];
const container = document.getElementById("days-container");
days.forEach(day => {
const card = document.createElement("div");
card.className = "day-card";
card.innerHTML = `
<div class="day-header">
<h2>Day ${day.day}: ${day.name}</h2>
<button onclick="completeDay(this)" class="btn-complete">Done ✅</button>
</div>
<p class="desc">${day.desc}</p>
<ul class="dishes">${day.dishes.map(dish => `<li>${dish}</li>`).join("")}</ul>
<img class="day-img" src="${day.image}" alt="${day.name} image">
<a class="map-link" href="${day.map}" target="_blank">📍 Get Directions</a>
<p class="calories">Total Calories: ~${day.calories} cal</p>
<div class="stars" data-day="${day.day}">
${[1,2,3,4,5].map(star => `<span class="star" onclick="rate(this, ${day.day}, ${star})">★</span>`).join("")}
</div>
`;
container.appendChild(card);
});
function completeDay(btn) {
const card = btn.closest(".day-card");
card.classList.toggle("completed");
btn.textContent = card.classList.contains("completed") ? "Undo 🔄" : "Done ✅";
}
function rate(el, day, rating) {
const parent = el.parentElement;
const stars = parent.querySelectorAll('.star');
stars.forEach((star, i) => {
star.classList.toggle('checked', i < rating);
});
}
</script>
</body>
</html>