|
| 1 | +{% load unicorn %} |
| 2 | +<!DOCTYPE html> |
| 3 | +<html lang="en"> |
| 4 | +<head> |
| 5 | + <meta charset="UTF-8"> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 7 | + <title>NovaMart — Modern E-Commerce</title> |
| 8 | + <script src="https://cdn.tailwindcss.com"></script> |
| 9 | + <script> |
| 10 | + tailwind.config = { |
| 11 | + theme: { |
| 12 | + extend: { |
| 13 | + colors: { |
| 14 | + brand: { 50: '#f0f9ff', 100: '#e0f2fe', 500: '#0ea5e9', 600: '#0284c7', 700: '#0369a1' }, |
| 15 | + } |
| 16 | + } |
| 17 | + } |
| 18 | + } |
| 19 | + </script> |
| 20 | + <style> |
| 21 | + @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); |
| 22 | + body { font-family: 'Inter', sans-serif; } |
| 23 | + .product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); } |
| 24 | + .product-card { transition: all 0.3s ease; } |
| 25 | + .fade-in { animation: fadeIn 0.3s ease-in; } |
| 26 | + @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } |
| 27 | + .star-filled { color: #f59e0b; } |
| 28 | + .star-empty { color: #d1d5db; } |
| 29 | + </style> |
| 30 | + {% unicorn_scripts %} |
| 31 | +</head> |
| 32 | +<body class="bg-gray-50 min-h-screen"> |
| 33 | + {% csrf_token %} |
| 34 | + <!-- Navigation --> |
| 35 | + <nav class="bg-white border-b border-gray-200 sticky top-0 z-50 shadow-sm"> |
| 36 | + <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
| 37 | + <div class="flex justify-between items-center h-16"> |
| 38 | + <div class="flex items-center space-x-8"> |
| 39 | + <a href="/" class="text-2xl font-bold text-brand-700"> |
| 40 | + <span class="text-brand-500">Nova</span>Mart |
| 41 | + </a> |
| 42 | + <div class="hidden md:flex space-x-6"> |
| 43 | + <a href="#" class="text-gray-600 hover:text-brand-600 font-medium text-sm">New Arrivals</a> |
| 44 | + <a href="#" class="text-gray-600 hover:text-brand-600 font-medium text-sm">Best Sellers</a> |
| 45 | + <a href="#" class="text-gray-600 hover:text-brand-600 font-medium text-sm">Categories</a> |
| 46 | + <a href="#" class="text-gray-600 hover:text-brand-600 font-medium text-sm">Deals</a> |
| 47 | + </div> |
| 48 | + </div> |
| 49 | + <div class="flex items-center space-x-4"> |
| 50 | + <button class="text-gray-500 hover:text-gray-700"> |
| 51 | + <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
| 52 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"/> |
| 53 | + </svg> |
| 54 | + </button> |
| 55 | + <button class="text-gray-500 hover:text-gray-700"> |
| 56 | + <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
| 57 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"/> |
| 58 | + </svg> |
| 59 | + </button> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + </nav> |
| 64 | + |
| 65 | + <!-- Hero Banner --> |
| 66 | + <div class="bg-gradient-to-r from-brand-700 via-brand-600 to-indigo-600 text-white"> |
| 67 | + <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12"> |
| 68 | + <div class="flex flex-col md:flex-row items-center justify-between"> |
| 69 | + <div> |
| 70 | + <p class="text-brand-100 text-sm font-medium mb-2">SUMMER COLLECTION 2025</p> |
| 71 | + <h1 class="text-4xl md:text-5xl font-bold mb-4">Discover What's New</h1> |
| 72 | + <p class="text-brand-100 text-lg max-w-lg">Curated products from top brands. Free shipping on orders over $99.</p> |
| 73 | + </div> |
| 74 | + <div class="mt-6 md:mt-0"> |
| 75 | + <span class="bg-white/20 backdrop-blur-sm border border-white/30 rounded-full px-6 py-3 text-sm font-medium"> |
| 76 | + Use code <strong>SUMMER25</strong> for 25% off |
| 77 | + </span> |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + </div> |
| 81 | + </div> |
| 82 | + |
| 83 | + <!-- Main Content --> |
| 84 | + <main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10"> |
| 85 | + <!-- Product Search, Filter & Cart --> |
| 86 | + {% unicorn 'product_search' %} |
| 87 | + |
| 88 | + <!-- Reviews Section --> |
| 89 | + <div class="mt-16 border-t border-gray-200 pt-12"> |
| 90 | + <h2 class="text-2xl font-bold text-gray-900 mb-8">Customer Reviews</h2> |
| 91 | + {% unicorn 'review_form' %} |
| 92 | + </div> |
| 93 | + </main> |
| 94 | + |
| 95 | + <!-- Footer --> |
| 96 | + <footer class="bg-gray-900 text-gray-400 mt-20"> |
| 97 | + <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12"> |
| 98 | + <div class="grid grid-cols-2 md:grid-cols-4 gap-8"> |
| 99 | + <div> |
| 100 | + <h3 class="text-white font-semibold mb-4">Shop</h3> |
| 101 | + <ul class="space-y-2 text-sm"> |
| 102 | + <li><a href="#" class="hover:text-white">New Arrivals</a></li> |
| 103 | + <li><a href="#" class="hover:text-white">Best Sellers</a></li> |
| 104 | + <li><a href="#" class="hover:text-white">Sale</a></li> |
| 105 | + <li><a href="#" class="hover:text-white">Gift Cards</a></li> |
| 106 | + </ul> |
| 107 | + </div> |
| 108 | + <div> |
| 109 | + <h3 class="text-white font-semibold mb-4">Help</h3> |
| 110 | + <ul class="space-y-2 text-sm"> |
| 111 | + <li><a href="#" class="hover:text-white">Shipping</a></li> |
| 112 | + <li><a href="#" class="hover:text-white">Returns</a></li> |
| 113 | + <li><a href="#" class="hover:text-white">Size Guide</a></li> |
| 114 | + <li><a href="#" class="hover:text-white">Contact Us</a></li> |
| 115 | + </ul> |
| 116 | + </div> |
| 117 | + <div> |
| 118 | + <h3 class="text-white font-semibold mb-4">About</h3> |
| 119 | + <ul class="space-y-2 text-sm"> |
| 120 | + <li><a href="#" class="hover:text-white">Our Story</a></li> |
| 121 | + <li><a href="#" class="hover:text-white">Careers</a></li> |
| 122 | + <li><a href="#" class="hover:text-white">Sustainability</a></li> |
| 123 | + <li><a href="#" class="hover:text-white">Press</a></li> |
| 124 | + </ul> |
| 125 | + </div> |
| 126 | + <div> |
| 127 | + <h3 class="text-white font-semibold mb-4">Connect</h3> |
| 128 | + <ul class="space-y-2 text-sm"> |
| 129 | + <li><a href="#" class="hover:text-white">Instagram</a></li> |
| 130 | + <li><a href="#" class="hover:text-white">Twitter</a></li> |
| 131 | + <li><a href="#" class="hover:text-white">Facebook</a></li> |
| 132 | + <li><a href="#" class="hover:text-white">Newsletter</a></li> |
| 133 | + </ul> |
| 134 | + </div> |
| 135 | + </div> |
| 136 | + <div class="border-t border-gray-800 mt-10 pt-8 text-sm text-center"> |
| 137 | + <p>© 2025 NovaMart. All rights reserved. Built with Django + django-unicorn.</p> |
| 138 | + </div> |
| 139 | + </div> |
| 140 | + </footer> |
| 141 | +</body> |
| 142 | +</html> |
0 commit comments