i want to make a website with a login page, into a page where the client can select out of several customizable products. After selecting, they will need to provide more information on their requirements by filling in several paramaters. In the end, they can submit everything to the admin. The admin will then be able to see all requests and extract individual data
Browse files- README.md +8 -5
- admin.html +252 -0
- customize.html +294 -0
- index.html +91 -18
- products.html +130 -0
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: Crafty Configurator Hub
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Crafty Configurator Hub 🛠️
|
| 3 |
+
colorFrom: pink
|
| 4 |
+
colorTo: gray
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
admin.html
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Crafty Configurator Hub | Admin Dashboard</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<style>
|
| 12 |
+
.request-card:hover {
|
| 13 |
+
transform: translateY(-2px);
|
| 14 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
| 15 |
+
}
|
| 16 |
+
.request-card {
|
| 17 |
+
transition: all 0.2s ease;
|
| 18 |
+
}
|
| 19 |
+
.status-pending {
|
| 20 |
+
background-color: #fef3c7;
|
| 21 |
+
color: #d97706;
|
| 22 |
+
}
|
| 23 |
+
.status-processing {
|
| 24 |
+
background-color: #dbeafe;
|
| 25 |
+
color: #1d4ed8;
|
| 26 |
+
}
|
| 27 |
+
.status-completed {
|
| 28 |
+
background-color: #dcfce7;
|
| 29 |
+
color: #15803d;
|
| 30 |
+
}
|
| 31 |
+
</style>
|
| 32 |
+
</head>
|
| 33 |
+
<body class="bg-gray-100">
|
| 34 |
+
<div class="min-h-screen">
|
| 35 |
+
<!-- Admin Sidebar -->
|
| 36 |
+
<div class="fixed inset-y-0 left-0 w-64 bg-white shadow-md">
|
| 37 |
+
<div class="flex items-center justify-center h-16 bg-indigo-600">
|
| 38 |
+
<div class="flex items-center">
|
| 39 |
+
<i data-feather="settings" class="text-white"></i>
|
| 40 |
+
<span class="ml-2 text-xl font-semibold text-white">Admin Dashboard</span>
|
| 41 |
+
</div>
|
| 42 |
+
</div>
|
| 43 |
+
<nav class="mt-8">
|
| 44 |
+
<div class="px-4 space-y-1">
|
| 45 |
+
<a href="#" class="bg-gray-100 text-indigo-600 group flex items-center px-4 py-3 text-sm font-medium rounded-md">
|
| 46 |
+
<i data-feather="inbox" class="text-indigo-600 mr-3"></i>
|
| 47 |
+
Custom Requests
|
| 48 |
+
</a>
|
| 49 |
+
<a href="#" class="text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-4 py-3 text-sm font-medium rounded-md">
|
| 50 |
+
<i data-feather="users" class="text-gray-400 group-hover:text-gray-500 mr-3"></i>
|
| 51 |
+
Customers
|
| 52 |
+
</a>
|
| 53 |
+
<a href="#" class="text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-4 py-3 text-sm font-medium rounded-md">
|
| 54 |
+
<i data-feather="package" class="text-gray-400 group-hover:text-gray-500 mr-3"></i>
|
| 55 |
+
Products
|
| 56 |
+
</a>
|
| 57 |
+
<a href="#" class="text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-4 py-3 text-sm font-medium rounded-md">
|
| 58 |
+
<i data-feather="settings" class="text-gray-400 group-hover:text-gray-500 mr-3"></i>
|
| 59 |
+
Settings
|
| 60 |
+
</a>
|
| 61 |
+
</div>
|
| 62 |
+
<div class="mt-8 px-4">
|
| 63 |
+
<button id="adminLogoutBtn" class="w-full flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-red-600 hover:bg-red-700">
|
| 64 |
+
<i data-feather="log-out" class="mr-2"></i> Logout
|
| 65 |
+
</button>
|
| 66 |
+
</div>
|
| 67 |
+
</nav>
|
| 68 |
+
</div>
|
| 69 |
+
|
| 70 |
+
<!-- Main Content -->
|
| 71 |
+
<div class="pl-64">
|
| 72 |
+
<!-- Header -->
|
| 73 |
+
<header class="bg-white shadow-sm">
|
| 74 |
+
<div class="max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8">
|
| 75 |
+
<div class="flex justify-between items-center">
|
| 76 |
+
<h1 class="text-2xl font-bold text-gray-900">Customization Requests</h1>
|
| 77 |
+
<div class="flex items-center space-x-4">
|
| 78 |
+
<div class="relative">
|
| 79 |
+
<input type="text" placeholder="Search requests..."
|
| 80 |
+
class="pl-10 pr-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
|
| 81 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 82 |
+
<i data-feather="search" class="text-gray-400"></i>
|
| 83 |
+
</div>
|
| 84 |
+
</div>
|
| 85 |
+
<button class="p-2 rounded-full bg-gray-100 text-gray-500 hover:text-gray-600">
|
| 86 |
+
<i data-feather="bell"></i>
|
| 87 |
+
</button>
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|
| 91 |
+
</header>
|
| 92 |
+
|
| 93 |
+
<!-- Requests Table -->
|
| 94 |
+
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
| 95 |
+
<div class="flex justify-between items-center mb-6">
|
| 96 |
+
<div class="flex items-center space-x-3">
|
| 97 |
+
<h2 class="text-lg font-medium text-gray-900">All Requests</h2>
|
| 98 |
+
<span class="px-2 py-1 text-xs font-medium rounded-full bg-indigo-100 text-indigo-800">24 New</span>
|
| 99 |
+
</div>
|
| 100 |
+
<div class="flex space-x-3">
|
| 101 |
+
<select class="border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
|
| 102 |
+
<option>Filter by Status</option>
|
| 103 |
+
<option>Pending</option>
|
| 104 |
+
<option>Processing</option>
|
| 105 |
+
<option>Completed</option>
|
| 106 |
+
</select>
|
| 107 |
+
<button class="px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700">
|
| 108 |
+
Export Data
|
| 109 |
+
</button>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
|
| 113 |
+
<div class="bg-white shadow rounded-lg overflow-hidden">
|
| 114 |
+
<div class="divide-y divide-gray-200">
|
| 115 |
+
<!-- Request 1 -->
|
| 116 |
+
<div class="request-card p-6 hover:bg-gray-50">
|
| 117 |
+
<div class="flex justify-between">
|
| 118 |
+
<div>
|
| 119 |
+
<div class="flex items-center">
|
| 120 |
+
<h3 class="text-lg font-medium text-gray-900">Premium Watch</h3>
|
| 121 |
+
<span class="ml-3 px-2 py-1 text-xs font-medium rounded-full status-pending">Pending</span>
|
| 122 |
+
</div>
|
| 123 |
+
<p class="mt-1 text-sm text-gray-600">Custom color: Blue | Material: Metal</p>
|
| 124 |
+
</div>
|
| 125 |
+
<div class="text-right">
|
| 126 |
+
<p class="text-sm text-gray-500">Requested on <time datetime="2023-05-15">May 15, 2023</time></p>
|
| 127 |
+
<p class="mt-1 text-lg font-bold text-indigo-600">$219.00</p>
|
| 128 |
+
</div>
|
| 129 |
+
</div>
|
| 130 |
+
<div class="mt-4 flex justify-between items-center">
|
| 131 |
+
<div>
|
| 132 |
+
<p class="text-sm text-gray-600">John Doe • [email protected]</p>
|
| 133 |
+
<p class="mt-1 text-sm text-gray-500">"Please include initials 'JD' engraved on the back"</p>
|
| 134 |
+
</div>
|
| 135 |
+
<div class="flex space-x-2">
|
| 136 |
+
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
| 137 |
+
View Details
|
| 138 |
+
</button>
|
| 139 |
+
<button class="px-3 py-1 border border-transparent rounded-md text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
| 140 |
+
Assign
|
| 141 |
+
</button>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
</div>
|
| 145 |
+
|
| 146 |
+
<!-- Request 2 -->
|
| 147 |
+
<div class="request-card p-6 hover:bg-gray-50">
|
| 148 |
+
<div class="flex justify-between">
|
| 149 |
+
<div>
|
| 150 |
+
<div class="flex items-center">
|
| 151 |
+
<h3 class="text-lg font-medium text-gray-900">Designer Bag</h3>
|
| 152 |
+
<span class="ml-3 px-2 py-1 text-xs font-medium rounded-full status-processing">Processing</span>
|
| 153 |
+
</div>
|
| 154 |
+
<p class="mt-1 text-sm text-gray-600">Custom color: Red | Material: Leather</p>
|
| 155 |
+
</div>
|
| 156 |
+
<div class="text-right">
|
| 157 |
+
<p class="text-sm text-gray-500">Requested on <time datetime="2023-05-14">May 14, 2023</time></p>
|
| 158 |
+
<p class="mt-1 text-lg font-bold text-indigo-600">$149.00</p>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
<div class="mt-4 flex justify-between items-center">
|
| 162 |
+
<div>
|
| 163 |
+
<p class="text-sm text-gray-600">Jane Smith • [email protected]</p>
|
| 164 |
+
<p class="mt-1 text-sm text-gray-500">"Need this before May 20th for a gift"</p>
|
| 165 |
+
</div>
|
| 166 |
+
<div class="flex space-x-2">
|
| 167 |
+
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
| 168 |
+
View Details
|
| 169 |
+
</button>
|
| 170 |
+
<button class="px-3 py-1 border border-transparent rounded-md text-sm font-medium text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500">
|
| 171 |
+
Complete
|
| 172 |
+
</button>
|
| 173 |
+
</div>
|
| 174 |
+
</div>
|
| 175 |
+
</div>
|
| 176 |
+
|
| 177 |
+
<!-- Request 3 -->
|
| 178 |
+
<div class="request-card p-6 hover:bg-gray-50">
|
| 179 |
+
<div class="flex justify-between">
|
| 180 |
+
<div>
|
| 181 |
+
<div class="flex items-center">
|
| 182 |
+
<h3 class="text-lg font-medium text-gray-900">Custom Sneakers</h3>
|
| 183 |
+
<span class="ml-3 px-2 py-1 text-xs font-medium rounded-full status-completed">Completed</span>
|
| 184 |
+
</div>
|
| 185 |
+
<p class="mt-1 text-sm text-gray-600">Custom color: Black/White | Material: Canvas</p>
|
| 186 |
+
</div>
|
| 187 |
+
<div class="text-right">
|
| 188 |
+
<p class="text-sm text-gray-500">Requested on <time datetime="2023-05-10">May 10, 2023</time></p>
|
| 189 |
+
<p class="mt-1 text-lg font-bold text-indigo-600">$129.00</p>
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
<div class="mt-4 flex justify-between items-center">
|
| 193 |
+
<div>
|
| 194 |
+
<p class="text-sm text-gray-600">Michael Brown • [email protected]</p>
|
| 195 |
+
<p class="mt-1 text-sm text-gray-500">"Please use premium packaging for gift"</p>
|
| 196 |
+
</div>
|
| 197 |
+
<div class="flex space-x-2">
|
| 198 |
+
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
| 199 |
+
View Details
|
| 200 |
+
</button>
|
| 201 |
+
<button class="px-3 py-1 border border-transparent rounded-md text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
| 202 |
+
Re-open
|
| 203 |
+
</button>
|
| 204 |
+
</div>
|
| 205 |
+
</div>
|
| 206 |
+
</div>
|
| 207 |
+
|
| 208 |
+
<!-- More requests would be loaded here -->
|
| 209 |
+
</div>
|
| 210 |
+
</div>
|
| 211 |
+
|
| 212 |
+
<!-- Pagination -->
|
| 213 |
+
<div class="mt-6 flex justify-between items-center">
|
| 214 |
+
<div>
|
| 215 |
+
<p class="text-sm text-gray-700">
|
| 216 |
+
Showing <span class="font-medium">1</span> to <span class="font-medium">3</span> of <span class="font-medium">24</span> results
|
| 217 |
+
</p>
|
| 218 |
+
</div>
|
| 219 |
+
<div class="flex space-x-2">
|
| 220 |
+
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed" disabled>
|
| 221 |
+
Previous
|
| 222 |
+
</button>
|
| 223 |
+
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50">
|
| 224 |
+
1
|
| 225 |
+
</button>
|
| 226 |
+
<button class="px-3 py-1 border border-transparent rounded-md text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700">
|
| 227 |
+
2
|
| 228 |
+
</button>
|
| 229 |
+
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50">
|
| 230 |
+
3
|
| 231 |
+
</button>
|
| 232 |
+
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50">
|
| 233 |
+
Next
|
| 234 |
+
</button>
|
| 235 |
+
</div>
|
| 236 |
+
</div>
|
| 237 |
+
</main>
|
| 238 |
+
</div>
|
| 239 |
+
</div>
|
| 240 |
+
|
| 241 |
+
<script>
|
| 242 |
+
feather.replace();
|
| 243 |
+
|
| 244 |
+
document.getElementById('adminLogoutBtn').addEventListener('click', function() {
|
| 245 |
+
window.location.href = 'index.html';
|
| 246 |
+
});
|
| 247 |
+
|
| 248 |
+
// In a real app, you would fetch requests from an API
|
| 249 |
+
// and dynamically populate the table
|
| 250 |
+
</script>
|
| 251 |
+
</body>
|
| 252 |
+
</html>
|
customize.html
ADDED
|
@@ -0,0 +1,294 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Crafty Configurator Hub | Customize</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<style>
|
| 12 |
+
.customization-panel {
|
| 13 |
+
transition: all 0.3s ease;
|
| 14 |
+
}
|
| 15 |
+
.option-selected {
|
| 16 |
+
border-color: #667eea;
|
| 17 |
+
background-color: #f0f4ff;
|
| 18 |
+
}
|
| 19 |
+
.preview-container {
|
| 20 |
+
perspective: 1000px;
|
| 21 |
+
}
|
| 22 |
+
.product-preview {
|
| 23 |
+
transition: transform 0.5s ease;
|
| 24 |
+
}
|
| 25 |
+
</style>
|
| 26 |
+
</head>
|
| 27 |
+
<body class="bg-gray-50">
|
| 28 |
+
<nav class="bg-white shadow-sm">
|
| 29 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 30 |
+
<div class="flex justify-between h-16">
|
| 31 |
+
<div class="flex items-center">
|
| 32 |
+
<i data-feather="package" class="text-indigo-600"></i>
|
| 33 |
+
<span class="ml-2 text-xl font-semibold text-gray-900">Crafty Configurator</span>
|
| 34 |
+
</div>
|
| 35 |
+
<div class="flex items-center">
|
| 36 |
+
<button id="logoutBtn" class="text-gray-500 hover:text-gray-700 px-3 py-2 rounded-md text-sm font-medium flex items-center">
|
| 37 |
+
<i data-feather="log-out" class="mr-1"></i> Logout
|
| 38 |
+
</button>
|
| 39 |
+
</div>
|
| 40 |
+
</div>
|
| 41 |
+
</div>
|
| 42 |
+
</nav>
|
| 43 |
+
|
| 44 |
+
<main class="max-w-7xl mx-auto py-8 px-4 sm:px-6 lg:px-8">
|
| 45 |
+
<div class="flex flex-col lg:flex-row gap-8">
|
| 46 |
+
<!-- Product Preview -->
|
| 47 |
+
<div class="lg:w-1/2 preview-container">
|
| 48 |
+
<div class="bg-white rounded-lg shadow-md p-6 sticky top-8 product-preview">
|
| 49 |
+
<h2 class="text-2xl font-bold text-gray-900 mb-4" id="productTitle">Premium Watch</h2>
|
| 50 |
+
<div class="flex justify-center mb-6">
|
| 51 |
+
<img src="http://static.photos/retail/640x360/1" alt="Product Preview" id="productPreview" class="max-h-80 object-contain">
|
| 52 |
+
</div>
|
| 53 |
+
<div class="border-t border-gray-200 pt-4">
|
| 54 |
+
<h3 class="text-lg font-medium text-gray-900 mb-2">Your Selections:</h3>
|
| 55 |
+
<ul id="selectedOptions" class="space-y-1 text-gray-600">
|
| 56 |
+
<!-- Options will be added here dynamically -->
|
| 57 |
+
</ul>
|
| 58 |
+
</div>
|
| 59 |
+
<div class="border-t border-gray-200 pt-4 mt-4">
|
| 60 |
+
<div class="flex justify-between items-center">
|
| 61 |
+
<span class="text-lg font-medium text-gray-900">Total:</span>
|
| 62 |
+
<span class="text-xl font-bold text-indigo-600" id="totalPrice">$199.00</span>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
</div>
|
| 67 |
+
|
| 68 |
+
<!-- Customization Options -->
|
| 69 |
+
<div class="lg:w-1/2 space-y-8">
|
| 70 |
+
<div class="bg-white rounded-lg shadow-md overflow-hidden">
|
| 71 |
+
<div class="p-6">
|
| 72 |
+
<h2 class="text-2xl font-bold text-gray-900 mb-6">Customize Your Product</h2>
|
| 73 |
+
|
| 74 |
+
<!-- Color Options -->
|
| 75 |
+
<div class="mb-8 customization-panel">
|
| 76 |
+
<h3 class="text-lg font-medium text-gray-900 mb-3">Color</h3>
|
| 77 |
+
<div class="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-5 gap-3">
|
| 78 |
+
<div class="option-selector h-12 rounded-md border-2 border-transparent cursor-pointer flex items-center justify-center bg-red-500"
|
| 79 |
+
data-option="color" data-value="red" onclick="selectOption(this)"></div>
|
| 80 |
+
<div class="option-selector h-12 rounded-md border-2 border-transparent cursor-pointer flex items-center justify-center bg-blue-500"
|
| 81 |
+
data-option="color" data-value="blue" onclick="selectOption(this)"></div>
|
| 82 |
+
<div class="option-selector h-12 rounded-md border-2 border-transparent cursor-pointer flex items-center justify-center bg-green-500"
|
| 83 |
+
data-option="color" data-value="green" onclick="selectOption(this)"></div>
|
| 84 |
+
<div class="option-selector h-12 rounded-md border-2 border-transparent cursor-pointer flex items-center justify-center bg-yellow-500"
|
| 85 |
+
data-option="color" data-value="yellow" onclick="selectOption(this)"></div>
|
| 86 |
+
<div class="option-selector h-12 rounded-md border-2 border-transparent cursor-pointer flex items-center justify-center bg-black"
|
| 87 |
+
data-option="color" data-value="black" onclick="selectOption(this)"></div>
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
|
| 91 |
+
<!-- Material Options -->
|
| 92 |
+
<div class="mb-8 customization-panel">
|
| 93 |
+
<h3 class="text-lg font-medium text-gray-900 mb-3">Material</h3>
|
| 94 |
+
<div class="grid grid-cols-2 sm:grid-cols-3 gap-3">
|
| 95 |
+
<div class="option-selector p-3 rounded-md border-2 border-transparent cursor-pointer bg-gray-100"
|
| 96 |
+
data-option="material" data-value="leather" data-price="0" onclick="selectOption(this)">
|
| 97 |
+
<div class="font-medium text-gray-900">Leather</div>
|
| 98 |
+
<div class="text-sm text-gray-500">Classic and durable</div>
|
| 99 |
+
</div>
|
| 100 |
+
<div class="option-selector p-3 rounded-md border-2 border-transparent cursor-pointer bg-gray-100"
|
| 101 |
+
data-option="material" data-value="metal" data-price="20" onclick="selectOption(this)">
|
| 102 |
+
<div class="font-medium text-gray-900">Metal</div>
|
| 103 |
+
<div class="text-sm text-gray-500">Premium finish</div>
|
| 104 |
+
</div>
|
| 105 |
+
<div class="option-selector p-3 rounded-md border-2 border-transparent cursor-pointer bg-gray-100"
|
| 106 |
+
data-option="material" data-value="silicone" data-price="-10" onclick="selectOption(this)">
|
| 107 |
+
<div class="font-medium text-gray-900">Silicone</div>
|
| 108 |
+
<div class="text-sm text-gray-500">Lightweight & flexible</div>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
|
| 113 |
+
<!-- Engraving Options -->
|
| 114 |
+
<div class="mb-8 customization-panel">
|
| 115 |
+
<h3 class="text-lg font-medium text-gray-900 mb-3">Personal Engraving</h3>
|
| 116 |
+
<div class="space-y-3">
|
| 117 |
+
<div>
|
| 118 |
+
<label for="engravingText" class="block text-sm font-medium text-gray-700">Text (max 20 characters)</label>
|
| 119 |
+
<input type="text" id="engravingText" maxlength="20"
|
| 120 |
+
class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
|
| 121 |
+
</div>
|
| 122 |
+
<div>
|
| 123 |
+
<label for="engravingFont" class="block text-sm font-medium text-gray-700">Font Style</label>
|
| 124 |
+
<select id="engravingFont"
|
| 125 |
+
class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
|
| 126 |
+
<option value="standard">Standard</option>
|
| 127 |
+
<option value="script">Script</option>
|
| 128 |
+
<option value="block">Block</option>
|
| 129 |
+
<option value="elegant">Elegant</option>
|
| 130 |
+
</select>
|
| 131 |
+
</div>
|
| 132 |
+
<div>
|
| 133 |
+
<label class="inline-flex items-center">
|
| 134 |
+
<input type="checkbox" id="engravingPremium" class="form-checkbox h-4 w-4 text-indigo-600 transition duration-150 ease-in-out">
|
| 135 |
+
<span class="ml-2 text-sm text-gray-700">Add premium engraving (+$15)</span>
|
| 136 |
+
</label>
|
| 137 |
+
</div>
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
|
| 141 |
+
<!-- Additional Notes -->
|
| 142 |
+
<div class="mb-8">
|
| 143 |
+
<h3 class="text-lg font-medium text-gray-900 mb-3">Additional Requirements</h3>
|
| 144 |
+
<textarea id="additionalNotes" rows="3"
|
| 145 |
+
class="block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500"
|
| 146 |
+
placeholder="Any special requests or notes for your order..."></textarea>
|
| 147 |
+
</div>
|
| 148 |
+
|
| 149 |
+
<!-- Contact Information -->
|
| 150 |
+
<div class="mb-8">
|
| 151 |
+
<h3 class="text-lg font-medium text-gray-900 mb-3">Contact Information</h3>
|
| 152 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
| 153 |
+
<div>
|
| 154 |
+
<label for="fullName" class="block text-sm font-medium text-gray-700">Full Name</label>
|
| 155 |
+
<input type="text" id="fullName" required
|
| 156 |
+
class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
|
| 157 |
+
</div>
|
| 158 |
+
<div>
|
| 159 |
+
<label for="phone" class="block text-sm font-medium text-gray-700">Phone Number</label>
|
| 160 |
+
<input type="tel" id="phone"
|
| 161 |
+
class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
|
| 162 |
+
</div>
|
| 163 |
+
<div class="md:col-span-2">
|
| 164 |
+
<label for="address" class="block text-sm font-medium text-gray-700">Shipping Address</label>
|
| 165 |
+
<textarea id="address" rows="2" required
|
| 166 |
+
class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500"></textarea>
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
</div>
|
| 170 |
+
|
| 171 |
+
<!-- Submit Button -->
|
| 172 |
+
<div class="pt-4 border-t border-gray-200">
|
| 173 |
+
<button id="submitRequestBtn"
|
| 174 |
+
class="w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-all duration-200">
|
| 175 |
+
Submit Customization Request
|
| 176 |
+
</button>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
</div>
|
| 180 |
+
</div>
|
| 181 |
+
</div>
|
| 182 |
+
</main>
|
| 183 |
+
|
| 184 |
+
<script>
|
| 185 |
+
feather.replace();
|
| 186 |
+
let selectedOptions = {};
|
| 187 |
+
let basePrice = 199.00;
|
| 188 |
+
|
| 189 |
+
// Get product from URL
|
| 190 |
+
const urlParams = new URLSearchParams(window.location.search);
|
| 191 |
+
const product = urlParams.get('product');
|
| 192 |
+
|
| 193 |
+
// Set product title and image based on selection
|
| 194 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 195 |
+
let productTitle = "Custom Product";
|
| 196 |
+
let productImage = "http://static.photos/retail/640x360/1";
|
| 197 |
+
|
| 198 |
+
switch(product) {
|
| 199 |
+
case 'premium-watch':
|
| 200 |
+
productTitle = "Premium Watch";
|
| 201 |
+
productImage = "http://static.photos/retail/640x360/1";
|
| 202 |
+
basePrice = 199.00;
|
| 203 |
+
break;
|
| 204 |
+
case 'designer-bag':
|
| 205 |
+
productTitle = "Designer Bag";
|
| 206 |
+
productImage = "http://static.photos/retail/640x360/2";
|
| 207 |
+
basePrice = 149.00;
|
| 208 |
+
break;
|
| 209 |
+
case 'custom-sneakers':
|
| 210 |
+
productTitle = "Custom Sneakers";
|
| 211 |
+
productImage = "http://static.photos/retail/640x360/3";
|
| 212 |
+
basePrice = 129.00;
|
| 213 |
+
break;
|
| 214 |
+
}
|
| 215 |
+
|
| 216 |
+
document.getElementById('productTitle').textContent = productTitle;
|
| 217 |
+
document.getElementById('productPreview').src = productImage;
|
| 218 |
+
updateTotalPrice();
|
| 219 |
+
});
|
| 220 |
+
|
| 221 |
+
function selectOption(element) {
|
| 222 |
+
const option = element.getAttribute('data-option');
|
| 223 |
+
const value = element.getAttribute('data-value');
|
| 224 |
+
const price = parseFloat(element.getAttribute('data-price')) || 0;
|
| 225 |
+
|
| 226 |
+
// Remove selected class from all options in this category
|
| 227 |
+
document.querySelectorAll(`[data-option="${option}"]`).forEach(el => {
|
| 228 |
+
el.classList.remove('option-selected');
|
| 229 |
+
});
|
| 230 |
+
|
| 231 |
+
// Add selected class to clicked option
|
| 232 |
+
element.classList.add('option-selected');
|
| 233 |
+
|
| 234 |
+
// Store selection
|
| 235 |
+
selectedOptions[option] = { value, price };
|
| 236 |
+
|
| 237 |
+
// Update UI
|
| 238 |
+
updateSelectedOptions();
|
| 239 |
+
updateTotalPrice();
|
| 240 |
+
}
|
| 241 |
+
|
| 242 |
+
function updateSelectedOptions() {
|
| 243 |
+
const container = document.getElementById('selectedOptions');
|
| 244 |
+
container.innerHTML = '';
|
| 245 |
+
|
| 246 |
+
for (const [option, data] of Object.entries(selectedOptions)) {
|
| 247 |
+
const li = document.createElement('li');
|
| 248 |
+
li.className = 'flex justify-between';
|
| 249 |
+
li.innerHTML = `
|
| 250 |
+
<span class="capitalize">${option}:</span>
|
| 251 |
+
<span>${data.value} ${data.price > 0 ? `(+$${data.price.toFixed(2)})` : ''}</span>
|
| 252 |
+
`;
|
| 253 |
+
container.appendChild(li);
|
| 254 |
+
}
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
function updateTotalPrice() {
|
| 258 |
+
let total = basePrice;
|
| 259 |
+
|
| 260 |
+
// Add up all option prices
|
| 261 |
+
for (const optionData of Object.values(selectedOptions)) {
|
| 262 |
+
total += optionData.price;
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
// Add engraving premium if selected
|
| 266 |
+
if (document.getElementById('engravingPremium').checked) {
|
| 267 |
+
total += 15;
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
document.getElementById('totalPrice').textContent = `$${total.toFixed(2)}`;
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
document.getElementById('engravingPremium').addEventListener('change', updateTotalPrice);
|
| 274 |
+
|
| 275 |
+
document.getElementById('logoutBtn').addEventListener('click', function() {
|
| 276 |
+
window.location.href = 'index.html';
|
| 277 |
+
});
|
| 278 |
+
|
| 279 |
+
document.getElementById('submitRequestBtn').addEventListener('click', function() {
|
| 280 |
+
// Validate required fields
|
| 281 |
+
if (!document.getElementById('fullName').value || !document.getElementById('address').value) {
|
| 282 |
+
alert('Please fill in all required fields (Name and Address)');
|
| 283 |
+
return;
|
| 284 |
+
}
|
| 285 |
+
|
| 286 |
+
// In a real app, you would send this data to the server
|
| 287 |
+
alert('Customization request submitted successfully! Our team will review your request and contact you soon.');
|
| 288 |
+
|
| 289 |
+
// Redirect to confirmation page or back to products
|
| 290 |
+
// window.location.href = 'confirmation.html';
|
| 291 |
+
});
|
| 292 |
+
</script>
|
| 293 |
+
</body>
|
| 294 |
+
</html>
|
index.html
CHANGED
|
@@ -1,19 +1,92 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Crafty Configurator Hub | Login</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<style>
|
| 12 |
+
.auth-bg {
|
| 13 |
+
background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 14 |
+
}
|
| 15 |
+
.card-glow {
|
| 16 |
+
box-shadow: 0 10px 30px -5px rgba(102, 126, 234, 0.5);
|
| 17 |
+
}
|
| 18 |
+
</style>
|
| 19 |
+
</head>
|
| 20 |
+
<body class="min-h-screen flex items-center justify-center auth-bg">
|
| 21 |
+
<div class="max-w-md w-full mx-4 bg-white rounded-xl overflow-hidden shadow-xl card-glow">
|
| 22 |
+
<div class="px-8 py-12">
|
| 23 |
+
<div class="text-center mb-10">
|
| 24 |
+
<h1 class="text-3xl font-bold text-gray-800 mb-2">Welcome Back!</h1>
|
| 25 |
+
<p class="text-gray-600">Sign in to customize your dream products</p>
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
<form id="loginForm" class="space-y-6">
|
| 29 |
+
<div class="space-y-2">
|
| 30 |
+
<label for="email" class="block text-sm font-medium text-gray-700">Email</label>
|
| 31 |
+
<div class="relative">
|
| 32 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 33 |
+
<i data-feather="mail" class="text-gray-400"></i>
|
| 34 |
+
</div>
|
| 35 |
+
<input type="email" id="email" name="email" required
|
| 36 |
+
class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500"
|
| 37 |
+
placeholder="[email protected]">
|
| 38 |
+
</div>
|
| 39 |
+
</div>
|
| 40 |
+
|
| 41 |
+
<div class="space-y-2">
|
| 42 |
+
<label for="password" class="block text-sm font-medium text-gray-700">Password</label>
|
| 43 |
+
<div class="relative">
|
| 44 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 45 |
+
<i data-feather="lock" class="text-gray-400"></i>
|
| 46 |
+
</div>
|
| 47 |
+
<input type="password" id="password" name="password" required
|
| 48 |
+
class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500"
|
| 49 |
+
placeholder="••••••••">
|
| 50 |
+
</div>
|
| 51 |
+
</div>
|
| 52 |
+
|
| 53 |
+
<div class="flex items-center justify-between">
|
| 54 |
+
<div class="flex items-center">
|
| 55 |
+
<input id="remember-me" name="remember-me" type="checkbox"
|
| 56 |
+
class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 57 |
+
<label for="remember-me" class="ml-2 block text-sm text-gray-700">Remember me</label>
|
| 58 |
+
</div>
|
| 59 |
+
|
| 60 |
+
<div class="text-sm">
|
| 61 |
+
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500">Forgot password?</a>
|
| 62 |
+
</div>
|
| 63 |
+
</div>
|
| 64 |
+
|
| 65 |
+
<div>
|
| 66 |
+
<button type="submit"
|
| 67 |
+
class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-all duration-200">
|
| 68 |
+
Sign in
|
| 69 |
+
</button>
|
| 70 |
+
</div>
|
| 71 |
+
</form>
|
| 72 |
+
|
| 73 |
+
<div class="mt-6 text-center">
|
| 74 |
+
<p class="text-sm text-gray-600">
|
| 75 |
+
Don't have an account?
|
| 76 |
+
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500">Register here</a>
|
| 77 |
+
</p>
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
</div>
|
| 81 |
+
|
| 82 |
+
<script>
|
| 83 |
+
feather.replace();
|
| 84 |
+
|
| 85 |
+
document.getElementById('loginForm').addEventListener('submit', function(e) {
|
| 86 |
+
e.preventDefault();
|
| 87 |
+
// In a real app, you would validate credentials here
|
| 88 |
+
window.location.href = 'products.html';
|
| 89 |
+
});
|
| 90 |
+
</script>
|
| 91 |
+
</body>
|
| 92 |
</html>
|
products.html
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Crafty Configurator Hub | Products</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<style>
|
| 12 |
+
.product-card {
|
| 13 |
+
transition: all 0.3s ease;
|
| 14 |
+
}
|
| 15 |
+
.product-card:hover {
|
| 16 |
+
transform: translateY(-5px);
|
| 17 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
|
| 18 |
+
}
|
| 19 |
+
.selected {
|
| 20 |
+
border: 2px solid #667eea;
|
| 21 |
+
background-color: #f0f4ff;
|
| 22 |
+
}
|
| 23 |
+
</style>
|
| 24 |
+
</head>
|
| 25 |
+
<body class="bg-gray-50">
|
| 26 |
+
<nav class="bg-white shadow-sm">
|
| 27 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 28 |
+
<div class="flex justify-between h-16">
|
| 29 |
+
<div class="flex items-center">
|
| 30 |
+
<i data-feather="package" class="text-indigo-600"></i>
|
| 31 |
+
<span class="ml-2 text-xl font-semibold text-gray-900">Crafty Configurator</span>
|
| 32 |
+
</div>
|
| 33 |
+
<div class="flex items-center">
|
| 34 |
+
<button id="logoutBtn" class="text-gray-500 hover:text-gray-700 px-3 py-2 rounded-md text-sm font-medium flex items-center">
|
| 35 |
+
<i data-feather="log-out" class="mr-1"></i> Logout
|
| 36 |
+
</button>
|
| 37 |
+
</div>
|
| 38 |
+
</div>
|
| 39 |
+
</div>
|
| 40 |
+
</nav>
|
| 41 |
+
|
| 42 |
+
<main class="max-w-7xl mx-auto py-8 px-4 sm:px-6 lg:px-8">
|
| 43 |
+
<div class="text-center mb-12">
|
| 44 |
+
<h1 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
|
| 45 |
+
Our Customizable Products
|
| 46 |
+
</h1>
|
| 47 |
+
<p class="mt-3 max-w-2xl mx-auto text-xl text-gray-500 sm:mt-4">
|
| 48 |
+
Select a product to begin your customization journey
|
| 49 |
+
</p>
|
| 50 |
+
</div>
|
| 51 |
+
|
| 52 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 53 |
+
<!-- Product 1 -->
|
| 54 |
+
<div class="product-card bg-white rounded-lg shadow-md overflow-hidden cursor-pointer p-6" onclick="selectProduct(this, 'premium-watch')">
|
| 55 |
+
<div class="flex justify-center mb-4">
|
| 56 |
+
<img src="http://static.photos/retail/640x360/1" alt="Premium Watch" class="h-48 object-contain">
|
| 57 |
+
</div>
|
| 58 |
+
<h3 class="text-xl font-semibold text-gray-900 mb-2">Premium Watch</h3>
|
| 59 |
+
<p class="text-gray-600 mb-4">Customizable luxury timepiece with various strap and face options</p>
|
| 60 |
+
<div class="flex justify-between items-center">
|
| 61 |
+
<span class="text-lg font-bold text-indigo-600">From $199</span>
|
| 62 |
+
<i data-feather="chevron-right" class="text-gray-400"></i>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
|
| 66 |
+
<!-- Product 2 -->
|
| 67 |
+
<div class="product-card bg-white rounded-lg shadow-md overflow-hidden cursor-pointer p-6" onclick="selectProduct(this, 'designer-bag')">
|
| 68 |
+
<div class="flex justify-center mb-4">
|
| 69 |
+
<img src="http://static.photos/retail/640x360/2" alt="Designer Bag" class="h-48 object-contain">
|
| 70 |
+
</div>
|
| 71 |
+
<h3 class="text-xl font-semibold text-gray-900 mb-2">Designer Bag</h3>
|
| 72 |
+
<p class="text-gray-600 mb-4">Personalize your perfect bag with different colors and materials</p>
|
| 73 |
+
<div class="flex justify-between items-center">
|
| 74 |
+
<span class="text-lg font-bold text-indigo-600">From $149</span>
|
| 75 |
+
<i data-feather="chevron-right" class="text-gray-400"></i>
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
|
| 79 |
+
<!-- Product 3 -->
|
| 80 |
+
<div class="product-card bg-white rounded-lg shadow-md overflow-hidden cursor-pointer p-6" onclick="selectProduct(this, 'custom-sneakers')">
|
| 81 |
+
<div class="flex justify-center mb-4">
|
| 82 |
+
<img src="http://static.photos/retail/640x360/3" alt="Custom Sneakers" class="h-48 object-contain">
|
| 83 |
+
</div>
|
| 84 |
+
<h3 class="text-xl font-semibold text-gray-900 mb-2">Custom Sneakers</h3>
|
| 85 |
+
<p class="text-gray-600 mb-4">Design your unique sneakers with multiple color combinations</p>
|
| 86 |
+
<div class="flex justify-between items-center">
|
| 87 |
+
<span class="text-lg font-bold text-indigo-600">From $129</span>
|
| 88 |
+
<i data-feather="chevron-right" class="text-gray-400"></i>
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|
| 91 |
+
</div>
|
| 92 |
+
|
| 93 |
+
<div class="mt-12 flex justify-center">
|
| 94 |
+
<button id="continueBtn" disabled class="px-6 py-3 bg-indigo-600 text-white font-medium rounded-md shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-all duration-200 opacity-50 cursor-not-allowed">
|
| 95 |
+
Continue to Customization
|
| 96 |
+
</button>
|
| 97 |
+
</div>
|
| 98 |
+
</main>
|
| 99 |
+
|
| 100 |
+
<script>
|
| 101 |
+
feather.replace();
|
| 102 |
+
let selectedProduct = null;
|
| 103 |
+
|
| 104 |
+
function selectProduct(element, productId) {
|
| 105 |
+
// Remove selection from all products
|
| 106 |
+
document.querySelectorAll('.product-card').forEach(card => {
|
| 107 |
+
card.classList.remove('selected');
|
| 108 |
+
});
|
| 109 |
+
|
| 110 |
+
// Add selection to clicked product
|
| 111 |
+
element.classList.add('selected');
|
| 112 |
+
selectedProduct = productId;
|
| 113 |
+
|
| 114 |
+
// Enable continue button
|
| 115 |
+
document.getElementById('continueBtn').disabled = false;
|
| 116 |
+
document.getElementById('continueBtn').classList.remove('opacity-50', 'cursor-not-allowed');
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
document.getElementById('continueBtn').addEventListener('click', function() {
|
| 120 |
+
if (selectedProduct) {
|
| 121 |
+
window.location.href = `customize.html?product=${selectedProduct}`;
|
| 122 |
+
}
|
| 123 |
+
});
|
| 124 |
+
|
| 125 |
+
document.getElementById('logoutBtn').addEventListener('click', function() {
|
| 126 |
+
window.location.href = 'index.html';
|
| 127 |
+
});
|
| 128 |
+
</script>
|
| 129 |
+
</body>
|
| 130 |
+
</html>
|