Spaces:
Running
Running
Add 2 files
Browse files- README.md +6 -4
- index.html +675 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: gray
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: crosslisting
|
| 3 |
+
emoji: 🐳
|
| 4 |
colorFrom: gray
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,675 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Multi-Marketplace Lister | Sell on Poshmark, Mercari & eBay</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.gradient-bg {
|
| 11 |
+
background: linear-gradient(135deg, #6e8efb, #a777e3);
|
| 12 |
+
}
|
| 13 |
+
.platform-card:hover {
|
| 14 |
+
transform: translateY(-5px);
|
| 15 |
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
| 16 |
+
}
|
| 17 |
+
.platform-card {
|
| 18 |
+
transition: all 0.3s ease;
|
| 19 |
+
}
|
| 20 |
+
.tab-active {
|
| 21 |
+
border-bottom: 3px solid #6e8efb;
|
| 22 |
+
color: #6e8efb;
|
| 23 |
+
}
|
| 24 |
+
.image-preview {
|
| 25 |
+
background-size: cover;
|
| 26 |
+
background-position: center;
|
| 27 |
+
}
|
| 28 |
+
.progress-bar {
|
| 29 |
+
transition: width 0.5s ease;
|
| 30 |
+
}
|
| 31 |
+
.loading-spinner {
|
| 32 |
+
display: inline-block;
|
| 33 |
+
width: 20px;
|
| 34 |
+
height: 20px;
|
| 35 |
+
border: 3px solid rgba(255,255,255,.3);
|
| 36 |
+
border-radius: 50%;
|
| 37 |
+
border-top-color: #fff;
|
| 38 |
+
animation: spin 1s ease-in-out infinite;
|
| 39 |
+
}
|
| 40 |
+
@keyframes spin {
|
| 41 |
+
to { transform: rotate(360deg); }
|
| 42 |
+
}
|
| 43 |
+
</style>
|
| 44 |
+
</head>
|
| 45 |
+
<body class="bg-gray-50 min-h-screen">
|
| 46 |
+
<!-- Header -->
|
| 47 |
+
<header class="gradient-bg text-white shadow-lg">
|
| 48 |
+
<div class="container mx-auto px-4 py-6">
|
| 49 |
+
<div class="flex justify-between items-center">
|
| 50 |
+
<div class="flex items-center space-x-2">
|
| 51 |
+
<i class="fas fa-store text-2xl"></i>
|
| 52 |
+
<h1 class="text-2xl font-bold">CrossList</h1>
|
| 53 |
+
</div>
|
| 54 |
+
<nav>
|
| 55 |
+
<ul class="flex space-x-6">
|
| 56 |
+
<li><a href="#" class="hover:underline">Home</a></li>
|
| 57 |
+
<li><a href="#" class="hover:underline">Pricing</a></li>
|
| 58 |
+
<li><a href="#" class="hover:underline">FAQ</a></li>
|
| 59 |
+
<li><a href="#" class="hover:underline">Contact</a></li>
|
| 60 |
+
</ul>
|
| 61 |
+
</nav>
|
| 62 |
+
<button class="bg-white text-purple-600 px-4 py-2 rounded-full font-semibold hover:bg-purple-100 transition">Sign In</button>
|
| 63 |
+
</div>
|
| 64 |
+
<div class="mt-12 text-center pb-16">
|
| 65 |
+
<h2 class="text-4xl font-bold mb-4">List Once, Sell Everywhere</h2>
|
| 66 |
+
<p class="text-xl max-w-2xl mx-auto">Post your items to Poshmark, Mercari, and eBay simultaneously with one simple form.</p>
|
| 67 |
+
</div>
|
| 68 |
+
</div>
|
| 69 |
+
</header>
|
| 70 |
+
|
| 71 |
+
<!-- Main Content -->
|
| 72 |
+
<main class="container mx-auto px-4 py-12 -mt-10">
|
| 73 |
+
<div class="bg-white rounded-xl shadow-lg overflow-hidden">
|
| 74 |
+
<!-- Progress Bar -->
|
| 75 |
+
<div class="bg-gray-200 h-2">
|
| 76 |
+
<div class="progress-bar bg-purple-600 h-2 w-1/4"></div>
|
| 77 |
+
</div>
|
| 78 |
+
|
| 79 |
+
<!-- Form Tabs -->
|
| 80 |
+
<div class="flex border-b">
|
| 81 |
+
<button class="tab-active px-6 py-4 font-medium" data-tab="details">Item Details</button>
|
| 82 |
+
<button class="px-6 py-4 font-medium text-gray-500" data-tab="options">Marketplace Options</button>
|
| 83 |
+
<button class="px-6 py-4 font-medium text-gray-500" data-tab="review">Review & Post</button>
|
| 84 |
+
<button class="px-6 py-4 font-medium text-gray-500" data-tab="success">Success</button>
|
| 85 |
+
</div>
|
| 86 |
+
|
| 87 |
+
<!-- Form Content - Item Details -->
|
| 88 |
+
<div class="p-8 tab-content" id="details-tab">
|
| 89 |
+
<h3 class="text-2xl font-bold mb-6">Tell us about your item</h3>
|
| 90 |
+
|
| 91 |
+
<!-- Image Upload -->
|
| 92 |
+
<div class="mb-8">
|
| 93 |
+
<label class="block text-gray-700 font-medium mb-2">Photos (up to 12)</label>
|
| 94 |
+
<div class="grid grid-cols-3 md:grid-cols-6 gap-4" id="image-container">
|
| 95 |
+
<div class="image-preview border-2 border-dashed border-gray-300 rounded-lg h-24 flex items-center justify-center cursor-pointer hover:border-purple-400 transition">
|
| 96 |
+
<div class="text-center">
|
| 97 |
+
<i class="fas fa-camera text-gray-400 text-2xl mb-1"></i>
|
| 98 |
+
<p class="text-xs text-gray-500">Add Photo</p>
|
| 99 |
+
</div>
|
| 100 |
+
<input type="file" id="image-upload" class="hidden" accept="image/*" multiple>
|
| 101 |
+
</div>
|
| 102 |
+
<div class="image-preview hidden"></div>
|
| 103 |
+
<div class="image-preview hidden"></div>
|
| 104 |
+
<div class="image-preview hidden"></div>
|
| 105 |
+
<div class="image-preview hidden"></div>
|
| 106 |
+
<div class="image-preview hidden"></div>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
|
| 110 |
+
<!-- Item Details Form -->
|
| 111 |
+
<form id="item-form">
|
| 112 |
+
<div class="grid md:grid-cols-2 gap-6 mb-6">
|
| 113 |
+
<div>
|
| 114 |
+
<label for="title" class="block text-gray-700 font-medium mb-2">Title*</label>
|
| 115 |
+
<input type="text" id="title" required class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-purple-400 focus:border-purple-400" placeholder="e.g. Nike Air Jordan 1 Retro High OG">
|
| 116 |
+
</div>
|
| 117 |
+
<div>
|
| 118 |
+
<label for="category" class="block text-gray-700 font-medium mb-2">Category*</label>
|
| 119 |
+
<select id="category" required class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-purple-400 focus:border-purple-400">
|
| 120 |
+
<option value="">Select a category</option>
|
| 121 |
+
<option value="clothing">Clothing</option>
|
| 122 |
+
<option value="shoes">Shoes</option>
|
| 123 |
+
<option value="accessories">Accessories</option>
|
| 124 |
+
<option value="electronics">Electronics</option>
|
| 125 |
+
<option value="home">Home</option>
|
| 126 |
+
<option value="beauty">Beauty</option>
|
| 127 |
+
<option value="toys">Toys</option>
|
| 128 |
+
<option value="other">Other</option>
|
| 129 |
+
</select>
|
| 130 |
+
</div>
|
| 131 |
+
</div>
|
| 132 |
+
|
| 133 |
+
<div class="mb-6">
|
| 134 |
+
<label for="description" class="block text-gray-700 font-medium mb-2">Description*</label>
|
| 135 |
+
<textarea id="description" required rows="4" class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-purple-400 focus:border-purple-400" placeholder="Describe your item in detail..."></textarea>
|
| 136 |
+
</div>
|
| 137 |
+
|
| 138 |
+
<div class="grid md:grid-cols-3 gap-6 mb-8">
|
| 139 |
+
<div>
|
| 140 |
+
<label for="brand" class="block text-gray-700 font-medium mb-2">Brand</label>
|
| 141 |
+
<input type="text" id="brand" class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-purple-400 focus:border-purple-400" placeholder="e.g. Nike, Apple">
|
| 142 |
+
</div>
|
| 143 |
+
<div>
|
| 144 |
+
<label for="condition" class="block text-gray-700 font-medium mb-2">Condition*</label>
|
| 145 |
+
<select id="condition" required class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-purple-400 focus:border-purple-400">
|
| 146 |
+
<option value="">Select condition</option>
|
| 147 |
+
<option value="new">New with tags</option>
|
| 148 |
+
<option value="new_no_tags">New without tags</option>
|
| 149 |
+
<option value="excellent">Excellent used condition</option>
|
| 150 |
+
<option value="good">Good used condition</option>
|
| 151 |
+
<option value="fair">Fair used condition</option>
|
| 152 |
+
</select>
|
| 153 |
+
</div>
|
| 154 |
+
<div>
|
| 155 |
+
<label for="color" class="block text-gray-700 font-medium mb-2">Color</label>
|
| 156 |
+
<input type="text" id="color" class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-purple-400 focus:border-purple-400" placeholder="e.g. Black, Red">
|
| 157 |
+
</div>
|
| 158 |
+
</div>
|
| 159 |
+
|
| 160 |
+
<div class="grid md:grid-cols-2 gap-6 mb-8">
|
| 161 |
+
<div>
|
| 162 |
+
<label for="price" class="block text-gray-700 font-medium mb-2">Price*</label>
|
| 163 |
+
<div class="relative">
|
| 164 |
+
<span class="absolute left-3 top-2 text-gray-500">$</span>
|
| 165 |
+
<input type="number" id="price" required step="0.01" min="0" class="w-full pl-8 pr-4 py-2 border rounded-lg focus:ring-2 focus:ring-purple-400 focus:border-purple-400" placeholder="0.00">
|
| 166 |
+
</div>
|
| 167 |
+
</div>
|
| 168 |
+
<div>
|
| 169 |
+
<label for="shipping" class="block text-gray-700 font-medium mb-2">Shipping Options</label>
|
| 170 |
+
<select id="shipping" class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-purple-400 focus:border-purple-400">
|
| 171 |
+
<option value="free">Free shipping</option>
|
| 172 |
+
<option value="calculated">Calculated shipping</option>
|
| 173 |
+
<option value="flat">Flat rate: $4.99</option>
|
| 174 |
+
</select>
|
| 175 |
+
</div>
|
| 176 |
+
</div>
|
| 177 |
+
|
| 178 |
+
<div class="flex justify-between">
|
| 179 |
+
<button type="button" class="px-6 py-2 text-gray-600 font-medium rounded-lg border hover:bg-gray-50">Cancel</button>
|
| 180 |
+
<button type="button" id="next-to-options" class="px-6 py-2 bg-purple-600 text-white font-medium rounded-lg hover:bg-purple-700 transition">Next: Marketplace Options</button>
|
| 181 |
+
</div>
|
| 182 |
+
</form>
|
| 183 |
+
</div>
|
| 184 |
+
|
| 185 |
+
<!-- Form Content - Marketplace Options -->
|
| 186 |
+
<div class="p-8 tab-content hidden" id="options-tab">
|
| 187 |
+
<h3 class="text-2xl font-bold mb-6">Select Marketplaces</h3>
|
| 188 |
+
|
| 189 |
+
<!-- Marketplace Selection -->
|
| 190 |
+
<div class="mb-8">
|
| 191 |
+
<label class="block text-gray-700 font-medium mb-4">Select Marketplaces*</label>
|
| 192 |
+
<div class="grid md:grid-cols-3 gap-4">
|
| 193 |
+
<!-- Poshmark Card -->
|
| 194 |
+
<div class="platform-card bg-white border rounded-lg p-4 cursor-pointer hover:border-purple-400">
|
| 195 |
+
<div class="flex items-center mb-3">
|
| 196 |
+
<img src="https://play-lh.googleusercontent.com/5Xz2y0Z3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9" alt="Poshmark" class="w-8 h-8 rounded-full mr-2">
|
| 197 |
+
<h4 class="font-semibold">Poshmark</h4>
|
| 198 |
+
</div>
|
| 199 |
+
<p class="text-sm text-gray-600 mb-3">Best for clothing, shoes & accessories</p>
|
| 200 |
+
<div class="flex items-center">
|
| 201 |
+
<input type="checkbox" id="poshmark" class="mr-2 h-4 w-4 text-purple-600 focus:ring-purple-400" checked>
|
| 202 |
+
<label for="poshmark" class="text-sm">List on Poshmark</label>
|
| 203 |
+
</div>
|
| 204 |
+
</div>
|
| 205 |
+
|
| 206 |
+
<!-- Mercari Card -->
|
| 207 |
+
<div class="platform-card bg-white border rounded-lg p-4 cursor-pointer hover:border-purple-400">
|
| 208 |
+
<div class="flex items-center mb-3">
|
| 209 |
+
<img src="https://play-lh.googleusercontent.com/5Xz2y0Z3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9" alt="Mercari" class="w-8 h-8 rounded-full mr-2">
|
| 210 |
+
<h4 class="font-semibold">Mercari</h4>
|
| 211 |
+
</div>
|
| 212 |
+
<p class="text-sm text-gray-600 mb-3">Great for electronics, home goods & more</p>
|
| 213 |
+
<div class="flex items-center">
|
| 214 |
+
<input type="checkbox" id="mercari" class="mr-2 h-4 w-4 text-purple-600 focus:ring-purple-400" checked>
|
| 215 |
+
<label for="mercari" class="text-sm">List on Mercari</label>
|
| 216 |
+
</div>
|
| 217 |
+
</div>
|
| 218 |
+
|
| 219 |
+
<!-- eBay Card -->
|
| 220 |
+
<div class="platform-card bg-white border rounded-lg p-4 cursor-pointer hover:border-purple-400">
|
| 221 |
+
<div class="flex items-center mb-3">
|
| 222 |
+
<img src="https://play-lh.googleusercontent.com/5Xz2y0Z3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9" alt="eBay" class="w-8 h-8 rounded-full mr-2">
|
| 223 |
+
<h4 class="font-semibold">eBay</h4>
|
| 224 |
+
</div>
|
| 225 |
+
<p class="text-sm text-gray-600 mb-3">Ideal for collectibles and rare items</p>
|
| 226 |
+
<div class="flex items-center">
|
| 227 |
+
<input type="checkbox" id="ebay" class="mr-2 h-4 w-4 text-purple-600 focus:ring-purple-400" checked>
|
| 228 |
+
<label for="ebay" class="text-sm">List on eBay</label>
|
| 229 |
+
</div>
|
| 230 |
+
</div>
|
| 231 |
+
</div>
|
| 232 |
+
</div>
|
| 233 |
+
|
| 234 |
+
<div class="flex justify-between">
|
| 235 |
+
<button type="button" id="back-to-details" class="px-6 py-2 text-gray-600 font-medium rounded-lg border hover:bg-gray-50">Back</button>
|
| 236 |
+
<button type="button" id="next-to-review" class="px-6 py-2 bg-purple-600 text-white font-medium rounded-lg hover:bg-purple-700 transition">Next: Review & Post</button>
|
| 237 |
+
</div>
|
| 238 |
+
</div>
|
| 239 |
+
|
| 240 |
+
<!-- Form Content - Review & Post -->
|
| 241 |
+
<div class="p-8 tab-content hidden" id="review-tab">
|
| 242 |
+
<h3 class="text-2xl font-bold mb-6">Review Your Listing</h3>
|
| 243 |
+
|
| 244 |
+
<div class="grid md:grid-cols-3 gap-8 mb-8">
|
| 245 |
+
<!-- Item Preview -->
|
| 246 |
+
<div class="md:col-span-2">
|
| 247 |
+
<div class="bg-white border rounded-lg p-6">
|
| 248 |
+
<h4 class="font-semibold text-lg mb-4">Item Preview</h4>
|
| 249 |
+
|
| 250 |
+
<div class="grid grid-cols-3 gap-2 mb-4" id="review-images">
|
| 251 |
+
<!-- Images will be added here by JavaScript -->
|
| 252 |
+
</div>
|
| 253 |
+
|
| 254 |
+
<h5 class="font-medium text-lg" id="review-title">Item Title</h5>
|
| 255 |
+
<p class="text-gray-600 mb-2" id="review-price">$0.00</p>
|
| 256 |
+
<p class="text-sm text-gray-500 mb-4" id="review-condition">Condition: New</p>
|
| 257 |
+
<p class="text-gray-700" id="review-description">Item description goes here...</p>
|
| 258 |
+
</div>
|
| 259 |
+
</div>
|
| 260 |
+
|
| 261 |
+
<!-- Marketplace Summary -->
|
| 262 |
+
<div>
|
| 263 |
+
<div class="bg-white border rounded-lg p-6">
|
| 264 |
+
<h4 class="font-semibold text-lg mb-4">Posting To</h4>
|
| 265 |
+
|
| 266 |
+
<ul class="space-y-3">
|
| 267 |
+
<li class="flex items-center" id="poshmark-review">
|
| 268 |
+
<i class="fas fa-check-circle text-green-500 mr-2"></i>
|
| 269 |
+
<span>Poshmark</span>
|
| 270 |
+
</li>
|
| 271 |
+
<li class="flex items-center" id="mercari-review">
|
| 272 |
+
<i class="fas fa-check-circle text-green-500 mr-2"></i>
|
| 273 |
+
<span>Mercari</span>
|
| 274 |
+
</li>
|
| 275 |
+
<li class="flex items-center" id="ebay-review">
|
| 276 |
+
<i class="fas fa-check-circle text-green-500 mr-2"></i>
|
| 277 |
+
<span>eBay</span>
|
| 278 |
+
</li>
|
| 279 |
+
</ul>
|
| 280 |
+
|
| 281 |
+
<div class="mt-6 pt-4 border-t">
|
| 282 |
+
<p class="text-sm text-gray-500">By clicking "Post Listings", you agree to our Terms of Service.</p>
|
| 283 |
+
<button id="post-listings" class="w-full mt-4 px-6 py-3 bg-green-600 text-white font-medium rounded-lg hover:bg-green-700 transition flex items-center justify-center">
|
| 284 |
+
<span>Post Listings</span>
|
| 285 |
+
<span class="loading-spinner ml-2 hidden"></span>
|
| 286 |
+
</button>
|
| 287 |
+
</div>
|
| 288 |
+
</div>
|
| 289 |
+
</div>
|
| 290 |
+
</div>
|
| 291 |
+
|
| 292 |
+
<div class="flex justify-between">
|
| 293 |
+
<button type="button" id="back-to-options" class="px-6 py-2 text-gray-600 font-medium rounded-lg border hover:bg-gray-50">Back</button>
|
| 294 |
+
<button type="button" class="px-6 py-2 text-gray-600 font-medium rounded-lg border hover:bg-gray-50">Save Draft</button>
|
| 295 |
+
</div>
|
| 296 |
+
</div>
|
| 297 |
+
|
| 298 |
+
<!-- Form Content - Success -->
|
| 299 |
+
<div class="p-8 tab-content hidden" id="success-tab">
|
| 300 |
+
<div class="text-center py-12">
|
| 301 |
+
<div class="w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6">
|
| 302 |
+
<i class="fas fa-check text-green-600 text-3xl"></i>
|
| 303 |
+
</div>
|
| 304 |
+
<h3 class="text-2xl font-bold mb-2">Listings Posted Successfully!</h3>
|
| 305 |
+
<p class="text-gray-600 mb-8 max-w-md mx-auto">Your item has been successfully posted to all selected marketplaces. You can view and manage your listings from your dashboard.</p>
|
| 306 |
+
|
| 307 |
+
<div class="grid md:grid-cols-3 gap-4 max-w-2xl mx-auto mb-8">
|
| 308 |
+
<div class="bg-white border rounded-lg p-4">
|
| 309 |
+
<div class="flex items-center justify-center mb-2">
|
| 310 |
+
<img src="https://play-lh.googleusercontent.com/5Xz2y0Z3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9" alt="Poshmark" class="w-8 h-8 rounded-full mr-2">
|
| 311 |
+
<span class="font-medium">Poshmark</span>
|
| 312 |
+
</div>
|
| 313 |
+
<a href="#" class="text-sm text-purple-600 hover:underline" id="poshmark-link">View Listing</a>
|
| 314 |
+
</div>
|
| 315 |
+
<div class="bg-white border rounded-lg p-4">
|
| 316 |
+
<div class="flex items-center justify-center mb-2">
|
| 317 |
+
<img src="https://play-lh.googleusercontent.com/5Xz2y0Z3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9" alt="Mercari" class="w-8 h-8 rounded-full mr-2">
|
| 318 |
+
<span class="font-medium">Mercari</span>
|
| 319 |
+
</div>
|
| 320 |
+
<a href="#" class="text-sm text-purple-600 hover:underline" id="mercari-link">View Listing</a>
|
| 321 |
+
</div>
|
| 322 |
+
<div class="bg-white border rounded-lg p-4">
|
| 323 |
+
<div class="flex items-center justify-center mb-2">
|
| 324 |
+
<img src="https://play-lh.googleusercontent.com/5Xz2y0Z3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9y9Q3XqQZQ0Q9" alt="eBay" class="w-8 h-8 rounded-full mr-2">
|
| 325 |
+
<span class="font-medium">eBay</span>
|
| 326 |
+
</div>
|
| 327 |
+
<a href="#" class="text-sm text-purple-600 hover:underline" id="ebay-link">View Listing</a>
|
| 328 |
+
</div>
|
| 329 |
+
</div>
|
| 330 |
+
|
| 331 |
+
<div class="flex justify-center space-x-4">
|
| 332 |
+
<button class="px-6 py-2 bg-purple-600 text-white font-medium rounded-lg hover:bg-purple-700 transition">Post Another Item</button>
|
| 333 |
+
<button class="px-6 py-2 border border-gray-300 font-medium rounded-lg hover:bg-gray-50 transition">Go to Dashboard</button>
|
| 334 |
+
</div>
|
| 335 |
+
</div>
|
| 336 |
+
</div>
|
| 337 |
+
</div>
|
| 338 |
+
|
| 339 |
+
<!-- Features Section -->
|
| 340 |
+
<section class="mt-16">
|
| 341 |
+
<h2 class="text-3xl font-bold text-center mb-12">Why Use CrossList?</h2>
|
| 342 |
+
<div class="grid md:grid-cols-3 gap-8">
|
| 343 |
+
<div class="bg-white p-6 rounded-lg shadow-md text-center">
|
| 344 |
+
<div class="text-purple-600 text-4xl mb-4">
|
| 345 |
+
<i class="fas fa-stopwatch"></i>
|
| 346 |
+
</div>
|
| 347 |
+
<h3 class="text-xl font-semibold mb-2">Save Time</h3>
|
| 348 |
+
<p class="text-gray-600">List once and your item appears on multiple marketplaces simultaneously, saving you hours of work.</p>
|
| 349 |
+
</div>
|
| 350 |
+
<div class="bg-white p-6 rounded-lg shadow-md text-center">
|
| 351 |
+
<div class="text-purple-600 text-4xl mb-4">
|
| 352 |
+
<i class="fas fa-chart-line"></i>
|
| 353 |
+
</div>
|
| 354 |
+
<h3 class="text-xl font-semibold mb-2">Maximize Exposure</h3>
|
| 355 |
+
<p class="text-gray-600">Reach millions of potential buyers across Poshmark, Mercari, and eBay with a single listing.</p>
|
| 356 |
+
</div>
|
| 357 |
+
<div class="bg-white p-6 rounded-lg shadow-md text-center">
|
| 358 |
+
<div class="text-purple-600 text-4xl mb-4">
|
| 359 |
+
<i class="fas fa-sliders-h"></i>
|
| 360 |
+
</div>
|
| 361 |
+
<h3 class="text-xl font-semibold mb-2">Customize Per Platform</h3>
|
| 362 |
+
<p class="text-gray-600">Tailor your listings for each marketplace's unique requirements while maintaining consistency.</p>
|
| 363 |
+
</div>
|
| 364 |
+
</div>
|
| 365 |
+
</section>
|
| 366 |
+
</main>
|
| 367 |
+
|
| 368 |
+
<!-- Footer -->
|
| 369 |
+
<footer class="bg-gray-800 text-white py-12 mt-16">
|
| 370 |
+
<div class="container mx-auto px-4">
|
| 371 |
+
<div class="grid md:grid-cols-4 gap-8">
|
| 372 |
+
<div>
|
| 373 |
+
<h3 class="text-xl font-bold mb-4">CrossList</h3>
|
| 374 |
+
<p class="text-gray-400">The easiest way to sell across multiple marketplaces with one simple listing.</p>
|
| 375 |
+
</div>
|
| 376 |
+
<div>
|
| 377 |
+
<h4 class="font-semibold mb-4">Marketplaces</h4>
|
| 378 |
+
<ul class="space-y-2">
|
| 379 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Poshmark</a></li>
|
| 380 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Mercari</a></li>
|
| 381 |
+
<li><a href="#" class="text-gray-400 hover:text-white">eBay</a></li>
|
| 382 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Coming Soon</a></li>
|
| 383 |
+
</ul>
|
| 384 |
+
</div>
|
| 385 |
+
<div>
|
| 386 |
+
<h4 class="font-semibold mb-4">Resources</h4>
|
| 387 |
+
<ul class="space-y-2">
|
| 388 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Blog</a></li>
|
| 389 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Selling Tips</a></li>
|
| 390 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Pricing Guide</a></li>
|
| 391 |
+
<li><a href="#" class="text-gray-400 hover:text-white">API</a></li>
|
| 392 |
+
</ul>
|
| 393 |
+
</div>
|
| 394 |
+
<div>
|
| 395 |
+
<h4 class="font-semibold mb-4">Connect</h4>
|
| 396 |
+
<div class="flex space-x-4 mb-4">
|
| 397 |
+
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-facebook"></i></a>
|
| 398 |
+
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-twitter"></i></a>
|
| 399 |
+
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-instagram"></i></a>
|
| 400 |
+
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-pinterest"></i></a>
|
| 401 |
+
</div>
|
| 402 |
+
<p class="text-gray-400">Subscribe to our newsletter</p>
|
| 403 |
+
<div class="mt-2 flex">
|
| 404 |
+
<input type="email" placeholder="Your email" class="px-3 py-2 text-gray-800 rounded-l">
|
| 405 |
+
<button class="bg-purple-600 px-3 py-2 rounded-r hover:bg-purple-700"><i class="fas fa-paper-plane"></i></button>
|
| 406 |
+
</div>
|
| 407 |
+
</div>
|
| 408 |
+
</div>
|
| 409 |
+
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
|
| 410 |
+
<p>© 2023 CrossList. All rights reserved.</p>
|
| 411 |
+
</div>
|
| 412 |
+
</div>
|
| 413 |
+
</footer>
|
| 414 |
+
|
| 415 |
+
<script>
|
| 416 |
+
// Global variables
|
| 417 |
+
let uploadedImages = [];
|
| 418 |
+
let selectedPlatforms = {
|
| 419 |
+
poshmark: true,
|
| 420 |
+
mercari: true,
|
| 421 |
+
ebay: true
|
| 422 |
+
};
|
| 423 |
+
|
| 424 |
+
// Tab switching functionality
|
| 425 |
+
function switchTab(tabName) {
|
| 426 |
+
// Hide all tab contents
|
| 427 |
+
document.querySelectorAll('.tab-content').forEach(tab => {
|
| 428 |
+
tab.classList.add('hidden');
|
| 429 |
+
});
|
| 430 |
+
|
| 431 |
+
// Show selected tab content
|
| 432 |
+
document.getElementById(`${tabName}-tab`).classList.remove('hidden');
|
| 433 |
+
|
| 434 |
+
// Update tab styling
|
| 435 |
+
document.querySelectorAll('.flex.border-b button').forEach(tab => {
|
| 436 |
+
tab.classList.remove('tab-active', 'text-purple-600');
|
| 437 |
+
tab.classList.add('text-gray-500');
|
| 438 |
+
|
| 439 |
+
if (tab.dataset.tab === tabName) {
|
| 440 |
+
tab.classList.add('tab-active', 'text-purple-600');
|
| 441 |
+
tab.classList.remove('text-gray-500');
|
| 442 |
+
}
|
| 443 |
+
});
|
| 444 |
+
|
| 445 |
+
// Update progress bar
|
| 446 |
+
const progressBar = document.querySelector('.progress-bar');
|
| 447 |
+
if (tabName === 'details') {
|
| 448 |
+
progressBar.style.width = '25%';
|
| 449 |
+
} else if (tabName === 'options') {
|
| 450 |
+
progressBar.style.width = '50%';
|
| 451 |
+
} else if (tabName === 'review') {
|
| 452 |
+
progressBar.style.width = '75%';
|
| 453 |
+
updateReviewSection();
|
| 454 |
+
} else if (tabName === 'success') {
|
| 455 |
+
progressBar.style.width = '100%';
|
| 456 |
+
}
|
| 457 |
+
}
|
| 458 |
+
|
| 459 |
+
// Image upload functionality
|
| 460 |
+
document.getElementById('image-upload').addEventListener('change', function(e) {
|
| 461 |
+
const files = e.target.files;
|
| 462 |
+
const previews = document.querySelectorAll('#image-container .image-preview');
|
| 463 |
+
|
| 464 |
+
// Clear previous uploads
|
| 465 |
+
uploadedImages = [];
|
| 466 |
+
previews.forEach((preview, index) => {
|
| 467 |
+
if (index > 0) preview.classList.add('hidden');
|
| 468 |
+
preview.style.backgroundImage = '';
|
| 469 |
+
preview.innerHTML = '';
|
| 470 |
+
});
|
| 471 |
+
|
| 472 |
+
// Process new files
|
| 473 |
+
for (let i = 0; i < Math.min(files.length, 6); i++) {
|
| 474 |
+
const reader = new FileReader();
|
| 475 |
+
reader.onload = function(event) {
|
| 476 |
+
uploadedImages.push(event.target.result);
|
| 477 |
+
|
| 478 |
+
const previewBox = previews[i];
|
| 479 |
+
previewBox.style.backgroundImage = `url(${event.target.result})`;
|
| 480 |
+
previewBox.innerHTML = '';
|
| 481 |
+
previewBox.classList.remove('border-dashed');
|
| 482 |
+
|
| 483 |
+
if (i === 0) {
|
| 484 |
+
// First box is the upload box, we've replaced it
|
| 485 |
+
// Add a new upload box at the end if we have space
|
| 486 |
+
if (files.length < 6) {
|
| 487 |
+
const uploadBox = document.createElement('div');
|
| 488 |
+
uploadBox.className = 'image-preview border-2 border-dashed border-gray-300 rounded-lg h-24 flex items-center justify-center cursor-pointer hover:border-purple-400 transition';
|
| 489 |
+
uploadBox.innerHTML = `
|
| 490 |
+
<div class="text-center">
|
| 491 |
+
<i class="fas fa-camera text-gray-400 text-2xl mb-1"></i>
|
| 492 |
+
<p class="text-xs text-gray-500">Add Photo</p>
|
| 493 |
+
</div>
|
| 494 |
+
<input type="file" class="hidden" accept="image/*" multiple>
|
| 495 |
+
`;
|
| 496 |
+
uploadBox.querySelector('input').addEventListener('change', function(e) {
|
| 497 |
+
document.getElementById('image-upload').dispatchEvent(new Event('change'));
|
| 498 |
+
});
|
| 499 |
+
document.getElementById('image-container').appendChild(uploadBox);
|
| 500 |
+
}
|
| 501 |
+
}
|
| 502 |
+
}
|
| 503 |
+
reader.readAsDataURL(files[i]);
|
| 504 |
+
}
|
| 505 |
+
});
|
| 506 |
+
|
| 507 |
+
// Marketplace selection
|
| 508 |
+
document.getElementById('poshmark').addEventListener('change', function() {
|
| 509 |
+
selectedPlatforms.poshmark = this.checked;
|
| 510 |
+
});
|
| 511 |
+
document.getElementById('mercari').addEventListener('change', function() {
|
| 512 |
+
selectedPlatforms.mercari = this.checked;
|
| 513 |
+
});
|
| 514 |
+
document.getElementById('ebay').addEventListener('change', function() {
|
| 515 |
+
selectedPlatforms.ebay = this.checked;
|
| 516 |
+
});
|
| 517 |
+
|
| 518 |
+
// Navigation buttons
|
| 519 |
+
document.getElementById('next-to-options').addEventListener('click', function() {
|
| 520 |
+
// Validate form
|
| 521 |
+
const form = document.getElementById('item-form');
|
| 522 |
+
const requiredFields = form.querySelectorAll('[required]');
|
| 523 |
+
let isValid = true;
|
| 524 |
+
|
| 525 |
+
requiredFields.forEach(field => {
|
| 526 |
+
if (!field.value) {
|
| 527 |
+
field.classList.add('border-red-500');
|
| 528 |
+
isValid = false;
|
| 529 |
+
} else {
|
| 530 |
+
field.classList.remove('border-red-500');
|
| 531 |
+
}
|
| 532 |
+
});
|
| 533 |
+
|
| 534 |
+
if (isValid) {
|
| 535 |
+
switchTab('options');
|
| 536 |
+
} else {
|
| 537 |
+
alert('Please fill in all required fields.');
|
| 538 |
+
}
|
| 539 |
+
});
|
| 540 |
+
|
| 541 |
+
document.getElementById('back-to-details').addEventListener('click', function() {
|
| 542 |
+
switchTab('details');
|
| 543 |
+
});
|
| 544 |
+
|
| 545 |
+
document.getElementById('next-to-review').addEventListener('click', function() {
|
| 546 |
+
// Check if at least one platform is selected
|
| 547 |
+
if (!selectedPlatforms.poshmark && !selectedPlatforms.mercari && !selectedPlatforms.ebay) {
|
| 548 |
+
alert('Please select at least one marketplace to post to.');
|
| 549 |
+
return;
|
| 550 |
+
}
|
| 551 |
+
|
| 552 |
+
switchTab('review');
|
| 553 |
+
});
|
| 554 |
+
|
| 555 |
+
document.getElementById('back-to-options').addEventListener('click', function() {
|
| 556 |
+
switchTab('options');
|
| 557 |
+
});
|
| 558 |
+
|
| 559 |
+
// Update review section with form data
|
| 560 |
+
function updateReviewSection() {
|
| 561 |
+
// Update images
|
| 562 |
+
const reviewImagesContainer = document.getElementById('review-images');
|
| 563 |
+
reviewImagesContainer.innerHTML = '';
|
| 564 |
+
|
| 565 |
+
uploadedImages.slice(0, 3).forEach(image => {
|
| 566 |
+
const imgDiv = document.createElement('div');
|
| 567 |
+
imgDiv.className = 'h-24 bg-cover bg-center rounded';
|
| 568 |
+
imgDiv.style.backgroundImage = `url(${image})`;
|
| 569 |
+
reviewImagesContainer.appendChild(imgDiv);
|
| 570 |
+
});
|
| 571 |
+
|
| 572 |
+
// Update item details
|
| 573 |
+
document.getElementById('review-title').textContent = document.getElementById('title').value;
|
| 574 |
+
document.getElementById('review-price').textContent = `$${parseFloat(document.getElementById('price').value).toFixed(2)}`;
|
| 575 |
+
document.getElementById('review-condition').textContent = `Condition: ${document.getElementById('condition').options[document.getElementById('condition').selectedIndex].text}`;
|
| 576 |
+
document.getElementById('review-description').textContent = document.getElementById('description').value;
|
| 577 |
+
|
| 578 |
+
// Update platform selection
|
| 579 |
+
document.getElementById('poshmark-review').style.display = selectedPlatforms.poshmark ? 'flex' : 'none';
|
| 580 |
+
document.getElementById('mercari-review').style.display = selectedPlatforms.mercari ? 'flex' : 'none';
|
| 581 |
+
document.getElementById('ebay-review').style.display = selectedPlatforms.ebay ? 'flex' : 'none';
|
| 582 |
+
}
|
| 583 |
+
|
| 584 |
+
// Post listings to backend
|
| 585 |
+
document.getElementById('post-listings').addEventListener('click', function() {
|
| 586 |
+
const button = this;
|
| 587 |
+
const spinner = button.querySelector('.loading-spinner');
|
| 588 |
+
|
| 589 |
+
// Show loading state
|
| 590 |
+
button.disabled = true;
|
| 591 |
+
spinner.classList.remove('hidden');
|
| 592 |
+
|
| 593 |
+
// Prepare item data
|
| 594 |
+
const item = {
|
| 595 |
+
title: document.getElementById('title').value,
|
| 596 |
+
description: document.getElementById('description').value,
|
| 597 |
+
price: parseFloat(document.getElementById('price').value).toFixed(2),
|
| 598 |
+
images: uploadedImages,
|
| 599 |
+
category: document.getElementById('category').value,
|
| 600 |
+
brand: document.getElementById('brand').value,
|
| 601 |
+
condition: document.getElementById('condition').value,
|
| 602 |
+
color: document.getElementById('color').value,
|
| 603 |
+
shipping: document.getElementById('shipping').value,
|
| 604 |
+
platforms: selectedPlatforms
|
| 605 |
+
};
|
| 606 |
+
|
| 607 |
+
// Simulate API call (replace with actual fetch to your Flask backend)
|
| 608 |
+
setTimeout(() => {
|
| 609 |
+
// In a real implementation, you would use fetch:
|
| 610 |
+
/*
|
| 611 |
+
fetch('/post_item', {
|
| 612 |
+
method: 'POST',
|
| 613 |
+
headers: {
|
| 614 |
+
'Content-Type': 'application/json',
|
| 615 |
+
},
|
| 616 |
+
body: JSON.stringify(item)
|
| 617 |
+
})
|
| 618 |
+
.then(response => response.json())
|
| 619 |
+
.then(data => {
|
| 620 |
+
// Handle success
|
| 621 |
+
switchTab('success');
|
| 622 |
+
|
| 623 |
+
// Update success links (these would come from the API response in a real implementation)
|
| 624 |
+
if (selectedPlatforms.poshmark) {
|
| 625 |
+
document.getElementById('poshmark-link').href = "#"; // Replace with actual link
|
| 626 |
+
}
|
| 627 |
+
if (selectedPlatforms.mercari) {
|
| 628 |
+
document.getElementById('mercari-link').href = "#"; // Replace with actual link
|
| 629 |
+
}
|
| 630 |
+
if (selectedPlatforms.ebay) {
|
| 631 |
+
document.getElementById('ebay-link').href = "#"; // Replace with actual link
|
| 632 |
+
}
|
| 633 |
+
})
|
| 634 |
+
.catch((error) => {
|
| 635 |
+
console.error('Error:', error);
|
| 636 |
+
alert('There was an error posting your listings. Please try again.');
|
| 637 |
+
})
|
| 638 |
+
.finally(() => {
|
| 639 |
+
button.disabled = false;
|
| 640 |
+
spinner.classList.add('hidden');
|
| 641 |
+
});
|
| 642 |
+
*/
|
| 643 |
+
|
| 644 |
+
// For demo purposes, we'll just simulate success
|
| 645 |
+
switchTab('success');
|
| 646 |
+
|
| 647 |
+
// Update success links (simulated)
|
| 648 |
+
if (selectedPlatforms.poshmark) {
|
| 649 |
+
document.getElementById('poshmark-link').href = "#";
|
| 650 |
+
}
|
| 651 |
+
if (selectedPlatforms.mercari) {
|
| 652 |
+
document.getElementById('mercari-link').href = "#";
|
| 653 |
+
}
|
| 654 |
+
if (selectedPlatforms.ebay) {
|
| 655 |
+
document.getElementById('ebay-link').href = "#";
|
| 656 |
+
}
|
| 657 |
+
|
| 658 |
+
button.disabled = false;
|
| 659 |
+
spinner.classList.add('hidden');
|
| 660 |
+
}, 1500);
|
| 661 |
+
});
|
| 662 |
+
|
| 663 |
+
// Initialize
|
| 664 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 665 |
+
// Make first image upload box clickable
|
| 666 |
+
document.querySelector('.image-preview').addEventListener('click', function() {
|
| 667 |
+
document.getElementById('image-upload').click();
|
| 668 |
+
});
|
| 669 |
+
|
| 670 |
+
// Initialize tab system
|
| 671 |
+
switchTab('details');
|
| 672 |
+
});
|
| 673 |
+
</script>
|
| 674 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - <a href="https://enzostvs-deepsite.hf.space?remix=Philly123ez/crosslisting" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
|
| 675 |
+
</html>
|