Add all demos (ristorante 6 templates), CRM, diagrams, resumes, batch CSVs

This commit is contained in:
2026-04-24 12:58:02 +02:00
parent 51d7df0f26
commit 9406bdc06b
19 changed files with 7092 additions and 0 deletions
+73
View File
@@ -0,0 +1,73 @@
# Restaurant Outreach — Email Template
## Subject Line Options
- "Quick question about [Restaurant Name]"
- "[Restaurant Name] — web audit free for 5 min"
- "Saw [Restaurant Name]'s site, have an idea"
---
## Email Template
```
Hi [Name],
I noticed [Restaurant Name]'s website and I have an idea that could
bring you more bookings — happy to share for free.
I run HostPioneers — we build professional websites for restaurants
in Benalmádena and the Costa del Sol. Currently offering a complete
website setup for €399 (essential) or €699 (professional, includes AI).
I have templates ready that match your restaurant style.
You can preview them here:
→ https://hostpioneers.com/demos/ristorante/
No commitment, no contracts. Just a conversation.
Would a quick 10-min call this week work?
Best,
Haitham
HostPioneers — Benalmádena Costa
```
---
## Follow-up (if no reply in 3 days)
```
Hi [Name],
Just following up — did you get my last message?
I put together a quick preview template for [Restaurant Name]
based on what I saw on your site:
→ https://hostpioneers.com/demos/ristorante/
Worth a look before the summer season hits.
Happy to jump on a quick call.
```
---
## High Priority Prospects (site-down / no site)
| Restaurant | Demo to Send | Notes |
|-----------|-------------|-------|
| La Sirena | Spanish / Steakhouse | Seafood focus, TripAdvisor 4.5 |
| Ai Coppa Ristorante | Italian | Italian cuisine |
| Il Boccaccio | Italian | Italian cuisine |
| All Grill Burger | Steakhouse/Burger | Burger + grill |
| Los Mellizos | Spanish/Seafood | Bot protection on site |
| La Nueva | Spanish | NEW - no official website |
## Medium Priority (has site, poor quality)
| Restaurant | Issues | Demo to Send |
|-----------|--------|-------------|
| Ocampo Cocina Argentina | No menu, no contact, no HTTPS | Steakhouse |
| SALU Grill & Wine | No contact | Steakhouse |
| Narhal Mahal | No HTTPS | Indian |
| Asador El Quebracho | No HTTPS | Steakhouse |
| Jacks Smokehouse | Free weeblyte subdomain | Steakhouse/Burger |
| Don Marisquito | Directory listing only | Spanish/Seafood |
+486
View File
@@ -0,0 +1,486 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Restaurant Prospects — Benalmádena</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0f1117; --bg-card: #161922; --bg-row: #1c1f2a; --border: #2a2d3a;
--text: #e2e4e9; --text-muted: #8b8fa3; --green: #22c55e; --yellow: #eab308;
--red: #ef4444; --blue: #3b82f6; --purple: #a855f7;
}
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
/* HEADER */
header { border-bottom: 1px solid var(--border); padding: 1.2rem 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; background: var(--bg-card); }
header h1 { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.header-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
/* STATS BAR */
.stats-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); }
.stat { background: var(--bg-card); padding: 0.8rem 1rem; text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.15rem; }
.stat.red .stat-value { color: var(--red); }
.stat.yellow .stat-value { color: var(--yellow); }
.stat.green .stat-value { color: var(--green); }
.stat.blue .stat-value { color: var(--blue); }
.stat.purple .stat-value { color: var(--purple); }
/* TOOLBAR */
.toolbar { padding: 0.8rem 1.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.filter-btn { padding: 0.35rem 0.9rem; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; font-size: 0.75rem; font-family: inherit; transition: all 0.2s; }
.filter-btn:hover { border-color: var(--text-muted); color: var(--text); }
.filter-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
/* BUTTONS */
.btn { padding: 0.4rem 0.9rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; cursor: pointer; border: none; font-family: inherit; transition: all 0.2s; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: #2563eb; text-decoration: none; }
.btn-success { background: var(--green); color: white; }
.btn-success:hover { background: #16a34a; text-decoration: none; }
.btn-outline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); text-decoration: none; }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #dc2626; text-decoration: none; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
/* TOAST */
#toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--green); color: #000; padding: 0.6rem 1.2rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 9999; }
#toast.show { opacity: 1; }
/* TABLE */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
thead { background: var(--bg-card); border-bottom: 1px solid var(--border); }
th { padding: 0.6rem 0.8rem; text-align: left; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); white-space: nowrap; }
td { padding: 0.7rem 0.8rem; border-bottom: 1px solid rgba(42,45,58,0.4); vertical-align: middle; font-size: 0.8rem; }
tr:hover td { background: rgba(59,130,246,0.03); }
tr.selected td { background: rgba(59,130,246,0.08); }
/* GRADE BADGE */
.grade { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; font-weight: 700; font-size: 0.8rem; }
.grade.A { background: rgba(34,197,94,0.15); color: var(--green); }
.grade.B { background: rgba(234,179,8,0.15); color: var(--yellow); }
.grade.C { background: rgba(234,179,8,0.1); color: #d97706; }
.grade.D { background: rgba(234,179,8,0.2); color: #d97706; }
.grade.F { background: rgba(239,68,68,0.15); color: var(--red); }
/* SELECTED CHECKBOX */
.row-checkbox { width: 20px; height: 20px; cursor: pointer; accent-color: var(--blue); }
/* WEBSITE STATUS TOGGLE */
.toggle-group { display: flex; align-items: center; gap: 0.4rem; }
.toggle { position: relative; width: 36px; height: 20px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 20px; transition: all 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: all 0.2s; }
.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }
.toggle-label { font-size: 0.7rem; color: var(--text-muted); }
/* WEBSITE LINK */
.website { font-size: 0.75rem; color: var(--blue); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
/* ISSUES */
.issues { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.issue { font-size: 0.6rem; padding: 0.1rem 0.4rem; border-radius: 3px; background: rgba(239,68,68,0.1); color: rgba(239,68,68,0.8); border: 1px solid rgba(239,68,68,0.2); }
/* PRIORITY */
.priority { font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.4rem; border-radius: 4px; }
.priority.high { background: rgba(239,68,68,0.15); color: var(--red); }
.priority.med { background: rgba(234,179,8,0.15); color: var(--yellow); }
.priority.low { background: rgba(59,130,246,0.1); color: var(--blue); }
/* ACTIONS */
.actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
/* NOTES INPUT */
.notes-input { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 0.75rem; padding: 0.3rem 0.5rem; width: 120px; font-family: inherit; }
.notes-input:focus { outline: none; border-color: var(--blue); }
/* TABS */
.tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 1.5rem; background: var(--bg-card); }
.tab { padding: 0.8rem 1.2rem; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
/* DEMOS SECTION */
#demos-view { display: none; padding: 1.5rem; }
.demos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.demo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color 0.2s; }
.demo-card:hover { border-color: var(--blue); }
.demo-preview { height: 140px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.5rem; }
.demo-preview img { width: 100%; height: 100%; object-fit: cover; }
.demo-preview .demo-label { font-size: 0.75rem; color: var(--text-muted); }
.demo-info { padding: 1rem; }
.demo-info .demo-name { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.3rem; }
.demo-info .demo-desc { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.6rem; line-height: 1.5; }
.demo-info .demo-price { font-size: 0.75rem; color: var(--green); font-weight: 600; margin-bottom: 0.6rem; }
.demo-info .demo-url { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.6rem; word-break: break-all; }
.demo-status { font-size: 0.65rem; padding: 0.15rem 0.5rem; border-radius: 4px; display: inline-block; margin-bottom: 0.6rem; }
.demo-status.done { background: rgba(34,197,94,0.15); color: var(--green); }
.demo-status.building { background: rgba(234,179,8,0.15); color: var(--yellow); }
/* RESPONSIVE */
@media (max-width: 768px) {
.stats-bar { grid-template-columns: repeat(3, 1fr); }
header { flex-direction: column; align-items: flex-start; }
}
</style>
</head>
<body>
<header>
<div>
<h1>🍽️ Benalmádena Restaurant Prospects</h1>
<div style="font-size:0.75rem;color:var(--text-muted);margin-top:0.2rem;">
<span id="total-count">0</span> restaurants · <span id="selected-count">0</span> selected for contact
</div>
</div>
<div class="header-actions">
<button class="btn btn-success" onclick="saveAll()">💾 Save Changes</button>
<button class="btn btn-primary" onclick="showTab('contact', event)">📋 Contact Selected (<span id="selected-btn-count">0</span>)</button>
</div>
</header>
<!-- STATS -->
<div class="stats-bar">
<div class="stat red"><div class="stat-value" id="stat-f">0</div><div class="stat-label">Site Down</div></div>
<div class="stat yellow"><div class="stat-value" id="stat-cd">0</div><div class="stat-label">Needs Work</div></div>
<div class="stat green"><div class="stat-value" id="stat-ab">0</div><div class="stat-label">Good Sites</div></div>
<div class="stat blue"><div class="stat-value" id="stat-contact">0</div><div class="stat-label">Selected</div></div>
<div class="stat purple"><div class="stat-value" id="stat-no-site">0</div><div class="stat-label">No Website</div></div>
</div>
<!-- TABS -->
<div class="tabs">
<div class="tab active" onclick="showTab('all')">All</div>
<div class="tab" onclick="showTab('hot')">🔥 Site Down</div>
<div class="tab" onclick="showTab('warm')">⚠️ Needs Work</div>
<div class="tab" onclick="showTab('good')">✅ Good Sites</div>
<div class="tab" onclick="showTab('nosite')">❌ No Website</div>
<div class="tab" onclick="showTab('contact')">📋 Selected</div>
<div class="tab" onclick="showTab('demos')">🎨 Demo Templates</div>
</div>
<!-- TABLE -->
<div id="table-view">
<table>
<thead>
<tr>
<th style="width:24px;"></th>
<th>G</th>
<th>Restaurant</th>
<th>Website</th>
<th>Has Site?</th>
<th>Grade</th>
<th>Priority</th>
<th>Issues</th>
<th>Notes</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="table-body"></tbody>
</table>
</div>
<!-- DEMOS SECTION -->
<div id="demos-view">
<div class="demos-grid" id="demos-grid"></div>
</div>
<div id="toast">Saved!</div>
<script>
// ──────────────────────────────────────────────
// RESTAURANT DATA (edit manually here or load from localStorage)
// ──────────────────────────────────────────────
const STORAGE_KEY = 'autojobs_restaurant_prospects';
function loadData() {
const saved = localStorage.getItem(STORAGE_KEY);
if (saved) return JSON.parse(saved);
return getDefaultData();
}
function getDefaultData() {
return [
{id:1, name:"La Sirena", url:"http://lasirenarestaurante.com/", hasSite:false, grade:"F", quality:0, issues:["site unreachable"], priority:"high", notes:"", selected:false},
{id:2, name:"Ai Coppa Ristorante", url:"http://www.aicorestaurants.com/", hasSite:false, grade:"F", quality:0, issues:["site unreachable"], priority:"high", notes:"", selected:false},
{id:3, name:"Il Boccaccio", url:"http://www.ilboccaccio.es/", hasSite:false, grade:"F", quality:0, issues:["site unreachable"], priority:"high", notes:"", selected:false},
{id:4, name:"All Grill Burger", url:"http://www.allgrillburger.com/", hasSite:false, grade:"F", quality:0, issues:["site unreachable"], priority:"high", notes:"", selected:false},
{id:5, name:"Los Mellizos", url:"https://losmellizos.net/", hasSite:true, grade:"D", quality:0, issues:["bot protection"], priority:"high", notes:"", selected:false},
{id:6, name:"Ocampo Cocina Argentina", url:"http://www.ocampococinaargentina.com/", hasSite:true, grade:"C", quality:3, issues:["no_menu","no_contact","no_https"], priority:"med", notes:"", selected:false},
{id:7, name:"Narhal Mahal", url:"http://www.indianrestaurantnaharmahal.com/", hasSite:true, grade:"B", quality:6, issues:["no_https"], priority:"med", notes:"", selected:false},
{id:8, name:"SALU Grill & Wine", url:"https://salu-restaurant.com/", hasSite:true, grade:"B", quality:6, issues:["no_contact"], priority:"med", notes:"", selected:false},
{id:9, name:"Asador El Quebracho", url:"http://asadorelquebracho.es/", hasSite:true, grade:"B", quality:8, issues:["no_https"], priority:"med", notes:"", selected:false},
{id:10, name:"Pasta Fresca", url:"http://pastafrescabenalmadena.com/", hasSite:true, grade:"B", quality:8, issues:["no_https"], priority:"med", notes:"", selected:false},
{id:11, name:"The Carvery Company", url:"http://www.thecarverycompany.com/", hasSite:true, grade:"B", quality:8, issues:["no_https"], priority:"med", notes:"", selected:false},
{id:12, name:"Restaurante Los Daltabanes", url:"http://www.restaurantelosdelantales.com/", hasSite:true, grade:"B", quality:8, issues:["no_https"], priority:"med", notes:"", selected:false},
{id:13, name:"1TORO Puerto Marina", url:"http://www.restaurantespuertomarina.com/", hasSite:true, grade:"B", quality:8, issues:["no_https"], priority:"med", notes:"", selected:false},
{id:14, name:"Restaurante La Cala", url:"http://www.lacalabenalmadena.com/", hasSite:true, grade:"B", quality:8, issues:["no_https"], priority:"med", notes:"", selected:false},
{id:15, name:"Amigos Torremolinos", url:"https://amigostorrequebrada.com/es/", hasSite:true, grade:"B", quality:8, issues:["no_photos"], priority:"med", notes:"", selected:false},
{id:16, name:"Restaurante La Fuente", url:"https://www.restaurantelafuente.es/", hasSite:true, grade:"A", quality:9, issues:[], priority:"low", notes:"", selected:false},
{id:17, name:"Metro Ristorante", url:"https://es.metroristorante.com/", hasSite:true, grade:"A", quality:9, issues:[], priority:"low", notes:"", selected:false},
{id:18, name:"Restaurante Angostura", url:"https://www.angustorrequebrada.com/", hasSite:true, grade:"A", quality:9, issues:[], priority:"low", notes:"", selected:false},
{id:19, name:"King of Curries", url:"https://www.indianrestaurantkingofcurries.com/", hasSite:true, grade:"A", quality:9, issues:[], priority:"low", notes:"", selected:false},
{id:20, name:"Lila CTREE", url:"https://lilactree.net/", hasSite:true, grade:"A", quality:9, issues:[], priority:"low", notes:"", selected:false},
{id:21, name:"Cinnamon Club", url:"https://cinnamonclubpuertomarina.com/", hasSite:true, grade:"A", quality:9, issues:[], priority:"low", notes:"", selected:false},
{id:22, name:"Bodega Charolais", url:"https://www.bodegacharolais.com/", hasSite:true, grade:"A", quality:9, issues:[], priority:"low", notes:"", selected:false},
{id:23, name:"Arte y Cocina", url:"https://www.arteycocinarestaurant.com/", hasSite:true, grade:"A", quality:9, issues:[], priority:"low", notes:"", selected:false},
{id:24, name:"Indian City", url:"https://www.indiancity.es/", hasSite:true, grade:"A", quality:9, issues:[], priority:"low", notes:"", selected:false},
{id:25, name:"Lime and Lemon", url:"https://www.limeandlemonbenalmadena.com/", hasSite:true, grade:"A", quality:9, issues:[], priority:"low", notes:"", selected:false},
{id:26, name:"La Bodeguita Tapas", url:"https://taperia-la-bodeguita.placejoys.com/", hasSite:true, grade:"A", quality:8, issues:[], priority:"low", notes:"", selected:false},
{id:27, name:"La Mafia", url:"https://lamafia.es/", hasSite:true, grade:"A", quality:8, issues:[], priority:"low", notes:"", selected:false},
{id:28, name:"The Indian Chef", url:"https://www.theindianchefrestaurant.com/", hasSite:true, grade:"A", quality:8, issues:[], priority:"low", notes:"", selected:false},
{id:29, name:"Nirvana Indian", url:"https://www.nirvanaindianrestaurantbenalmadena.com/", hasSite:true, grade:"A", quality:8, issues:[], priority:"low", notes:"", selected:false},
{id:30, name:"Basil Benalmádena", url:"https://www.basilbenalmadena.com/", hasSite:true, grade:"A", quality:8, issues:[], priority:"low", notes:"", selected:false},
{id:31, name:"La Tapería de Benalmádena", url:"https://benalmercado.com/", hasSite:true, grade:"A", quality:8, issues:[], priority:"low", notes:"", selected:false},
{id:32, name:"Cantina Mexicana", url:"https://www.cantinapuertomarina.com/", hasSite:true, grade:"A", quality:8, issues:[], priority:"low", notes:"", selected:false},
{id:33, name:"Gaucho Grill", url:"https://www.gaucho-grill-benalmadena.com/", hasSite:true, grade:"A", quality:8, issues:[], priority:"low", notes:"", selected:false},
{id:34, name:"Cafe Soleil", url:"https://www.cafesoleil.es/", hasSite:true, grade:"A", quality:8, issues:[], priority:"low", notes:"", selected:false},
{id:35, name:"Coast to Coast (C2C)", url:"https://c2cbenalmadena.com/", hasSite:true, grade:"A", quality:8, issues:[], priority:"low", notes:"", selected:false},
{id:36, name:"South Beach Restobar", url:"https://southbeachrestobar.eatbu.com/", hasSite:true, grade:"A", quality:8, issues:[], priority:"low", notes:"", selected:false},
{id:37, name:"La Nueva", url:"https://la-nueva.goto-where.com/", hasSite:false, grade:"F", quality:0, issues:["no official website"], priority:"high", notes:"Las Gaviotas, P.o Maritimo 11, 29630 Benalmadena. TripAdvisor 4.8. Nominated for best new opening.", selected:false},
{id:38, name:"Don Marisquito", url:"https://benalmercado.com/listado/don-marisquito/", hasSite:false, grade:"F", quality:0, issues:["directory listing only"], priority:"med", notes:"TripAdvisor 4.7. No official website found.", selected:false},
{id:39, name:"Jacks Smokehouse", url:"https://benal.jacks-smokehouse.com/", hasSite:true, grade:"C", quality:5, issues:["free weeblyte domain","no contact form"], priority:"med", notes:"American BBQ. benal.jacks-smokehouse.com - free weeblyte subdomain. No proper brand domain.", selected:false},
];
}
let data = loadData();
let currentFilter = 'all';
function saveData() {
localStorage.setItem(STORAGE_KEY, JSON.stringify(data));
}
function saveAll() {
saveData();
const toast = document.getElementById('toast');
toast.textContent = '✅ Saved!';
toast.classList.add('show');
setTimeout(() => { toast.classList.remove('show'); }, 2000);
}
function toggleSite(id) {
const row = data.find(d => d.id === id);
if (row) {
row.hasSite = !row.hasSite;
if (!row.hasSite) {
row.grade = 'F';
row.priority = 'high';
} else {
row.grade = 'B';
row.priority = 'med';
}
}
saveData();
render();
}
function toggleSelect(id) {
const row = data.find(d => d.id === id);
if (row) {
row.selected = !row.selected;
saveData();
render();
}
}
function updateNotes(id, val) {
const row = data.find(d => d.id === id);
if (row) { row.notes = val; saveData(); }
}
function selectAll() {
const visible = data.filter(d => matchesFilter(d, currentFilter));
const allSelected = visible.every(d => d.selected);
visible.forEach(d => d.selected = !allSelected);
saveData();
render();
}
function matchesFilter(row, filter) {
if (filter === 'all') return true;
if (filter === 'hot') return row.grade === 'F' || row.grade === 'D';
if (filter === 'warm') return row.grade === 'B' || row.grade === 'C';
if (filter === 'good') return row.grade === 'A';
if (filter === 'nosite') return !row.hasSite;
if (filter === 'contact') return row.selected;
return true;
}
function showTab(tab, event) {
currentFilter = tab;
document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
if (event && event.target) event.target.classList.add('active');
const tableView = document.getElementById('table-view');
const demosView = document.getElementById('demos-view');
if (tab === 'demos') {
tableView.style.display = 'none';
demosView.style.display = 'block';
renderDemos();
} else {
tableView.style.display = 'block';
demosView.style.display = 'none';
render();
}
}
function getGradeClass(grade) {
return 'grade ' + grade;
}
function getPriorityClass(p) {
if (p === 'high') return 'priority high';
if (p === 'med') return 'priority med';
return 'priority low';
}
function getPriorityLabel(p) {
if (p === 'high') return '🔥 HIGH';
if (p === 'med') return 'Medium';
return 'Low';
}
function render() {
const tbody = document.getElementById('table-body');
const filtered = data.filter(d => matchesFilter(d, currentFilter));
tbody.innerHTML = filtered.map(row => `
<tr class="${row.selected ? 'selected' : ''}">
<td>
<input type="checkbox" class="row-checkbox"
${row.selected ? 'checked' : ''}
onchange="toggleSelect(${row.id})">
</td>
<td><span class="${getGradeClass(row.grade)}">${row.grade}</span></td>
<td><strong>${row.name}</strong></td>
<td><a class="website" href="${row.url}" target="_blank">${row.url.replace('https://','').replace('http://','')}</a></td>
<td>
<div class="toggle-group">
<label class="toggle">
<input type="checkbox" ${row.hasSite ? 'checked' : ''} onchange="toggleSite(${row.id})">
<span class="toggle-slider"></span>
</label>
<span class="toggle-label">${row.hasSite ? 'Yes' : 'No'}</span>
</div>
</td>
<td>${row.quality}/10</td>
<td><span class="${getPriorityClass(row.priority)}">${getPriorityLabel(row.priority)}</span></td>
<td>
<div class="issues">
${row.issues.length > 0 ? row.issues.map(i => `<span class="issue">${i}</span>`).join('') : '<span style="color:var(--text-muted);font-size:0.7rem;">—</span>'}
</div>
</td>
<td>
<input class="notes-input" type="text" value="${row.notes || ''}"
placeholder="Add note..."
onchange="updateNotes(${row.id}, this.value)">
</td>
<td>
<div class="actions">
${row.grade !== 'A' ? `<a href="/demos/ristorante/casaalberto/" class="btn btn-primary" target="_blank">Demo</a>` : ''}
${row.grade === 'F' ? `<button class="btn btn-danger btn-sm" onclick="markNoSite(${row.id})">❌ No Site</button>` : ''}
</div>
</td>
</tr>
`).join('');
// Update stats
const fCount = data.filter(d => d.grade === 'F').length;
const cdCount = data.filter(d => d.grade === 'C' || d.grade === 'D').length;
const abCount = data.filter(d => d.grade === 'A' || d.grade === 'B').length;
const selCount = data.filter(d => d.selected).length;
const noSiteCount = data.filter(d => !d.hasSite).length;
document.getElementById('stat-f').textContent = fCount;
document.getElementById('stat-cd').textContent = cdCount;
document.getElementById('stat-ab').textContent = abCount;
document.getElementById('stat-contact').textContent = selCount;
document.getElementById('stat-no-site').textContent = noSiteCount;
document.getElementById('selected-count').textContent = selCount;
document.getElementById('selected-btn-count').textContent = selCount;
document.getElementById('total-count').textContent = data.length;
}
function markNoSite(id) {
const row = data.find(d => d.id === id);
if (row) { row.hasSite = false; row.grade = 'F'; row.priority = 'high'; saveData(); render(); }
}
// ─── DEMO TEMPLATES ───
const demos = [
{
name: 'Trattoria Da Marco — Italian',
type: 'Italian',
desc: 'Wood-fired pizza, pasta, wine list, dark luxury, Fraunces typography',
price: 'From €200 · €30/mo AI extras',
url: '/demos/ristorante/italian/',
status: 'done',
},
{
name: 'The Argentine Grill — Steakhouse',
type: 'Steakhouse',
desc: 'Dark moody, premium cuts, dry-aged beef, Malbec wine list',
price: 'From €250 · €30/mo AI extras',
url: '/demos/ristorante/steakhouse/',
status: 'done',
},
{
name: 'Maharaja Spice — Indian',
type: 'Indian',
desc: 'Rich warm tones, tandoor section, thali specials, butter chicken',
price: 'From €200 · €30/mo AI extras',
url: '/demos/ristorante/indian/',
status: 'done',
},
{
name: 'Kaito Sushi — Japanese',
type: 'Japanese / Omakase',
desc: 'Minimal Japanese aesthetic, horizontal scrolling menu, omakase feature, dark ink tones',
price: 'From €200 · €30/mo AI extras',
url: '/demos/ristorante/sushi/',
status: 'done',
},
{
name: 'Pizzeria da Marco — Pizza',
type: 'Pizza / Casual',
desc: 'Italian flag accent, wood-fired pizza, pasta section, Fraunces typography',
price: 'From €150 · €30/mo AI extras',
url: '/demos/ristorante/pizza/',
status: 'done',
}
];
function renderDemos() {
const grid = document.getElementById('demos-grid');
grid.innerHTML = demos.map(d => `
<div class="demo-card">
<div class="demo-preview">
${d.preview ? `<img src="${d.preview}" alt="${d.name}">` : `<span class="demo-label">${d.type}</span>`}
</div>
<div class="demo-info">
<div class="demo-name">${d.name}</div>
<span class="demo-status ${d.status === 'done' ? 'done' : 'building'}">${d.status === 'done' ? '✅ Live' : '🚧 Building'}</span>
<div class="demo-desc">${d.desc}</div>
<div class="demo-price">${d.price}</div>
${d.url !== '#' ? `<a href="${d.url}" class="btn btn-primary" target="_blank">View Demo</a>` : `<button class="btn btn-outline" disabled>Coming Soon</button>`}
</div>
</div>
`).join('');
}
// Initial render
render();
</script>
</body>
</html>