add first mockup

This commit is contained in:
Norbert Maciaszek
2025-12-26 23:13:35 +01:00
parent 0be01758e3
commit 0357cf2eb7
19 changed files with 3599 additions and 0 deletions

213
product.html Normal file
View File

@@ -0,0 +1,213 @@
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Produkt: Ekspres Sage Barista - Gift Planner</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="styles.css">
<script src="https://unpkg.com/lucide@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="main.js" defer></script>
</head>
<body class="bg-gray-50 min-h-screen">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<aside class="w-64 bg-white border-r border-gray-200 hidden lg:flex flex-col">
<div class="p-6 flex items-center gap-3">
<div class="w-10 h-10 gradient-bg rounded-xl flex items-center justify-center text-white">
<i data-lucide="gift"></i>
</div>
<h1 class="text-xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-indigo-600 to-purple-600">Gift Planner</h1>
</div>
<nav class="flex-1 px-4 py-4 space-y-2">
<a href="dashboard.html" class="flex items-center gap-3 px-4 py-3 text-gray-600 hover:bg-gray-50 rounded-xl transition-colors">
<i data-lucide="layout-dashboard"></i> Dashboard
</a>
<a href="occasions.html" class="flex items-center gap-3 px-4 py-3 text-gray-600 hover:bg-gray-50 rounded-xl transition-colors">
<i data-lucide="calendar"></i> Okazje
</a>
<a href="persons.html" class="flex items-center gap-3 px-4 py-3 text-gray-600 hover:bg-gray-50 rounded-xl transition-colors">
<i data-lucide="users"></i> Osoby
</a>
<a href="budget.html" class="flex items-center gap-3 px-4 py-3 text-gray-600 hover:bg-gray-50 rounded-xl transition-colors">
<i data-lucide="wallet"></i> Budżet
</a>
</nav>
</aside>
<!-- Main Content -->
<main class="flex-1 overflow-y-auto bg-gray-50 p-4 lg:p-8">
<button onclick="window.history.back()" class="flex items-center gap-2 text-gray-500 hover:text-indigo-600 transition-colors mb-6 font-medium">
<i data-lucide="arrow-left" class="w-4 h-4"></i> Powrót
</button>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
<!-- Left: Product Master Info -->
<div class="lg:col-span-2 space-y-8">
<section class="bg-white rounded-[2.5rem] p-8 shadow-sm border border-gray-100">
<div class="flex flex-col md:flex-row gap-8">
<div class="w-full md:w-72 h-72 bg-gray-50 rounded-[2rem] overflow-hidden shrink-0 shadow-inner">
<img src="https://images.unsplash.com/photo-1517668808822-9ebb02f2a0e6?auto=format&fit=crop&q=80&w=800" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<span class="bg-indigo-100 text-indigo-700 text-[10px] font-black px-3 py-1 rounded-full uppercase tracking-widest mb-4 inline-block">Karta Produktu</span>
<h2 class="text-4xl font-black text-gray-900 mb-2 leading-tight">Ekspres kolbowy Sage Barista Express BES875</h2>
<p class="text-gray-400 font-bold mb-6 italic">EAN: 9312432021678 | SKU: Sage-BES875</p>
<div class="flex flex-wrap gap-2 mb-8">
<span class="px-4 py-2 bg-gray-50 rounded-xl text-xs font-bold text-gray-600">Kuchnia</span>
<span class="px-4 py-2 bg-gray-50 rounded-xl text-xs font-bold text-gray-600">Kawa</span>
<span class="px-4 py-2 bg-gray-50 rounded-xl text-xs font-bold text-gray-600">Premium</span>
<span class="px-4 py-2 bg-gray-50 rounded-xl text-xs font-bold text-gray-600">AGD</span>
</div>
<div class="flex gap-4">
<button class="flex-1 gradient-bg text-white py-4 rounded-2xl font-bold shadow-xl shadow-indigo-100 flex items-center justify-center gap-2">
<i data-lucide="plus-circle"></i> Zaplanuj ten prezent
</button>
<button class="p-4 bg-gray-50 text-gray-400 rounded-2xl hover:text-indigo-600 transition-colors">
<i data-lucide="share-2"></i>
</button>
</div>
</div>
</div>
</section>
<!-- Product Specs & Description -->
<section class="bg-white rounded-[2.5rem] p-8 shadow-sm border border-gray-100">
<h3 class="text-xl font-black text-gray-900 mb-6">Opis produktu</h3>
<div class="prose prose-indigo max-w-none text-gray-600 text-sm leading-relaxed mb-8">
<p>Sage Barista Express to wysokiej jakości ekspres kolbowy z wbudowanym młynkiem stożkowym. Pozwala na przejście od ziarna do filiżanki espresso w mniej niż minutę. Idealny dla miłośników kawy, którzy chcą mieć pełną kontrolę nad procesem parzenia.</p>
<ul class="list-disc pl-5 mt-4 space-y-2">
<li>Wbudowany młynek z 16 stopniami mielenia</li>
<li>System ogrzewania Thermocoil</li>
<li>Dysza do spieniania mleka</li>
<li>Zbiornik na wodę o pojemności 2 litrów</li>
</ul>
</div>
<h3 class="text-xl font-black text-gray-900 mb-6">Występuje w Twoich planach (3)</h3>
<div class="space-y-3">
<a href="gift.html" class="flex items-center justify-between p-4 bg-gray-50 rounded-2xl border border-gray-100 hover:border-indigo-200 transition-all group">
<div class="flex items-center gap-3">
<img src="https://ui-avatars.com/api/?name=Mama&background=random" class="w-8 h-8 rounded-full">
<div>
<p class="text-sm font-bold text-gray-900">Prezent dla Mamy</p>
<p class="text-[10px] text-gray-400 font-bold">Okazja: Boże Narodzenie 2025</p>
</div>
</div>
<span class="bg-green-100 text-green-700 text-[10px] font-black px-2 py-0.5 rounded-full">KUPIONY</span>
</a>
<div class="flex items-center justify-between p-4 bg-gray-50 rounded-2xl border border-gray-100">
<div class="flex items-center gap-3">
<img src="https://ui-avatars.com/api/?name=Tata&background=random" class="w-8 h-8 rounded-full opacity-50">
<div>
<p class="text-sm font-bold text-gray-400">Pomysł dla Taty (Odrzucony)</p>
<p class="text-[10px] text-gray-300 font-bold text-gray-300">Okazja: Urodziny</p>
</div>
</div>
<span class="bg-gray-200 text-gray-500 text-[10px] font-black px-2 py-0.5 rounded-full">IDEA</span>
</div>
</div>
</section>
</div>
<!-- Right: Global Price Analysis -->
<div class="space-y-8">
<section class="bg-white rounded-[2.5rem] p-8 shadow-sm border border-gray-100">
<div class="flex items-start justify-between mb-2">
<p class="text-[10px] font-black text-gray-400 uppercase tracking-widest">Najniższa cena Ceneo</p>
<span class="text-green-600 bg-green-50 px-2 py-0.5 rounded-md text-[10px] font-black underline cursor-pointer">OKAZJA!</span>
</div>
<h3 class="text-4xl font-black text-gray-900 mb-6">2 489 PLN</h3>
<div class="h-48 mb-6">
<canvas id="masterPriceChart"></canvas>
</div>
<div class="grid grid-cols-2 gap-3 mb-6">
<div class="p-4 bg-gray-50 rounded-2xl border border-gray-100">
<p class="text-[10px] text-gray-400 font-black uppercase mb-1">Max 1y</p>
<p class="text-sm font-black">2 799 PLN</p>
</div>
<div class="p-4 bg-gray-50 rounded-2xl border border-gray-100">
<p class="text-[10px] text-gray-400 font-black uppercase mb-1">Min 1y</p>
<p class="text-sm font-black text-green-600">2 399 PLN</p>
</div>
</div>
<a href="https://ceneo.pl" target="_blank" class="w-full flex items-center justify-center gap-2 py-4 bg-indigo-600 text-white font-bold rounded-2xl shadow-xl shadow-indigo-100 hover:opacity-90 transition-all">
Pokaż oferty w sklepach <i data-lucide="external-link" class="w-4 h-4"></i>
</a>
</section>
<section class="bg-white rounded-[2.5rem] p-8 shadow-sm border border-gray-100">
<h4 class="text-sm font-black text-gray-900 mb-4">Gdzie kupić najtaniej?</h4>
<div class="space-y-4">
<div class="flex items-center justify-between">
<div class="flex items-center gap-3">
<div class="w-8 h-8 rounded-lg bg-red-600 text-white flex items-center justify-center text-[10px] font-black">Media</div>
<span class="text-xs font-bold text-gray-700">Media Expert</span>
</div>
<span class="text-xs font-black text-gray-900">2 489 PLN</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center gap-3">
<div class="w-8 h-8 rounded-lg bg-orange-500 text-white flex items-center justify-center text-[10px] font-black">Euro</div>
<span class="text-xs font-bold text-gray-700">RTV Euro AGD</span>
</div>
<span class="text-xs font-black text-gray-900">2 499 PLN</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center gap-3">
<div class="w-8 h-8 rounded-lg bg-pink-600 text-white flex items-center justify-center text-[10px] font-black">Allegro</div>
<span class="text-xs font-bold text-gray-700">Allegro</span>
</div>
<span class="text-xs font-black text-gray-900">2 510 PLN</span>
</div>
</div>
</section>
</div>
</div>
</main>
</div>
<script>
lucide.createIcons();
const ctx = document.getElementById('masterPriceChart').getContext('2d');
new Chart(ctx, {
type: 'line',
data: {
labels: ['Sty', 'Mar', 'Maj', 'Lip', 'Wrze', 'List', 'Gru'],
datasets: [{
label: 'Cena średnia',
data: [2700, 2650, 2580, 2600, 2550, 2400, 2489],
borderColor: '#6366f1',
borderWidth: 4,
tension: 0.4,
pointRadius: 0,
fill: true,
backgroundColor: (context) => {
const gradient = context.chart.ctx.createLinearGradient(0, 0, 0, 200);
gradient.addColorStop(0, 'rgba(99, 102, 241, 0.1)');
gradient.addColorStop(1, 'rgba(99, 102, 241, 0)');
return gradient;
}
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: { legend: { display: false } },
scales: {
x: { grid: { display: false }, ticks: { font: { size: 10, weight: 'bold' }, color: '#94a3b8' } },
y: { grid: { color: '#f8fafc' }, ticks: { font: { size: 10, weight: 'bold' }, color: '#94a3b8' } }
}
}
});
</script>
</body>
</html>