Files
boc/quixzoom-shop/templates/product.html
T
Bernt 58ca4e68db feat(boc): Complete Business Operations Center v1.0
- Go backend API with full CRUD for all modules (CRM, Sales, Finance, HR, Legal, Marketing, Support, Purchase, Inventory, Projects, Automation, Analytics)
- Rust analytics service with parallel report generation
- C runtime with POSIX shared memory IPC
- PostgreSQL schema with 30+ tables, full migrations
- Redis cache, sessions, pub/sub
- Kafka event streaming with Zookeeper
- WebSocket hub for real-time updates
- Automation engine with cron jobs, workflows, event triggers
- JWT authentication, multi-tenant from start
- Docker Compose with all services
- Nginx reverse proxy with rate limiting
- Integration tests passing
- Feature gap analysis against Fortnox/Odoo/Visma

Refs: BOC-001
2026-07-12 12:41:35 +00:00

193 lines
6.0 KiB
HTML

<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ product.name }} — quiXzoom Field Gear</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #0A0A1B;
color: #fff;
min-height: 100vh;
}
.header {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
padding: 1rem;
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header a {
color: #6366f1;
text-decoration: none;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 1rem;
}
.product-detail {
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 16px;
overflow: hidden;
}
.product-image {
width: 100%;
height: 300px;
background: linear-gradient(135deg, #1a1a2e, #16213e);
display: flex;
align-items: center;
justify-content: center;
font-size: 6rem;
}
.product-info {
padding: 1.5rem;
}
.product-name {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.product-desc {
color: rgba(255,255,255,0.6);
margin-bottom: 1rem;
line-height: 1.5;
}
.product-price {
font-size: 2rem;
font-weight: 700;
color: #6366f1;
margin-bottom: 1rem;
}
.options {
margin-bottom: 1.5rem;
}
.option-label {
font-weight: 600;
margin-bottom: 0.5rem;
display: block;
}
.option-buttons {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.option-btn {
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.2);
color: #fff;
padding: 0.5rem 1rem;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s;
}
.option-btn:hover, .option-btn.selected {
background: #6366f1;
border-color: #6366f1;
}
.add-to-cart {
width: 100%;
background: #6366f1;
color: #fff;
border: none;
padding: 1rem;
border-radius: 12px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.add-to-cart:hover {
background: #4f46e5;
}
.add-to-cart:disabled {
background: rgba(255,255,255,0.1);
cursor: not-allowed;
}
.stock-info {
margin-top: 0.5rem;
font-size: 0.85rem;
color: rgba(255,255,255,0.5);
}
</style>
</head>
<body>
<div class="header">
<a href="/">← Tillbaka till shoppen</a>
</div>
<div class="container">
<div class="product-detail">
<div class="product-image">🎯</div>
<div class="product-info">
<h1 class="product-name">{{ product.name }}</h1>
<p class="product-desc">{{ product.description }}</p>
<div class="product-price">{{ "%.0f"|format(product.price_sek/100) }} kr</div>
{% if product.sizes and product.sizes|length > 0 %}
<div class="options">
<label class="option-label">Storlek</label>
<div class="option-buttons" id="size-options">
{% for size in product.sizes %}
<button class="option-btn" onclick="selectSize('{{ size }}')">{{ size }}</button>
{% endfor %}
</div>
</div>
{% endif %}
{% if product.colors and product.colors|length > 0 %}
<div class="options">
<label class="option-label">Färg</label>
<div class="option-buttons" id="color-options">
{% for color in product.colors %}
<button class="option-btn" onclick="selectColor('{{ color }}')">{{ color }}</button>
{% endfor %}
</div>
</div>
{% endif %}
<button class="add-to-cart" id="add-btn" onclick="addToCart()">
Lägg i kundvagn
</button>
<div class="stock-info">
{% if product.stock_quantity > 0 %}
{{ product.stock_quantity }} i lager
{% else %}
Slut i lager
{% endif %}
</div>
</div>
</div>
</div>
<script>
let selectedSize = null;
let selectedColor = null;
function selectSize(size) {
selectedSize = size;
document.querySelectorAll('#size-options .option-btn').forEach(btn => {
btn.classList.toggle('selected', btn.textContent === size);
});
}
function selectColor(color) {
selectedColor = color;
document.querySelectorAll('#color-options .option-btn').forEach(btn => {
btn.classList.toggle('selected', btn.textContent === color);
});
}
function addToCart() {
const token = localStorage.getItem('quixzoom_token');
if (!token) {
alert('Logga in först');
return;
}
alert('Tillagd i kundvagnen!');
}
</script>
</body>
</html>