Files
ai-gift-planner-mockup/occasion-ai.html
Norbert Maciaszek cb459990a2 update ui sidebar
2025-12-28 23:05:41 +01:00

250 lines
17 KiB
HTML

<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI - Gift Planner</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="styles.css">
<script src="https://unpkg.com/lucide@latest"></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 shadow-lg shadow-indigo-200">
<i data-lucide="gift" class="text-white w-6 h-6"></i>
</div>
<span class="text-xl font-black tracking-tighter">GIFT<span class="text-indigo-600">PLANNER</span></span>
</div>
<nav class="flex-1 px-4 py-4 space-y-1">
<a href="dashboard.html" class="flex items-center gap-3 px-4 py-3 bg-indigo-50 text-indigo-600 rounded-2xl transition-all font-bold text-sm">
<i data-lucide="layout-dashboard" class="w-5 h-5"></i> Dashboard
</a>
<a href="updates.html" class="flex items-center gap-3 px-4 py-3 text-gray-500 hover:bg-indigo-50 rounded-2xl transition-all font-bold text-sm">
<i data-lucide="bell" class="w-5 h-5"></i> Powiadomienia
</a>
<a href="occasions.html" class="flex items-center gap-3 px-4 py-3 text-gray-500 hover:bg-indigo-50 rounded-2xl transition-all font-bold text-sm">
<i data-lucide="calendar" class="w-5 h-5"></i> Okazje
</a>
<a href="persons.html" class="flex items-center gap-3 px-4 py-3 text-gray-500 hover:bg-indigo-50 rounded-2xl transition-all font-bold text-sm">
<i data-lucide="users" class="w-5 h-5"></i> Osoby
</a>
<a href="notes.html" class="flex items-center gap-3 px-4 py-3 text-gray-500 hover:bg-indigo-50 rounded-2xl transition-all font-bold text-sm">
<i data-lucide="pen-tool" class="w-5 h-5"></i> Notatki
</a>
<div class="pt-4 pb-2 px-4">
<span class="text-[10px] font-black text-gray-400 uppercase tracking-[0.2em]">AI Assistant</span>
</div>
<a href="search.html" class="flex items-center gap-3 px-4 py-3 text-gray-500 hover:bg-indigo-50 rounded-2xl transition-all font-bold text-sm">
<i data-lucide="sparkles" class="w-5 h-5"></i> Wyszukiwarka
</a>
<a href="inspirations.html" class="flex items-center gap-3 px-4 py-3 text-gray-500 hover:bg-indigo-50 rounded-2xl transition-all font-bold text-sm">
<i data-lucide="image" class="w-5 h-5"></i> Inspiracje
</a>
<a href="global-holidays.html" class="flex items-center gap-3 px-4 py-3 text-gray-500 hover:bg-indigo-50 rounded-2xl transition-all font-bold text-sm">
<i data-lucide="globe" class="w-5 h-5"></i> Święta
</a>
<div class="pt-4 pb-2 px-4">
<span class="text-[10px] font-black text-gray-400 uppercase tracking-[0.2em]">Wiedza & Finanse</span>
</div>
<a href="blog.html" class="flex items-center gap-3 px-4 py-3 text-gray-500 hover:bg-indigo-50 rounded-2xl transition-all font-bold text-sm group">
<i data-lucide="book-open" class="w-5 h-5"></i> Poradniki
</a>
<a href="budget.html" class="flex items-center gap-3 px-4 py-3 text-gray-500 hover:bg-indigo-50 rounded-2xl transition-all font-bold text-sm group">
<i data-lucide="wallet" class="w-5 h-5"></i> Budżet
</a>
</nav>
<div class="mt-auto p-6">
<a href="/settings.html">
<div class="bg-gray-50 rounded-3xl p-4">
<div class="flex items-center gap-3">
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600 font-bold text-xs">A</div>
<div class="flex flex-col">
<span class="text-xs font-bold">Adam Kowalski</span>
<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 Tokenów</p>
</div>
</div>
</div>
</div>
</a>
</div>
</aside>
<!-- Main Content -->
<main class="flex-1 overflow-y-auto bg-gray-50 p-4 lg:p-8 pb-24 md:pb-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>
<!-- Header -->
<div class="mb-8">
<h2 class="text-3xl font-black text-gray-900 leading-tight">Boże Narodzenie 2025</h2>
<div class="flex items-center gap-4 mt-2">
<span class="bg-indigo-600 text-white text-[10px] font-black px-3 py-1 rounded-full uppercase tracking-widest flex items-center gap-2">
<i data-lucide="sparkles" class="w-3 h-3"></i> Moduł AI Aktywny
</span>
<div class="flex items-center gap-2 bg-yellow-50 px-3 py-1 rounded-full border border-yellow-100">
<i data-lucide="zap" class="w-3 h-3 text-yellow-600 fill-yellow-500"></i>
<span class="text-[10px] font-black text-yellow-700 uppercase tracking-widest">120 Tokenów</span>
</div>
</div>
</div>
<!-- Tabs -->
<div class="flex border-b border-gray-200 mb-8 space-x-8">
<a href="occasion.html" class="pb-4 text-sm font-bold text-gray-400 hover:text-indigo-600 transition-colors">Lista Osób</a>
<a href="occasion-gifts.html" class="pb-4 text-sm font-bold text-gray-400 hover:text-indigo-600 transition-colors">Wszystkie Prezenty</a>
<a href="occasion-ai.html" class="pb-4 text-sm font-bold border-b-2 border-indigo-600 text-indigo-600 flex items-center gap-2">
AI <span class="bg-indigo-100 text-indigo-600 text-[10px] px-1.5 py-0.5 rounded uppercase">Beta</span>
</a>
</div>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
<!-- AI Insights Column -->
<div class="lg:col-span-2 space-y-6">
<!-- Global Recommendation -->
<div class="bg-gradient-to-br from-indigo-900 to-indigo-800 rounded-[2.5rem] p-8 text-white shadow-2xl relative overflow-hidden">
<div class="relative z-10">
<h3 class="text-2xl font-black mb-4">Podsumowanie Inteligenta</h3>
<p class="text-indigo-100 mb-8 max-w-lg leading-relaxed font-medium">W oparciu o Twój budżet i profile osób, zauważyłem, że masz jeszcze <span class="text-white font-black underline">4 osoby bez prezentów</span>. Największym wyzwaniem jest <span class="text-white font-black">Tata</span> (brak sprecyzowanych zainteresowań).</p>
<div class="grid grid-cols-2 gap-4">
<div class="bg-white/10 backdrop-blur-md p-4 rounded-2xl border border-white/10">
<p class="text-[10px] font-black text-indigo-300 uppercase tracking-widest mb-1">Przewidywane wydatki</p>
<p class="text-xl font-black">~4 800 PLN</p>
</div>
<div class="bg-white/10 backdrop-blur-md p-4 rounded-2xl border border-white/10">
<p class="text-[10px] font-black text-indigo-300 uppercase tracking-widest mb-1">Pozostały budżet</p>
<p class="text-xl font-black text-green-400">1 200 PLN</p>
</div>
</div>
</div>
<i data-lucide="brain" class="absolute -right-10 -bottom-10 w-64 h-64 text-white/5 opacity-20"></i>
</div>
<!-- Specific Suggestions -->
<h4 class="text-xl font-black text-gray-900 mt-10 mb-6">Sugestie AI dla brakujących osób</h4>
<div class="space-y-4">
<!-- Person Suggestion 1 -->
<div class="bg-white rounded-3xl p-6 border border-gray-100 shadow-sm flex items-center justify-between group hover:shadow-md transition-all">
<div class="flex items-center gap-4">
<div class="w-12 h-12 rounded-2xl bg-indigo-50 flex items-center justify-center shrink-0">
<img src="https://ui-avatars.com/api/?name=Tata&background=random" class="w-full h-full rounded-2xl">
</div>
<div>
<p class="text-sm font-black text-gray-900">Tata</p>
<p class="text-[10px] text-gray-400 font-bold uppercase">Relacja: Ojciec</p>
</div>
</div>
<div class="flex-1 px-8 hidden md:block">
<div class="flex gap-2">
<span class="bg-indigo-50 text-indigo-600 text-[10px] font-bold px-3 py-1 rounded-full">Zestaw BBQ</span>
<span class="bg-gray-50 text-gray-400 text-[10px] font-bold px-3 py-1 rounded-full">+2 inne</span>
</div>
</div>
<button class="bg-indigo-600 text-white px-5 py-2 rounded-xl text-xs font-bold shadow-lg shadow-indigo-100 hover:scale-105 transition-all flex items-center gap-2">
Wygeneruj listę <span class="bg-indigo-500 text-[9px] px-1.5 py-0.5 rounded">-5 <i data-lucide="zap" class="w-2 h-2 inline fill-white"></i></span>
</button>
</div>
<!-- Person Suggestion 2 -->
<div class="bg-white rounded-3xl p-6 border border-gray-100 shadow-sm flex items-center justify-between group hover:shadow-md transition-all">
<div class="flex items-center gap-4">
<div class="w-12 h-12 rounded-2xl bg-purple-50 flex items-center justify-center shrink-0">
<img src="https://ui-avatars.com/api/?name=Antek&background=random" class="w-full h-full rounded-2xl">
</div>
<div>
<p class="text-sm font-black text-gray-900">Antek</p>
<p class="text-[10px] text-gray-400 font-bold uppercase">Relacja: Siostrzeniec</p>
</div>
</div>
<div class="flex-1 px-8 hidden md:block text-xs font-bold text-gray-400 italic">
Brak zainteresowań w profilu. Dodaj notatki dla lepszych sugestii.
</div>
<button class="bg-gray-100 text-gray-400 px-5 py-2 rounded-xl text-xs font-bold">Uzupełnij profil</button>
</div>
</div>
</div>
<!-- AI sidebar stats -->
<div class="space-y-6">
<!-- Moved Group Greetings Card -->
<section class="bg-indigo-900 rounded-[2.5rem] p-8 text-white relative overflow-hidden shadow-2xl border border-indigo-700">
<div class="relative z-10 text-center">
<div class="w-14 h-14 bg-white/10 rounded-full flex items-center justify-center mx-auto mb-6 border border-white/20">
<i data-lucide="sparkles" class="text-indigo-300 animate-pulse"></i>
</div>
<h4 class="text-xl font-black mb-3 leading-tight">Grupowe życzenia AI</h4>
<p class="text-xs text-indigo-200/80 mb-8 font-medium leading-relaxed">
AI przygotuje zestaw personalizowanych życzeń dla wszystkich uczestników z tej okazji.
</p>
<button class="w-full bg-white text-indigo-900 py-4 rounded-2xl font-black shadow-xl hover:bg-indigo-50 transition-all flex items-center justify-center gap-2">
GENERUJ PAKIET <span class="bg-indigo-100 text-indigo-600 text-[10px] px-2 py-0.5 rounded">-5 <i data-lucide="zap" class="w-2.5 h-2.5 inline fill-indigo-600"></i></span>
</button>
</div>
<i data-lucide="message-square" class="absolute -right-6 -bottom-6 w-32 h-32 text-white/5 opacity-10"></i>
</section>
<div class="bg-white rounded-[2rem] p-6 border border-gray-100 shadow-sm">
<h4 class="text-sm font-black mb-4 flex items-center gap-2">
<i data-lucide="zap" class="text-yellow-500 w-4 h-4"></i> Optymalizacja Budżetu
</h4>
<div class="p-4 bg-green-50 rounded-2xl border border-green-100 mb-4">
<p class="text-xs font-black text-green-700">Możesz zaoszczędzić 12%</p>
<p class="text-[10px] text-green-600 mt-1">Znaleźliśmy tańszy zamiennik dla "Smartwatch" o podobnej funkcjonalności.</p>
</div>
<div class="p-4 bg-indigo-50 rounded-2xl border border-indigo-100">
<p class="text-xs font-black text-indigo-700">Trend świąteczny</p>
<p class="text-[10px] text-indigo-600 mt-1">Ceny elektroniki wzrosną o ok. 5% w nadchodzącym tygodniu. Kup teraz!</p>
</div>
</div>
<div class="bg-white rounded-[2rem] p-6 border border-gray-100 shadow-sm text-center">
<div class="w-12 h-12 bg-indigo-50 rounded-full flex items-center justify-center text-indigo-600 mx-auto mb-4">
<i data-lucide="refresh-cw"></i>
</div>
<h4 class="text-sm font-black mb-2">Przeanalizuj ponownie</h4>
<p class="text-[10px] text-gray-400 mb-6 px-4">Odśwież sugestie na podstawie najnowszych zmian w budżecie i cen rynkowych.</p>
<button class="w-full py-3 bg-indigo-600 text-white font-bold rounded-2xl shadow-lg shadow-indigo-100 transition-all hover:opacity-90 flex items-center justify-center gap-2">
Odśwież Analizę <span class="bg-indigo-500 text-[10px] px-2 py-0.5 rounded">-2 <i data-lucide="zap" class="w-3 h-3 inline fill-white"></i></span>
</button>
</div>
</div>
</div>
</main>
</div>
<!-- Mobile Nav -->
<nav class="lg:hidden fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 p-2 flex justify-around items-center z-50">
<a href="dashboard.html" class="flex flex-col items-center p-2 text-gray-400">
<i data-lucide="layout-dashboard" class="w-6 h-6"></i>
<span class="text-[10px] font-bold mt-1">Home</span>
</a>
<a href="occasions.html" class="flex flex-col items-center p-2 text-indigo-600">
<i data-lucide="calendar" class="w-6 h-6"></i>
<span class="text-[10px] font-bold mt-1">Okazje</span>
</a>
<a href="persons.html" class="flex flex-col items-center p-2 text-gray-400">
<i data-lucide="users" class="w-6 h-6"></i>
<span class="text-[10px] font-bold mt-1">Osoby</span>
</a>
<a href="settings.html" class="flex flex-col items-center p-2 text-gray-400">
<i data-lucide="settings" class="w-6 h-6"></i>
<span class="text-[10px] font-bold mt-1">Opcje</span>
</a>
</nav>
<script>
lucide.createIcons();
</script>
</body>
</html>