-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrenderer.js
More file actions
287 lines (275 loc) · 12 KB
/
renderer.js
File metadata and controls
287 lines (275 loc) · 12 KB
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
const resources = [
{
name: "Etsy",
category: "marketplace",
description: "Global marketplace for unique and creative goods. Perfect for handmade items, vintage goods, and craft supplies.",
features: ["Handmade items", "Vintage marketplace", "Digital downloads", "Built-in audience", "SEO tools"],
url: "https://www.etsy.com/sell"
},
{
name: "Amazon Handmade",
category: "marketplace",
description: "Amazon's artisan-only marketplace for handcrafted products with access to millions of customers.",
features: ["Prime eligibility", "Large customer base", "FBA available", "No monthly fees", "Custom profiles"],
url: "https://sell.amazon.com/programs/handmade"
},
{
name: "eBay",
category: "marketplace",
description: "One of the world's largest online marketplaces for selling new and used items.",
features: ["Auction & fixed price", "Global reach", "Multiple categories", "Seller protection", "Mobile app"],
url: "https://www.ebay.com/sl/sell"
},
{
name: "Facebook Marketplace",
category: "marketplace",
description: "Local and nationwide marketplace integrated with Facebook's social network.",
features: ["Local selling", "Social integration", "No listing fees", "Messenger chat", "Wide audience"],
url: "https://www.facebook.com/marketplace"
},
{
name: "Printful",
category: "print-on-demand",
description: "Print-on-demand dropshipping service for custom t-shirts, hoodies, accessories, and home decor.",
features: ["No upfront costs", "Global fulfillment", "Mockup generator", "Integration tools", "White label"],
url: "https://www.printful.com"
},
{
name: "Printify",
category: "print-on-demand",
description: "Print-on-demand platform with a network of print providers worldwide.",
features: ["Multiple print providers", "Competitive pricing", "Product designer", "API access", "Sample ordering"],
url: "https://printify.com"
},
{
name: "Redbubble",
category: "print-on-demand",
description: "Artist marketplace for print-on-demand products including apparel, stickers, and home goods.",
features: ["Artist community", "No upfront costs", "Global shipping", "Marketing tools", "Analytics"],
url: "https://www.redbubble.com/sell"
},
{
name: "Teespring",
category: "print-on-demand",
description: "Platform for creating and selling custom apparel and merchandise with no upfront costs.",
features: ["Free design tools", "YouTube integration", "Boosted listings", "Bulk discounts", "Analytics"],
url: "https://teespring.com"
},
{
name: "Society6",
category: "print-on-demand",
description: "Artist marketplace specializing in home decor, wall art, and lifestyle products.",
features: ["Artist community", "Curated collections", "No inventory", "Global shipping", "Mobile app"],
url: "https://society6.com/sell"
},
{
name: "Shopify",
category: "ecommerce",
description: "Complete e-commerce platform for building your own online store with customizable themes.",
features: ["Custom domain", "Payment processing", "Inventory management", "Marketing tools", "App store"],
url: "https://www.shopify.com"
},
{
name: "WooCommerce",
category: "ecommerce",
description: "Open-source e-commerce plugin for WordPress websites.",
features: ["WordPress integration", "Flexible & customizable", "Extensions", "SEO friendly", "Free core plugin"],
url: "https://woocommerce.com"
},
{
name: "Square Online",
category: "ecommerce",
description: "E-commerce platform integrated with Square's payment processing and POS systems.",
features: ["Free plan available", "POS integration", "Pickup & delivery", "Instagram shopping", "Inventory sync"],
url: "https://squareup.com/us/en/online-store"
},
{
name: "BigCommerce",
category: "ecommerce",
description: "Enterprise-grade e-commerce platform with built-in features and scalability.",
features: ["Multi-channel selling", "B2B features", "API-first", "No transaction fees", "Built-in SEO"],
url: "https://www.bigcommerce.com"
},
{
name: "Wix eCommerce",
category: "ecommerce",
description: "Website builder with integrated e-commerce functionality and drag-and-drop design.",
features: ["Drag & drop builder", "Mobile optimized", "Abandoned cart recovery", "Multi-currency", "Tax calculator"],
url: "https://www.wix.com/ecommerce/website"
},
{
name: "Stripe",
category: "payment",
description: "Developer-friendly payment processing platform with extensive API capabilities.",
features: ["Global payments", "Subscription billing", "Fraud prevention", "Developer tools", "Mobile SDKs"],
url: "https://stripe.com"
},
{
name: "PayPal",
category: "payment",
description: "Widely recognized payment processor with buyer and seller protection.",
features: ["Buyer protection", "International payments", "Invoice tools", "Mobile payments", "QR codes"],
url: "https://www.paypal.com/us/business"
},
{
name: "Square",
category: "payment",
description: "Payment processing with integrated POS systems and business tools.",
features: ["POS system", "Online payments", "Invoicing", "Inventory management", "Analytics"],
url: "https://squareup.com"
},
{
name: "Mailchimp",
category: "marketing",
description: "Email marketing platform with automation and e-commerce integrations.",
features: ["Email campaigns", "Automation", "Landing pages", "Social ads", "Analytics"],
url: "https://mailchimp.com"
},
{
name: "Hootsuite",
category: "marketing",
description: "Social media management platform for scheduling and analytics.",
features: ["Multi-platform posting", "Content calendar", "Analytics", "Team collaboration", "Social listening"],
url: "https://www.hootsuite.com"
},
{
name: "Google Ads",
category: "marketing",
description: "Advertising platform for search, display, and shopping campaigns.",
features: ["Search ads", "Shopping campaigns", "Display network", "YouTube ads", "Remarketing"],
url: "https://ads.google.com"
},
{
name: "Facebook Ads",
category: "marketing",
description: "Social media advertising across Facebook and Instagram platforms.",
features: ["Targeted audiences", "Instagram integration", "Retargeting", "A/B testing", "Analytics"],
url: "https://www.facebook.com/business/ads"
},
{
name: "Canva",
category: "design",
description: "Easy-to-use design platform for creating marketing materials and product mockups.",
features: ["Templates", "Brand kit", "Photo editor", "Animation tools", "Team collaboration"],
url: "https://www.canva.com"
},
{
name: "Adobe Creative Cloud",
category: "design",
description: "Professional design suite including Photoshop, Illustrator, and more.",
features: ["Photoshop", "Illustrator", "InDesign", "Cloud storage", "Mobile apps"],
url: "https://www.adobe.com/creativecloud.html"
},
{
name: "Figma",
category: "design",
description: "Collaborative design tool for creating UI/UX designs and prototypes.",
features: ["Real-time collaboration", "Prototyping", "Design systems", "Plugins", "Version control"],
url: "https://www.figma.com"
},
{
name: "PicMonkey",
category: "design",
description: "Online photo editor and design tool for creating product images and marketing materials.",
features: ["Photo editing", "Templates", "Brand kit", "Background remover", "Touch up tools"],
url: "https://www.picmonkey.com"
},
{
name: "ShipStation",
category: "shipping",
description: "Multi-carrier shipping software for e-commerce order fulfillment.",
features: ["Multi-carrier support", "Batch printing", "Automation rules", "Branded tracking", "Returns portal"],
url: "https://www.shipstation.com"
},
{
name: "Pirate Ship",
category: "shipping",
description: "Free shipping software with discounted USPS and UPS rates.",
features: ["No monthly fees", "Discounted rates", "Batch shipping", "Address validation", "Simple interface"],
url: "https://www.pirateship.com"
},
{
name: "Fulfillment by Amazon (FBA)",
category: "shipping",
description: "Amazon's fulfillment service for storage, packing, and shipping.",
features: ["Prime eligibility", "Customer service", "Returns handling", "Global fulfillment", "Multi-channel"],
url: "https://sell.amazon.com/fulfillment-by-amazon"
},
{
name: "ShipBob",
category: "shipping",
description: "Third-party logistics provider with fulfillment centers across the US.",
features: ["2-day shipping", "Inventory management", "Returns processing", "International shipping", "Analytics"],
url: "https://www.shipbob.com"
},
{
name: "Easyship",
category: "shipping",
description: "Global shipping platform with access to 250+ courier services.",
features: ["Global reach", "Rate calculator", "Taxes & duties", "Tracking", "Insurance"],
url: "https://www.easyship.com"
}
];
let currentCategory = 'all';
let searchTerm = '';
function renderResources() {
const grid = document.getElementById('resourcesGrid');
grid.innerHTML = '';
let filteredResources = resources;
if (currentCategory !== 'all') {
filteredResources = filteredResources.filter(r => r.category === currentCategory);
}
if (searchTerm) {
filteredResources = filteredResources.filter(r =>
r.name.toLowerCase().includes(searchTerm.toLowerCase()) ||
r.description.toLowerCase().includes(searchTerm.toLowerCase()) ||
r.features.some(f => f.toLowerCase().includes(searchTerm.toLowerCase()))
);
}
if (filteredResources.length === 0) {
grid.innerHTML = '<div class="no-results">No resources found. Try a different search or category.</div>';
return;
}
filteredResources.forEach(resource => {
const card = document.createElement('div');
card.className = 'resource-card';
card.innerHTML = `
<h3>${resource.name}</h3>
<span class="category-tag">${formatCategory(resource.category)}</span>
<p>${resource.description}</p>
<div class="features">
<h4>Key Features:</h4>
<ul>
${resource.features.map(f => `<li>${f}</li>`).join('')}
</ul>
</div>
<button class="visit-btn" onclick="openResource('${resource.url}')">Visit Website</button>
`;
grid.appendChild(card);
});
}
function formatCategory(category) {
return category.split('-').map(word =>
word.charAt(0).toUpperCase() + word.slice(1)
).join(' ');
}
function openResource(url) {
if (window.electronAPI && window.electronAPI.openExternal) {
window.electronAPI.openExternal(url);
} else {
window.open(url, '_blank');
}
}
document.querySelectorAll('.category-btn').forEach(btn => {
btn.addEventListener('click', (e) => {
document.querySelectorAll('.category-btn').forEach(b => b.classList.remove('active'));
e.target.classList.add('active');
currentCategory = e.target.dataset.category;
renderResources();
});
});
document.getElementById('searchInput').addEventListener('input', (e) => {
searchTerm = e.target.value;
renderResources();
});
renderResources();