Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
605 lines (528 loc) · 21.6 KB
/
Copy pathindex.html
File metadata and controls
605 lines (528 loc) · 21.6 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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Competitor Analysis - AI-Powered Market Research</title>
<script src="https://cdn.tailwindcss.com"></script>
<!-- DNS prefetch for external resources -->
<link rel="dns-prefetch" href="//www.google.com">
<link rel="dns-prefetch" href="//cdn.tailwindcss.com">
<!-- Performance optimization -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="preconnect" href="https://cdn.tailwindcss.com">
<!-- Preload critical fonts -->
<link rel="preload" href="/FTSystemMono-Regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/FTSystemMono-Medium.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/FTSystemMono-Bold.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/Gerstner-ProgrammRegular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/Gerstner-ProgrammMedium.woff2" as="font" type="font/woff2" crossorigin>
<!-- Preload logo SVG -->
<link rel="preload" href="/dark-parallel-symbol-270.svg" as="image" type="image/svg+xml">
<!-- Meta tags for better performance and SEO -->
<meta name="description"
content="AI-powered competitive analysis tool. Enter any company domain and get comprehensive market research with real user insights from Reddit.">
<meta name="keywords"
content="competitive analysis, market research, AI analysis, business intelligence, competitor research">
<meta name="author" content="Parallel AI">
<!-- Open Graph meta tags -->
<meta property="og:title" content="Competitor Analysis - AI-Powered Market Research">
<meta property="og:description"
content="Know your competition with AI-powered analysis and real user insights from Reddit.">
<meta property="og:type" content="website">
<meta property="og:image" content="/dark-parallel-symbol-270.svg">
<!-- Twitter Card meta tags -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Competitor Analysis - AI-Powered Market Research">
<meta name="twitter:description"
content="Know your competition with AI-powered analysis and real user insights from Reddit.">
<style>
@font-face {
font-family: 'FT System Mono';
src: url('/FTSystemMono-Regular.woff2') format('woff2');
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: 'FT System Mono';
src: url('/FTSystemMono-Medium.woff2') format('woff2');
font-weight: 500;
font-display: swap;
}
@font-face {
font-family: 'FT System Mono';
src: url('/FTSystemMono-Bold.woff2') format('woff2');
font-weight: 700;
font-display: swap;
}
@font-face {
font-family: 'Gerstner Programm';
src: url('/Gerstner-ProgrammRegular.woff2') format('woff2');
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: 'Gerstner Programm';
src: url('/Gerstner-ProgrammMedium.woff2') format('woff2');
font-weight: 500;
font-display: swap;
}
:root {
--off-white: #fcfcfa;
--index-black: #1d1b16;
--neural: #d8d0bf;
--signal: #fb631b;
}
body {
font-family: 'FT System Mono', monospace;
background-color: var(--off-white);
color: var(--index-black);
line-height: 1.5;
font-size: 14px;
}
.gerstner {
font-family: 'Gerstner Programm', serif;
line-height: 1.2;
}
.neural-bg {
background-color: var(--neural);
}
.signal-text {
color: var(--signal);
}
.index-black-text {
color: var(--index-black);
}
.company-card {
background: white;
border: 2px solid #e8e6e1;
border-radius: 4px;
padding: 24px;
cursor: pointer;
transition: all 0.2s ease;
position: relative;
overflow: hidden;
}
.company-card:hover {
border-color: var(--signal);
}
.company-logo {
width: 48px;
height: 48px;
background: var(--signal);
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
color: white;
font-size: 20px;
}
.company-logo-container {
position: relative;
width: 48px;
height: 48px;
}
.company-icon {
width: 48px;
height: 48px;
border-radius: 4px;
object-fit: cover;
border: 2px solid var(--neural);
}
.input-group {
position: relative;
max-width: 600px;
margin: 0 auto;
}
.company-input {
width: 100%;
padding: 16px 20px;
border: 2px solid #e8e6e1;
border-radius: 4px;
font-size: 14px;
transition: all 0.2s ease;
background: white;
font-family: 'FT System Mono', monospace;
}
.company-input:focus {
outline: none;
border-color: var(--signal);
}
.analyze-btn {
background: var(--signal);
color: white;
border: none;
padding: 16px 32px;
border-radius: 4px;
font-weight: 500;
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
margin-top: 16px;
text-transform: uppercase;
letter-spacing: 0.5px;
font-family: 'FT System Mono', monospace;
}
.analyze-btn:hover {
opacity: 0.9;
}
.analyze-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.parallel-symbol {
width: 32px;
height: 32px;
background: url('/dark-parallel-symbol-270.svg') no-repeat center;
background-size: contain;
}
.header-logo {
display: flex;
align-items: center;
}
.content-wrapper {
max-width: 1024px;
margin: 0 auto;
padding: 0 24px;
}
.step-number {
width: 48px;
height: 48px;
background: white;
border: 2px solid var(--signal);
color: var(--signal);
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
border-radius: 4px;
font-size: 18px;
margin: 0 auto 16px;
}
.search-form {
display: flex;
align-items: center;
}
.search-input {
padding: 8px 12px;
border: 2px solid #e8e6e1;
border-radius: 3px;
font-size: 12px;
background: white;
width: 200px;
margin-right: 8px;
transition: border-color 0.2s ease;
font-family: 'FT System Mono', monospace;
}
.search-input:focus {
outline: none;
border-color: var(--signal);
}
.search-btn {
background: var(--signal);
color: white;
padding: 8px 12px;
border: none;
border-radius: 3px;
font-size: 12px;
cursor: pointer;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 500;
transition: opacity 0.2s ease;
font-family: 'FT System Mono', monospace;
}
.search-btn:hover {
opacity: 0.8;
}
@media (max-width: 768px) {
.content-wrapper {
padding: 0 16px;
}
/* Stack header elements vertically on mobile */
.header-content {
flex-direction: column;
gap: 12px;
align-items: stretch;
}
.header-nav {
flex-direction: column;
gap: 8px;
align-items: stretch;
}
.search-form {
justify-content: space-between;
}
.search-input {
width: calc(100% - 80px);
flex: 1;
margin-right: 8px;
}
.search-btn {
flex-shrink: 0;
width: 70px;
}
.mobile-tagline {
text-align: center;
font-size: 11px;
}
body {
font-size: 13px;
}
}
</style>
</head>
<body class="min-h-screen">
<!-- Header -->
<header class="py-6 border-b-2 border-gray-200">
<div class="content-wrapper">
<div class="header-content flex items-center justify-between">
<div class="header-logo">
<div class="parallel-symbol"></div>
<h1 class="gerstner text-xl font-medium hover:text-gray-600 ml-3">
Competitor Analysis
</h1>
</div>
<div class="header-nav flex items-center space-x-4">
<form class="search-form" onsubmit="performSearch(event)">
<input type="text" class="search-input" placeholder="Search categories, keywords..."
id="search-query">
<button type="submit" class="search-btn">Search</button>
</form>
<p class="mobile-tagline text-gray-600 text-sm uppercase tracking-wide">AI-powered market research
</p>
</div>
</div>
</div>
</header>
<!-- Hero Section -->
<section class="py-16">
<div class="content-wrapper text-center">
<h2 class="gerstner text-4xl md:text-5xl font-medium mb-6 index-black-text">
Know Your Competition
</h2>
<p class="text-base mb-12 text-gray-700 max-w-2xl mx-auto">
Enter any company domain and get an AI-powered competitive analysis with real user insights from Reddit.
</p>
<!-- Company Input -->
<div class="input-group mb-8">
<input type="text" class="company-input"
placeholder="Enter company domain (e.g. openai.com, stripe.com)" autocorrect="off"
autocapitalize="none" spellcheck="false" id="company-input" autocomplete="off" />
<button class="analyze-btn w-full" id="analyze-btn">
<span class="btn-text">Analyze Competition</span>
<span class="btn-loading hidden">
<svg class="animate-spin -ml-1 mr-3 h-5 w-5 text-white inline"
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4">
</circle>
<path class="opacity-75" fill="currentColor"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z">
</path>
</svg>
Analyzing...
</span>
</button>
</div>
<p class="text-sm text-gray-500 uppercase tracking-wide">New users get 1 free analysis</p>
</div>
</section>
<!-- Featured Analyses -->
<section id="popular" class="py-16 neural-bg">
<div class="content-wrapper">
<h3 class="gerstner text-2xl font-medium mb-12 text-center index-black-text">
Popular Analyses
</h3>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="company-card" onclick="window.location.href='/analysis/openai-com'">
<div class="flex items-center space-x-4 mb-4">
<div class="company-logo-container">
<img src="https://www.google.com/s2/favicons?domain=openai.com&sz=64" alt="OpenAI logo"
class="company-icon"
onerror="this.style.display='none'; this.nextElementSibling.style.display='flex';">
<div class="company-logo hidden">AI</div>
</div>
<div>
<h4 class="font-medium text-base">OpenAI</h4>
<p class="text-sm text-gray-500 font-mono">openai.com</p>
</div>
</div>
<p class="text-gray-600 text-sm mb-3">
AI research and deployment company, known for ChatGPT and GPT models
</p>
<div class="flex items-center justify-between text-xs text-gray-500 uppercase tracking-wide">
<span>Analysis available</span>
<span>1.2k views</span>
</div>
</div>
<div class="company-card" onclick="window.location.href='/analysis/stripe-com'">
<div class="flex items-center space-x-4 mb-4">
<div class="company-logo-container">
<img src="https://www.google.com/s2/favicons?domain=stripe.com&sz=64" alt="Stripe logo"
class="company-icon"
onerror="this.style.display='none'; this.nextElementSibling.style.display='flex';">
<div class="company-logo hidden">$</div>
</div>
<div>
<h4 class="font-medium text-base">Stripe</h4>
<p class="text-sm text-gray-500 font-mono">stripe.com</p>
</div>
</div>
<p class="text-gray-600 text-sm mb-3">
Online payment processing for internet businesses
</p>
<div class="flex items-center justify-between text-xs text-gray-500 uppercase tracking-wide">
<span>Analysis available</span>
<span>890 views</span>
</div>
</div>
<div class="company-card" onclick="window.location.href='/analysis/notion-so'">
<div class="flex items-center space-x-4 mb-4">
<div class="company-logo-container">
<img src="https://www.google.com/s2/favicons?domain=notion.so&sz=64" alt="Notion logo"
class="company-icon"
onerror="this.style.display='none'; this.nextElementSibling.style.display='flex';">
<div class="company-logo hidden">N</div>
</div>
<div>
<h4 class="font-medium text-base">Notion</h4>
<p class="text-sm text-gray-500 font-mono">notion.so</p>
</div>
</div>
<p class="text-gray-600 text-sm mb-3">
All-in-one workspace for notes, docs, and project management
</p>
<div class="flex items-center justify-between text-xs text-gray-500 uppercase tracking-wide">
<span>Analysis available</span>
<span>756 views</span>
</div>
</div>
</div>
</div>
</section>
<!-- How it works -->
<section class="py-16">
<div class="content-wrapper">
<h3 class="gerstner text-2xl font-medium mb-12 text-center index-black-text">
How it works
</h3>
<div class="grid md:grid-cols-4 gap-8">
<div class="text-center">
<div class="step-number">1</div>
<h4 class="font-medium mb-2 text-sm uppercase tracking-wide">Company Research</h4>
<p class="text-gray-600 text-sm">AI researches the company's business model, products, and market
position</p>
</div>
<div class="text-center">
<div class="step-number">2</div>
<h4 class="font-medium mb-2 text-sm uppercase tracking-wide">Find Competitors</h4>
<p class="text-gray-600 text-sm">Identifies direct and indirect competitors in the same market space
</p>
</div>
<div class="text-center">
<div class="step-number">3</div>
<h4 class="font-medium mb-2 text-sm uppercase tracking-wide">Reddit Mining</h4>
<p class="text-gray-600 text-sm">Analyzes Reddit discussions for real user opinions and market
insights</p>
</div>
<div class="text-center">
<div class="step-number">4</div>
<h4 class="font-medium mb-2 text-sm uppercase tracking-wide">Generate Report</h4>
<p class="text-gray-600 text-sm">Creates comprehensive competitive analysis with actionable insights
</p>
</div>
</div>
</div>
</section>
<!-- Recent Analyses -->
<section id="recent" class="py-16 neural-bg">
<div class="content-wrapper">
<h3 class="gerstner text-2xl font-medium mb-12 text-center index-black-text">
Recent Analyses
</h3>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" id="recent-analyses">
<!-- Recent analyses will be populated by server -->
</div>
</div>
</section>
<!-- Footer -->
<footer class="py-8 border-t-2 border-gray-200">
<div class="content-wrapper flex items-center justify-between">
<div class="flex items-center space-x-4">
<span class="text-gray-600 text-xs uppercase tracking-wide">Powered by Parallel AI</span>
<a href="https://github.com/parallel-web/competitive-analysis-demo" target="_blank"
class="text-signal hover:text-orange-600 underline text-xs">
GitHub
</a>
</div>
<div class="text-gray-600 text-xs uppercase tracking-wide">
Built for strategic insights
</div>
</div>
</footer>
<script>
const input = document.getElementById('company-input');
const button = document.getElementById('analyze-btn');
const btnText = button.querySelector('.btn-text');
const btnLoading = button.querySelector('.btn-loading');
function validateDomain(domain) {
// Remove protocol if present
domain = domain.replace(/^https?:\/\//, '');
// Remove www if present
domain = domain.replace(/^www\./, '');
// Remove trailing slash
domain = domain.replace(/\/$/, '');
// Basic domain validation
const domainRegex = /^[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]?(\.[a-zA-Z]{2,})+$/;
return domainRegex.test(domain) ? domain : null;
}
function setLoading(loading) {
button.disabled = loading;
if (loading) {
btnText.classList.add('hidden');
btnLoading.classList.remove('hidden');
} else {
btnText.classList.remove('hidden');
btnLoading.classList.add('hidden');
}
}
// Search function
function performSearch(event) {
event.preventDefault();
const query = document.getElementById('search-query').value.trim();
if (query) {
window.location.href = `/search/${encodeURIComponent(query)}`;
}
}
button.addEventListener('click', function () {
const rawInput = input.value.trim();
if (!rawInput) {
alert('Please enter a company domain');
return;
}
const domain = validateDomain(rawInput);
if (!domain) {
alert('Please enter a valid domain (e.g., openai.com, stripe.com)');
return;
}
setLoading(true);
// Convert domain to slug format
const slug = domain.replace(/\./g, '-');
window.location.href = `/new?company=${encodeURIComponent(domain)}`;
});
input.addEventListener('keypress', function (e) {
if (e.key === 'Enter') {
button.click();
}
});
// Auto-format input
input.addEventListener('input', function () {
let value = this.value;
// Remove protocol if user types it
value = value.replace(/^https?:\/\//, '');
this.value = value;
});
</script>
</body>
</html>