Files
ai-gift-planner-mockup/gift.html
Norbert Maciaszek 69069587c5 make more AI
2025-12-28 21:24:48 +01:00

374 lines
26 KiB
HTML

<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Szczegóły Prezentu (Premium) - 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="updates.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="bell"></i> Aktualizacje
</a>
<a href="global-holidays.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="globe"></i> Święta
</a>
<a href="inspirations.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="sparkles"></i> Inspiracje
</a>
<a href="search.html" class="flex items-center gap-3 px-4 py-3 text-gray-600 hover:bg-gray-50 rounded-xl transition-colors group">
<i data-lucide="search" class="group-hover:text-indigo-600 transition-colors"></i> Wyszukiwarka
<span class="ml-auto bg-indigo-100 text-indigo-600 text-[8px] px-1.5 py-0.5 rounded font-black uppercase">AI</span>
</a>
<a href="blog.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="book-open"></i> Poradniki
</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>
<div class="p-4 border-t border-gray-100">
<a href="settings.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="settings"></i> Ustawienia
</a>
<div class="flex items-center gap-3 p-4 mt-2">
<div class="w-10 h-10 rounded-full bg-gradient-to-br from-indigo-100 to-purple-100 flex items-center justify-center text-indigo-600 font-bold">
NK
</div>
<div class="flex-1 overflow-hidden">
<p class="text-sm font-semibold truncate">Norbert K.</p>
<div class="flex items-center gap-1">
<i data-lucide="zap" class="w-2.5 h-2.5 text-yellow-500 fill-yellow-500"></i>
<p class="text-[10px] font-bold text-gray-500 uppercase">120 PKT</p>
</div>
</div>
</div>
</div>
</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 Column: Planning Info -->
<div class="lg:col-span-2 space-y-8">
<!-- Planning Record Header -->
<section class="bg-indigo-900 rounded-[2.5rem] p-8 shadow-2xl relative overflow-hidden text-white">
<div class="relative z-10">
<div class="flex items-center gap-2 mb-4">
<span class="bg-indigo-500 text-[10px] font-black px-3 py-1 rounded-full uppercase tracking-widest">Planowanie Prezentu #1024</span>
<span class="bg-emerald-500 text-white text-[10px] font-black px-3 py-1 rounded-full uppercase tracking-widest border border-emerald-400">Oszczędzanie Aktywne</span>
</div>
<h2 class="text-3xl font-black mb-6">Sage Barista Express dla: Mama</h2>
<div class="flex flex-wrap gap-8 items-center mb-8">
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-full bg-white/10 flex items-center justify-center border border-white/20"><i data-lucide="calendar"></i></div>
<div>
<p class="text-[10px] text-indigo-300 font-bold uppercase">Okazja</p>
<p class="text-sm font-black">Boże Narodzenie 2025</p>
</div>
</div>
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-full bg-white/10 flex items-center justify-center border border-white/20"><i data-lucide="wallet"></i></div>
<div>
<p class="text-[10px] text-indigo-300 font-bold uppercase">Budżet na osobę</p>
<p class="text-sm font-black">1 200 PLN</p>
</div>
</div>
</div>
<div class="flex gap-4">
<button class="bg-white text-indigo-900 px-6 py-3 rounded-2xl font-bold flex items-center gap-2 hover:bg-indigo-50 transition-all">
<i data-lucide="box"></i> Zarządzaj produktem
</button>
<button class="bg-indigo-800 text-white px-6 py-3 rounded-2xl font-bold border border-indigo-700 hover:bg-indigo-700 transition-all">
Edytuj plan
</button>
</div>
</div>
<i data-lucide="gift" class="absolute -right-10 -bottom-10 w-64 h-64 text-white/5 opacity-10"></i>
</section>
<!-- AI: Uzupełnij Prezent -->
<section class="bg-gradient-to-br from-indigo-900 via-indigo-800 to-indigo-950 rounded-[3rem] p-8 lg:p-10 shadow-2xl relative overflow-hidden border border-indigo-700">
<div class="flex flex-col md:flex-row md:items-center justify-between gap-6 mb-10 relative z-10">
<div class="flex items-center gap-4">
<div class="w-14 h-14 bg-white/10 backdrop-blur-md rounded-2xl flex items-center justify-center text-white border border-white/20">
<i data-lucide="wand-2" class="w-8 h-8"></i>
</div>
<div>
<div class="flex items-center gap-2 mb-1">
<span class="bg-indigo-400/30 text-indigo-100 text-[10px] font-black px-2 py-0.5 rounded uppercase tracking-widest border border-indigo-400/30">AI Power</span>
<h3 class="text-2xl font-black text-white">Uzupełnij prezent</h3>
</div>
<p class="text-indigo-200/80 text-sm font-medium">Dobierz dodatki, które sprawią, że prezent będzie kompletny.</p>
</div>
</div>
<button class="bg-white text-indigo-900 px-6 py-3 rounded-2xl font-black text-xs hover:bg-indigo-50 transition-all flex items-center gap-2 shadow-lg">
ODŚWIEŻ SUGESTIE <span class="bg-indigo-100 text-indigo-600 px-2 py-0.5 rounded">-3 <i data-lucide="zap" class="w-3 h-3 inline fill-indigo-600"></i></span>
</button>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-6 relative z-10">
<div class="bg-white/5 backdrop-blur-sm rounded-[2.5rem] p-5 border border-white/10 hover:bg-white/10 transition-all group flex items-center gap-5">
<div class="w-24 h-24 bg-white rounded-3xl overflow-hidden shrink-0 shadow-xl">
<img src="https://images.unsplash.com/photo-1559056191-4917a3bc9404?auto=format&fit=crop&q=80&w=200" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<p class="text-[10px] font-black text-indigo-300 uppercase tracking-widest mb-1">Kawa Specialty</p>
<h4 class="font-black text-white mb-2 leading-tight">Ethiopia 250g</h4>
<div class="flex items-center justify-between">
<span class="text-lg font-black text-white">59 PLN</span>
<button class="w-10 h-10 bg-indigo-500 text-white rounded-xl flex items-center justify-center hover:bg-indigo-400 transition-all">
<i data-lucide="plus" class="w-5 h-5"></i>
</button>
</div>
</div>
</div>
<div class="bg-white/5 backdrop-blur-sm rounded-[2.5rem] p-5 border border-white/10 hover:bg-white/10 transition-all group flex items-center gap-5">
<div class="w-24 h-24 bg-white rounded-3xl overflow-hidden shrink-0 shadow-xl">
<img src="https://images.unsplash.com/photo-1579227114347-15d08fc37cae?auto=format&fit=crop&q=80&w=200" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<p class="text-[10px] font-black text-indigo-300 uppercase tracking-widest mb-1">Akcesorium</p>
<h4 class="font-black text-white mb-2 leading-tight">Dzbanek Rhino</h4>
<div class="flex items-center justify-between">
<span class="text-lg font-black text-white">120 PLN</span>
<button class="w-10 h-10 bg-indigo-500 text-white rounded-xl flex items-center justify-center hover:bg-indigo-400 transition-all">
<i data-lucide="plus" class="w-5 h-5"></i>
</button>
</div>
</div>
</div>
</div>
</section>
<!-- Personal Notes -->
<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 flex items-center gap-2">
<i data-lucide="sticky-note" class="text-indigo-600"></i> Twoje Notatki i Planowanie
</h3>
<div class="space-y-6">
<div class="p-6 bg-gray-50 rounded-3xl border border-gray-100">
<p class="text-sm text-gray-600 italic leading-relaxed">"Mówiła, że jej stary ekspres już ledwo zipie. Ten ma wbudowany młynek, na pewno jej się spodoba! Kolor Brushed Stainless Steel pasuje do kuchni."</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div class="p-4 bg-white rounded-2xl border border-gray-100 flex items-center justify-between">
<span class="text-xs font-bold text-gray-500">Sklep zakupu</span>
<span class="text-xs font-black text-indigo-600">Media Expert</span>
</div>
<div class="p-4 bg-white rounded-2xl border border-gray-100 flex items-center justify-between">
<span class="text-xs font-bold text-gray-500">Numer zamówienia</span>
<span class="text-xs font-black text-gray-900">#ME-12345/ABC</span>
</div>
</div>
</div>
</section>
<!-- Feedback Loop -->
<section class="bg-gradient-to-br from-purple-50 to-white rounded-[2.5rem] p-8 shadow-sm border border-purple-100">
<div class="flex items-center justify-between mb-6">
<h3 class="text-xl font-black text-gray-900 flex items-center gap-2">
<i data-lucide="message-square-heart" class="text-purple-600"></i> Feedback i Efekt Prezentu
</h3>
<span class="bg-purple-100 text-purple-700 text-[10px] font-black px-2 py-1 rounded-lg uppercase">Po wręczeniu</span>
</div>
<div class="space-y-6">
<div>
<label class="block text-[10px] font-black text-gray-400 uppercase tracking-widest mb-3 ml-1">Jak bardzo się podobało?</label>
<div class="flex gap-2">
<button class="w-12 h-12 rounded-2xl bg-white border-2 border-purple-200 flex items-center justify-center text-purple-600 hover:bg-purple-600 hover:text-white transition-all shadow-sm">
<i data-lucide="star" class="w-6 h-6"></i>
</button>
<button class="w-12 h-12 rounded-2xl bg-white border-2 border-purple-200 flex items-center justify-center text-purple-600 hover:bg-purple-600 hover:text-white transition-all shadow-sm">
<i data-lucide="star" class="w-6 h-6"></i>
</button>
<button class="w-12 h-12 rounded-2xl bg-white border-2 border-purple-200 flex items-center justify-center text-purple-600 hover:bg-purple-600 hover:text-white transition-all shadow-sm">
<i data-lucide="star" class="w-6 h-6"></i>
</button>
<button class="w-12 h-12 rounded-2xl bg-purple-600 border-2 border-purple-600 flex items-center justify-center text-white shadow-lg shadow-purple-100">
<i data-lucide="star" class="w-6 h-6 fill-current"></i>
</button>
<button class="w-12 h-12 rounded-2xl bg-white border-2 border-purple-200 flex items-center justify-center text-purple-200">
<i data-lucide="star" class="w-6 h-6"></i>
</button>
</div>
</div>
<div>
<label class="block text-[10px] font-black text-gray-400 uppercase tracking-widest mb-2 ml-1">Notatka zwrotna</label>
<textarea placeholder="Np. 'Ekspres super, ale kolor mógłby być ciemniejszy'..." class="w-full px-5 py-4 bg-white border border-purple-100 rounded-3xl focus:ring-2 focus:ring-purple-500 outline-none transition-all text-sm font-medium text-gray-700 min-h-[100px] shadow-inner"></textarea>
</div>
<button class="w-full bg-purple-600 text-white py-4 rounded-2xl font-black shadow-xl shadow-purple-200 hover:bg-purple-700 transition-all flex items-center justify-center gap-2">
<i data-lucide="save"></i> Zapisz feedback
</button>
</div>
</section>
<!-- Price Info in Plan -->
<section class="bg-white rounded-[2.5rem] p-8 shadow-sm border border-gray-100">
<div class="flex items-center justify-between mb-8">
<h3 class="text-xl font-black text-gray-900">Analiza ceny w Twoim planie</h3>
<a href="#" class="text-xs font-bold text-indigo-600 hover:underline">Pełna historia produktu</a>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="p-6 bg-indigo-50 rounded-3xl border border-indigo-100">
<p class="text-[10px] text-indigo-400 font-black uppercase mb-1">Cena Twojego zakupu</p>
<p class="text-2xl font-black text-indigo-900 leading-none">2 499 PLN</p>
</div>
<div class="p-6 bg-green-50 rounded-3xl border border-green-100">
<p class="text-[10px] text-green-400 font-black uppercase mb-1">Obecna cena rynkowa</p>
<p class="text-2xl font-black text-green-600 leading-none">2 489 PLN</p>
</div>
<div class="p-6 bg-gray-50 rounded-3xl border border-gray-100">
<p class="text-[10px] text-gray-400 font-black uppercase mb-1">Różnica</p>
<p class="text-2xl font-black text-gray-400 leading-none">+10 PLN</p>
</div>
</div>
</section>
</div>
<!-- Right Column -->
<div class="space-y-8">
<!-- Premium Price Card (Ceneo) -->
<section class="bg-white rounded-[2.5rem] p-8 shadow-sm border border-emerald-100 relative">
<div class="absolute -top-3 left-8 bg-emerald-500 text-white text-[10px] font-black px-3 py-1 rounded-full uppercase tracking-widest border-4 border-white shadow-sm">
Monitorowanie Aktywne
</div>
<div class="flex items-center justify-between mb-6 pt-2">
<p class="text-[10px] font-black text-gray-400 uppercase tracking-widest">Najlepsza Cena (Ceneo)</p>
<span class="text-green-600 text-[10px] font-black flex items-center">
<i data-lucide="trending-down" class="w-3 h-3 mr-1"></i> -120 PLN Dziś!
</span>
</div>
<div class="flex items-end gap-3 mb-6">
<h3 class="text-4xl font-black text-gray-900 leading-none">2 499 PLN</h3>
</div>
<div class="h-48 mb-6">
<canvas id="giftPriceChart"></canvas>
</div>
<div class="space-y-3 mb-6">
<div class="p-4 bg-gray-50 rounded-2xl border border-gray-100 flex items-center justify-between">
<p class="text-xs font-bold text-gray-500">Najwyższa (30 dni)</p>
<p class="text-sm font-black text-gray-900">2 650 PLN</p>
</div>
<div class="p-4 bg-gray-50 rounded-2xl border border-gray-100 flex items-center justify-between">
<p class="text-xs font-bold text-gray-500">Najniższa (30 dni)</p>
<p class="text-sm font-black text-green-600">2 489 PLN</p>
</div>
</div>
<button class="w-full flex items-center justify-center gap-2 py-4 bg-emerald-600 text-white font-black rounded-2xl shadow-xl shadow-emerald-100 hover:bg-emerald-700 transition-all">
<i data-lucide="bell-off" class="w-5 h-5"></i> WYŁĄCZ ALERT CENOWY
</button>
</section>
<!-- Status History -->
<section class="bg-white rounded-[2.5rem] p-8 shadow-sm border border-gray-100">
<h4 class="text-[10px] font-black text-gray-400 uppercase tracking-widest mb-6">Historia Statusu</h4>
<div class="space-y-6 relative before:absolute before:left-3 before:top-2 before:bottom-2 before:w-0.5 before:bg-gray-100">
<div class="relative pl-10">
<div class="absolute left-0 top-1 w-6 h-6 bg-green-500 rounded-full border-4 border-white shadow-sm flex items-center justify-center">
<i data-lucide="check" class="w-3 h-3 text-white"></i>
</div>
<p class="text-xs font-black text-gray-900">Kupiony</p>
<p class="text-[10px] text-gray-400 font-medium">12 Grudnia 2025, 14:20</p>
</div>
<div class="relative pl-10">
<div class="absolute left-0 top-1 w-6 h-6 bg-indigo-500 rounded-full border-4 border-white shadow-sm flex items-center justify-center">
<i data-lucide="mouse-pointer-2" class="w-3 h-3 text-white"></i>
</div>
<p class="text-xs font-black text-gray-900">Wybrany</p>
<p class="text-[10px] text-gray-400 font-medium">08 Grudnia 2025, 09:15</p>
</div>
<div class="relative pl-10 opacity-40">
<div class="absolute left-0 top-1 w-6 h-6 bg-gray-200 rounded-full border-4 border-white shadow-sm"></div>
<p class="text-xs font-black text-gray-900">Idea dodana</p>
<p class="text-[10px] text-gray-400 font-medium">01 Grudnia 2025</p>
</div>
</div>
</section>
</div>
</div>
</main>
</div>
<!-- Chart Script -->
<script>
lucide.createIcons();
const ctx = document.getElementById('giftPriceChart').getContext('2d');
new Chart(ctx, {
type: 'line',
data: {
labels: ['1', '5', '10', '15', '20', '25', '30'],
datasets: [{
label: 'Cena',
data: [2650, 2600, 2650, 2550, 2500, 2499, 2499],
borderColor: '#10b981',
borderWidth: 4,
tension: 0.4,
pointRadius: 4,
pointBackgroundColor: '#fff',
pointBorderColor: '#10b981',
pointBorderWidth: 2,
fill: true,
backgroundColor: (context) => {
const gradient = context.chart.ctx.createLinearGradient(0, 0, 0, 200);
gradient.addColorStop(0, 'rgba(16, 185, 129, 0.1)');
gradient.addColorStop(1, 'rgba(16, 185, 129, 0)');
return gradient;
}
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: { legend: { display: false } },
scales: {
x: { grid: { display: false }, ticks: { font: { size: 9, weight: 'bold' }, color: '#94a3b8' } },
y: {
display: true,
grid: { color: '#f8fafc' },
border: { display: false },
ticks: { font: { size: 9, weight: 'bold' }, color: '#94a3b8' }
}
}
}
});
</script>
</body>
</html>