File size: 21,309 Bytes
9839720 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 | <!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Superfuel | Add Competitor Keywords Workflow</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-[#0B0C0F] text-[#E6E6E6] font-inter">
<div class="flex h-screen">
<!-- Left Sidebar -->
<div class="w-64 bg-[#131417] border-r border-[#2B2C2F] p-4">
<div class="flex items-center mb-8">
<i data-feather="zap" class="text-[#2563EB] mr-2"></i>
<h2 class="font-semibold">Superfuel</h2>
</div>
<nav>
<ul class="space-y-2">
<li class="flex items-center p-2 rounded hover:bg-[#1E1F23]">
<i data-feather="home" class="w-4 h-4 mr-2 text-[#A0A3A8]"></i>
<span>Dashboard</span>
</li>
<li class="flex items-center p-2 rounded bg-[#1E1F23]">
<i data-feather="layers" class="w-4 h-4 mr-2 text-[#2563EB]"></i>
<span class="font-medium">Workflows</span>
</li>
<li class="flex items-center p-2 rounded hover:bg-[#1E1F23]">
<i data-feather="database" class="w-4 h-4 mr-2 text-[#A0A3A8]"></i>
<span>Data Sources</span>
</li>
</ul>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<header class="border-b border-[#2B2C2F] p-4">
<h1 class="text-xl font-semibold">Add Competitor Keywords to the Bullet Points</h1>
</header>
<main class="p-6 max-w-4xl mx-auto">
<div class="space-y-6">
<!-- Step 1 -->
<div class="bg-[#131417] rounded-lg border border-[#2B2C2F] overflow-hidden">
<div class="p-4 flex items-start">
<div class="bg-[#2563EB] text-white rounded-full w-6 h-6 flex items-center justify-center mr-3 mt-1 flex-shrink-0">1</div>
<div class="flex-1">
<div class="flex justify-between items-start">
<div>
<h3 class="font-medium">Get ASIN from Context</h3>
<p class="text-sm text-[#A0A3A8] mt-1">Context: Not selected</p>
</div>
<button id="selectContextBtn" class="bg-[#2563EB] hover:bg-[#1E55D5] text-white px-3 py-1.5 rounded-md text-sm font-medium transition-colors duration-150 ease-in-out">
Select Context
</button>
</div>
<!-- Context Selection Panel (Initially hidden) -->
<div id="contextPanel" class="mt-4 hidden">
<div class="bg-[#1A1C21] rounded-lg border border-[#2B2C2F] overflow-hidden">
<!-- Tabs -->
<div class="flex border-b border-[#2B2C2F]">
<button data-tab="manual" class="tab-btn px-4 py-3 font-medium text-sm border-b-2 border-transparent hover:bg-[#22242A] active-tab">
Manual Input
</button>
<button data-tab="search" class="tab-btn px-4 py-3 font-medium text-sm border-b-2 border-transparent hover:bg-[#22242A]">
Search & Filters
</button>
<button data-tab="saved" class="tab-btn px-4 py-3 font-medium text-sm border-b-2 border-transparent hover:bg-[#22242A]">
Saved Contexts
</button>
</div>
<!-- Tab Content -->
<div class="p-4">
<!-- Manual Input Tab -->
<div id="manualTab" class="tab-content">
<div class="space-y-4">
<div>
<label class="block text-sm font-medium mb-1">Enter ASINs (comma, space, or newline separated)</label>
<textarea id="asinInput" class="w-full bg-[#1E1F23] border border-[#2B2C2F] rounded-md p-2 text-sm h-32" placeholder="B08PP5MSVB, B09XYZ1234..."></textarea>
</div>
<div class="flex items-center">
<span class="text-sm text-[#A0A3A8]">or</span>
<button class="ml-2 text-sm text-[#2563EB] hover:underline">Upload CSV file</button>
</div>
<button id="parseBtn" class="bg-[#2563EB] hover:bg-[#1E55D5] text-white px-3 py-1.5 rounded-md text-sm font-medium">
Parse & Preview
</button>
</div>
<!-- Preview Section (Initially hidden) -->
<div id="previewSection" class="mt-4 hidden">
<div class="flex justify-between items-center mb-3">
<h4 class="font-medium">Preview (50 of <span id="totalValidCount">0</span> valid products)</h4>
<div class="flex items-center space-x-2">
<button id="selectAllBtn" class="text-sm text-[#2563EB] hover:underline">Select All</button>
<button id="deselectAllBtn" class="text-sm text-[#2563EB] hover:underline">Deselect All</button>
</div>
</div>
<div id="previewGrid" class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3 max-h-96 overflow-y-auto">
<!-- Product cards will be inserted here -->
</div>
</div>
</div>
<!-- Search & Filters Tab (Initially hidden) -->
<div id="searchTab" class="tab-content hidden">
<div class="space-y-4">
<div>
<label class="block text-sm font-medium mb-1">Search products</label>
<div class="relative">
<input type="text" class="w-full bg-[#1E1F23] border border-[#2B2C2F] rounded-md p-2 text-sm" placeholder="Search by title, brand, or ASIN...">
<i data-feather="search" class="absolute right-2 top-2.5 text-[#A0A3A8] w-4 h-4"></i>
</div>
</div>
<div>
<h4 class="text-sm font-medium mb-2">Quick Filters</h4>
<div class="flex flex-wrap gap-2">
<button class="chip-btn bg-[#1E1F23] hover:bg-[#22242A] px-3 py-1 rounded-full text-sm border border-[#2B2C2F]">
Top 10% by Sales (30d)
</button>
<button class="chip-btn bg-[#1E1F23] hover:bg-[#22242A] px-3 py-1 rounded-full text-sm border border-[#2B2C2F]">
Bottom 5% CVR (30d)
</button>
<button class="chip-btn bg-[#1E1F23] hover:bg-[#22242A] px-3 py-1 rounded-full text-sm border border-[#2B2C2F]">
Sales = 0 (30d)
</button>
</div>
</div>
<div>
<h4 class="text-sm font-medium mb-2">Custom Filters</h4>
<div class="bg-[#1E1F23] border border-[#2B2C2F] rounded-md p-3 space-y-3">
<div class="flex items-center space-x-2">
<select class="bg-[#131417] border border-[#2B2C2F] rounded-md p-1.5 text-sm flex-1">
<option>Sales (30d)</option>
<option>CVR (30d)</option>
<option>Ad Clicks (30d)</option>
</select>
<select class="bg-[#131417] border border-[#2B2C2F] rounded-md p-1.5 text-sm w-24">
<option>=</option>
<option>></option>
<option><</option>
<option>Top %</option>
<option>Bottom %</option>
</select>
<input type="text" class="bg-[#131417] border border-[#2B2C2F] rounded-md p-1.5 text-sm w-16">
<button class="text-[#A0A3A8] hover:text-[#E6E6E6]">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
<button class="text-sm text-[#2563EB] hover:underline flex items-center">
<i data-feather="plus" class="w-4 h-4 mr-1"></i> Add Condition
</button>
</div>
</div>
<button class="bg-[#2563EB] hover:bg-[#1E55D5] text-white px-3 py-1.5 rounded-md text-sm font-medium mt-2">
Preview Matching Products
</button>
</div>
</div>
<!-- Saved Contexts Tab (Initially hidden) -->
<div id="savedTab" class="tab-content hidden">
<div class="space-y-3">
<p class="text-sm text-[#A0A3A8]">No saved contexts yet. Create one by saving a selection.</p>
<!-- Example saved context card -->
<div class="bg-[#1E1F23] border border-[#2B2C2F] rounded-md p-3 hidden">
<div class="flex justify-between">
<div>
<h4 class="font-medium">Top Sellers 30D</h4>
<p class="text-sm text-[#A0A3A8]">423 products • Last used Oct 12, 2025</p>
</div>
<div class="flex space-x-2">
<button class="text-[#A0A3A8] hover:text-[#E6E6E6]">
<i data-feather="edit-2" class="w-4 h-4"></i>
</button>
<button class="text-[#A0A3A8] hover:text-[#E6E6E6]">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="flex mt-2 space-x-1">
<div class="w-8 h-8 bg-[#2B2C2F] rounded"></div>
<div class="w-8 h-8 bg-[#2B2C2F] rounded"></div>
<div class="w-8 h-8 bg-[#2B2C2F] rounded"></div>
</div>
<button class="mt-3 w-full bg-[#2563EB] hover:bg-[#1E55D5] text-white px-3 py-1.5 rounded-md text-sm font-medium">
Apply
</button>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div class="bg-[#1A1C21] border-t border-[#2B2C2F] p-3 sticky bottom-0">
<div class="flex justify-between items-center">
<div class="text-sm">
<span id="selectedCountText">Selected: 0 products</span>
</div>
<div class="flex items-center space-x-3">
<div class="flex items-center">
<input type="checkbox" id="saveContextCheckbox" class="mr-2">
<label for="saveContextCheckbox" class="text-sm">Save as</label>
<input type="text" id="contextNameInput" class="ml-2 bg-[#1E1F23] border border-[#2B2C2F] rounded-md p-1 text-sm w-40 hidden">
</div>
<button class="text-sm px-3 py-1.5 rounded-md border border-[#2B2C2F] hover:bg-[#22242A]">
Cancel
</button>
<button id="applySelectionBtn" class="bg-[#2563EB] hover:bg-[#1E55D5] text-white px-3 py-1.5 rounded-md text-sm font-medium">
Apply Selection
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Step 2 -->
<div class="bg-[#131417] rounded-lg border border-[#2B2C2F]">
<div class="p-4 flex items-start">
<div class="bg-[#2B2C2F] text-[#A0A3A8] rounded-full w-6 h-6 flex items-center justify-center mr-3 mt-1 flex-shrink-0">2</div>
<div>
<h3 class="font-medium">Extract competitor bullet points</h3>
<p class="text-sm text-[#A0A3A8] mt-1">Configure extraction settings</p>
</div>
</div>
</div>
<!-- Step 3 -->
<div class="bg-[#131417] rounded-lg border border-[#2B2C2F]">
<div class="p-4 flex items-start">
<div class="bg-[#2B2C2F] text-[#A0A3A8] rounded-full w-6 h-6 flex items-center justify-center mr-3 mt-1 flex-shrink-0">3</div>
<div>
<h3 class="font-medium">Add keywords to your bullet points</h3>
<p class="text-sm text-[#A0A3A8] mt-1">Select target ASINs and configure insertion</p>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<!-- Toast Notification (Hidden by default) -->
<div id="toast" class="fixed bottom-4 right-4 bg-[#131417] border border-[#2B2C2F] rounded-md p-3 shadow-lg hidden">
<div class="flex items-center">
<i data-feather="check-circle" class="text-green-500 mr-2"></i>
<span id="toastMessage">Context applied successfully</span>
</div>
</div>
<!-- Confirmation Modal (Hidden by default) -->
<div id="confirmModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden">
<div class="bg-[#131417] rounded-lg border border-[#2B2C2F] p-6 max-w-md w-full">
<h3 class="font-medium text-lg mb-3">Confirm Large Selection</h3>
<p class="text-sm text-[#A0A3A8] mb-4">You're about to apply a selection of <span id="modalCount">5,000</span> products. This may take a while to process.</p>
<div class="mb-4">
<label class="block text-sm font-medium mb-1">Type "CONFIRM" to continue</label>
<input type="text" id="confirmInput" class="w-full bg-[#1E1F23] border border-[#2B2C2F] rounded-md p-2 text-sm">
</div>
<div class="flex justify-end space-x-3">
<button id="cancelConfirmBtn" class="text-sm px-3 py-1.5 rounded-md border border-[#2B2C2F] hover:bg-[#22242A]">
Cancel
</button>
<button id="proceedConfirmBtn" class="bg-[#2563EB] hover:bg-[#1E55D5] text-white px-3 py-1.5 rounded-md text-sm font-medium disabled:opacity-50" disabled>
Proceed
</button>
</div>
</div>
</div>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html> |