-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.tsx
1609 lines (1544 loc) · 58.8 KB
/
page.tsx
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
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
'use client'
import * as React from 'react'
import Image from 'next/image'
import {useEffect, useState} from 'react'
import {ArrowPathIcon, CloudArrowUpIcon, LockClosedIcon} from '@heroicons/react/24/outline'
import {CheckCircleIcon, XCircleIcon} from '@heroicons/react/20/solid'
import {RadioGroup} from '@headlessui/react'
import * as Navigation from '@/app/navigation'
import {Container} from '@/app/Container'
import {Tooltip} from 'react-tooltip'
import * as Button from '@/app/Button'
import Class from 'classnames'
import {Footer} from '@/app/footer'
const gregOciepkaTestimontial =
"Blinkfeed is unreal. As someone who sends 50+ emails daily, I've tried numerous email " +
'clients for productivity. Many use AI, but Blinkfeed, built entirely around AI, offers a ' +
"unique user experience unlike anything I've seen before."
const featuredTestimonial = {
body: gregOciepkaTestimontial,
author: {
name: 'Greg Ociepka',
handle: 'gregociepka',
imageUrl: '/photo/greg-ociepka.jpg',
logoUrl: '/logo/simteract.svg',
},
}
const testimonials = [
[
[
{
body: 'I’m blown away by the summaries from @blinkfeed_ai! They’re so detailed and always get the whole thread context right. Nothing else comes close.',
author: {
name: 'Mateusz Tokarz',
handle: 'athalante777',
imageUrl: '/photo/mateusz-tokarz.jpg',
},
},
{
body: 'Using @blinkfeed_ai feels like flying through emails. The UI is so well designed, it makes handling emails faster than I ever thought possible.',
author: {
name: 'Hanna Starowicz',
handle: 'StarowiczHanna',
imageUrl: '/photo/hanna-starowicz.jpg',
},
},
{
body: 'The auto-generated replies from @blinkfeed_ai are v v good. On point and like I wrote them myself, not just random text.',
author: {
name: 'Matt Bujalski',
handle: 'matbujalski',
imageUrl: '/photo/matt-bujalski.jpg',
},
},
],
[
{
body: 'I love how @blinkfeed_ai flags urgent messages for me. I can focus on what’s important and tackle the rest in the evening without distractions.',
author: {
name: 'Maciej Pluta',
handle: 'maciej.pluta.54',
imageUrl: '/photo/maciej-pluta.jpg',
},
},
{
body: 'The semantic spam filter from @blinkfeed_ai is a lifesaver. It’s so much better than Gmail’s, catching all the junk and letting the important stuff through.',
author: {
name: 'Artur Szymanski',
handle: 'arturszymanskiartgraph',
imageUrl: '/photo/artur-szymanski.jpg',
},
},
],
],
[
[
{
body: "Writing emails with @blinkfeed_ai is like having a genius assistant. I just type 'Monday?' and it crafts the perfect message. I don’t even have to think about it!",
author: {
name: 'Krzysztof Mikołajek',
handle: 'krzysztof.mikolajek',
imageUrl: '/photo/krzysztof-mikolajek.jpg',
},
},
{
body: 'Got early access to @blinkfeed_ai’s automations and wow, even if it’s a bit glitchy, it’s a total game changer for my workflow.',
author: {
name: 'Chris Kobylecki',
handle: 'C_moose',
imageUrl: '/photo/chris-kobylecki.jpg',
},
},
],
[
{
body: 'As a power user, @blinkfeed_ai’s all-keyboard workflow is a dream. I thought Superhuman was good, but this takes it to another level!',
author: {
name: 'Greg Szczepanczyk',
handle: 'stefek8',
imageUrl: '/photo/grzegorz-szczepanczyk.jpg',
},
},
{
body: 'I’m really looking forward to the calendar and files integration in @blinkfeed_ai. If it’s anything like the rest of the features, it’s going to be a huge help.',
author: {
name: 'Antoni Gebauer',
handle: 'AntoniGebauer',
imageUrl: '/photo/antoni-gebauer.jpg',
},
},
{
body: 'Sure, @blinkfeed_ai is a bit pricey, but the time it’s saved me has paid for itself many times over. Totally worth it!',
author: {
name: 'Natasha Stechyshyna',
handle: 'Natasza_Ste',
imageUrl: '/photo/natasha-stechyshyna.jpg',
},
},
],
],
]
const frequencies = [
{value: 'monthly', label: 'Monthly', priceSuffix: '/month'},
{value: 'annually', label: 'Annually', priceSuffix: '/year'},
]
const features = [
{
name: 'Whole thread summaries.',
description:
'Quickly grasp action points and unresolved questions. No need to sift through long threads.',
icon: CloudArrowUpIcon,
img: '/icon/ai-summary.svg',
},
{
name: 'Respond with a click.',
description:
"Proposed answers base on your calendar and knowledge base, like your business metrics. If any info is missing, you'll be prompted to fill it in.",
icon: ArrowPathIcon,
img: '/icon/select-response.svg',
},
{
name: 'Write entire emails with just a few words.',
description:
'AI crafts them into polished emails that mirror your unique voice and tone, learned from your previous messages.',
icon: LockClosedIcon,
img: '/icon/ai-write.svg',
},
]
const features2 = [
{
name: 'Focus on what needs your attention.',
description:
'AI automatically triages incoming email. Urgent messages appear at the top even when your inbox is overflowing.',
icon: ArrowPathIcon,
img: '/icon/important-mails-first.svg',
},
{
name: 'Never miss a follow-up again.',
description: "If you don't get a reply, AI will remind you to follow up after a few days.",
icon: LockClosedIcon,
img: '/icon/snooze.svg',
},
{
name: 'Feel secure with AI spam and scam filters.',
description:
'With an advanced understanding of your emails, AI robustly eliminates spam, scams, and unwanted promotions.',
icon: CloudArrowUpIcon,
img: '/icon/ai-security.svg',
},
]
const featuresAutomations = [
{
name: 'Automate the boring stuff.',
description:
'Sending follow-ups, responding to repetitive questions, and organizing emails are easy to automate. Just do it.',
icon: CloudArrowUpIcon,
img: '/icon/automate-everything.svg',
},
{
name: 'Review before send.',
description:
"Accidental messages? Not on our watch. Inspect and approve all of the automation's actions before they're set in motion.",
icon: ArrowPathIcon,
img: '/icon/check-before-run.svg',
},
{
name: 'Monitor automations history.',
description:
'Stay in the know by browsing detailed logs of your automations, unraveling the what and why behind each action.',
icon: LockClosedIcon,
img: '/icon/monitor-automations.svg',
},
]
const featuresPowerUsers = [
{
name: 'Use Markdown to edit your messages.',
description:
'Speed matters. Markdown lets you format messages as you type, with quick shortcuts for bold text, bullet lists, headers, and more. Effortless formatting for the fast-paced.',
icon: LockClosedIcon,
img: '/icon/markdown.svg',
ready: true,
},
{
name: 'Extend Blinkfeed with plugins.',
description:
"Extend Blinkfeed with plugins to mix, match, and customize your way. It's open and flexible, so you can tweak it to fit your groove.",
icon: CloudArrowUpIcon,
img: '/icon/plugin.svg',
ready: true,
},
{
name: 'Keyboard-centric navigation.',
description:
'Keyboard-centric navigation lets you reply, switch threads, and manage emails swiftly with minimal keystrokes, boosting productivity.',
icon: ArrowPathIcon,
img: '/icon/keyboard-centric.svg',
ready: true,
},
{
name: 'Track when people open your emails or links.',
description:
'Gain insights for precise follow-ups, closing deals, and boosting team efficiency.',
icon: LockClosedIcon,
img: '/icon/eye.svg',
ready: false,
},
]
const tiers = [
{
name: 'Light',
id: 'tier-starter',
href: '#',
price: {monthly: '$10', annually: '$8'},
timeSpan: '/month',
description: 'For casual users seeking affordable inbox management.',
features: [
{available: true, label: 'Analyze up to 350 email threads / month'},
{available: false, label: 'File analysis with Data Catalog *'},
],
featuresComingSoon: [
{available: false, label: 'Integrations (calendar, etc.)'},
{available: false, label: 'Automations'},
],
mostPopular: false,
featured: false,
submitIdeaBtn: false,
},
{
name: 'Pro',
id: 'tier-everyone',
href: '#',
price: {monthly: '$30', annually: '$25'},
timeSpan: '/month',
description: 'For individuals who manage a moderate volume of emails.',
features: [
{available: true, label: 'Analyze up to 1000 email threads / month'},
{available: true, label: 'File analysis with Data Catalog *'},
],
featuresComingSoon: [
{available: true, label: 'Integrations (calendar, etc.)'},
{available: false, label: 'Automations'},
],
mostPopular: true,
featured: false,
submitIdeaBtn: false,
},
{
name: 'Ultra',
id: 'tier-power-communicators',
href: '#',
price: {monthly: '$40', annually: '$33'},
timeSpan: '/month',
description: 'For professionals handling high-volume correspondence.',
features: [
{available: true, label: 'Analyze up to 3000 email threads / month'},
{available: true, label: 'File analysis with Data Catalog *'},
],
featuresComingSoon: [
{available: true, label: 'Integrations (calendar, etc.)'},
{available: true, label: 'Automations'},
],
mostPopular: false,
featured: true,
submitIdeaBtn: false,
},
]
const faqs = [
{
question: 'Which email providers are compatible with Blinkfeed?',
answer: (
<p>
Currently, Blinkfeed supports Gmail. We are actively working on integrating Outlook and plan
to support additional providers soon. Please visit our{' '}
<a href='https://blinkfeed.featurebase.app'>Feature Request</a> page to vote for the next integration you
need.
</p>
),
},
{
question: 'Which systems does Blinkfeed work on?',
answer:
'Blinkfeed is compatible with Windows, macOS, and Linux. We are planning to release mobile versions later this year.',
},
{
question: 'Are there any current limitations I should be aware of with Blinkfeed?',
answer:
'As Blinkfeed is in its private beta phase, you may encounter occasional minor issues. We are dedicated to providing prompt support and aim for same-day resolution whenever possible. If you experience any problems, our team will work with you to resolve them quickly.',
},
{
question: 'Is using Blinkfeed safe?',
answer:
'Yes, Blinkfeed is designed with security as a top priority. All your data, including email cache and Gmail access tokens, remains on your computer. Parts of your emails are sent to OpenAI, which complies with CCPA, CSA STAR, GDPR, SOC2, and SOC3 standards. While Blinkfeed has not yet received official compliance ratings, it adheres to these best practices.',
},
]
function classNames(...classes: any[]) {
return classes.filter(Boolean).join(' ')
}
function Section({children, id}: {children: React.ReactNode; id?: string}) {
const minTopOffset = 32
const ref = React.useRef<HTMLDivElement>(null)
const anchorRef = React.useRef<HTMLDivElement>(null)
const screenRef = React.useRef<HTMLDivElement>(null)
const [anchorOffset, setAnchorOffset] = useState(-Navigation.HEIGHT - minTopOffset)
useEffect(() => {
const observer = new ResizeObserver(() => {
if (ref.current) {
const viewHeight = window.innerHeight - Navigation.HEIGHT
const freeSpace = Math.max(0, viewHeight - ref.current.clientHeight)
const topOffset = Math.max(minTopOffset, freeSpace / 2)
setAnchorOffset(-topOffset - Navigation.HEIGHT)
}
})
if (ref.current && screenRef.current) {
observer.observe(ref.current)
observer.observe(screenRef.current)
}
return () => observer.disconnect()
}, [])
return (
<div ref={ref} className='section relative my-24 md:my-32 lg:my-64'>
<div ref={screenRef} className='absolute left-0 top-0 w-0 h-screen pointer-events-none' />
<div
ref={anchorRef}
id={id}
className='anchor absolute left-0 w-0 h-0'
style={{top: `${anchorOffset}px`}}
/>
{children}
</div>
)
}
function SectionT({children}: {children: React.ReactNode}) {
return <div className='mt-6 md:mt-12 lg:mt-16'>{children}</div>
}
function ServiceIcon(props: {src: string; alt: string; comingSoon: boolean}) {
const cls = props.comingSoon
? 'absolute opacity-0 hover:opacity-100 transition duration-300 z-10'
: ''
const ImgMono = () =>
props.comingSoon ? (
<Image
width={32}
height={32}
src={`${props.src}-mono.svg`}
alt={props.alt}
style={{opacity: 0.2}}
className='pointer-events-none'
/>
) : null
return (
<div
data-tooltip-id={props.comingSoon ? 'tooltip' : undefined}
data-tooltip-content='Coming soon'
style={{height: '32px'}}
className='flex items-center'
>
<Image width={32} height={32} src={`${props.src}.svg`} alt={props.alt} className={cls} />
<ImgMono />
</div>
)
}
function Feeds() {
return (
<div className='flex justify-center'>
<div className='flex items-center gap-6 rounded-full pl-4 pr-2 py-1.5 text-sm leading-6 text-gray-600 ring-1 ring-inset ring-gray-900/10'>
<span className='hidden md:inline'>All of your feeds in a blink of an eye:</span>
<ServiceIcon src={'/icon/gmail'} alt='Gmail' comingSoon={false} />
<ServiceIcon src={'/icon/outlook'} alt='Outlook' comingSoon={true} />
<ServiceIcon src={'/icon/apple-mail'} alt='Apple Mail' comingSoon={true} />
<ServiceIcon src={'/icon/instagram'} alt='Instagram' comingSoon={true} />
<ServiceIcon src={'/icon/whatsapp'} alt='WhatsApp' comingSoon={true} />
<ServiceIcon src={'/icon/messenger'} alt='Messenger' comingSoon={true} />
</div>
</div>
)
}
function Hero() {
return (
<SectionT>
<Container>
<div className='mx-auto'>
<h1 className='font-bold tracking-tight text-5xl sm:text-6xl md:text-7xl'>
<span>Never read emails again.</span>
</h1>
<p className='mt-6 text-lg leading-8 text-secondary'>
Reply to 100 emails in 10 minutes. Schedule meetings and generate replies with AI aware
of
<br className='hidden lg:block' />
<span> your calendar, preferences, and knowledge base.</span>
</p>
</div>
</Container>
<div className='relative pt-16'>
<Container wide={true} className='sm:px-6 md:px-12 lg:px-24'>
<div className='relative'>
<div className='overflow-hidden hero-video-shadow sm:rounded-2xl sm:border-2 sm:border-white'>
<video
autoPlay
muted
loop
playsInline
className='mt-[-2px] object-cover aspect-[1000/944] lg:aspect-[1084/579] lg:object-contain w-[800px] lg:w-[1084px]'
style={{
objectPosition: 'left 51.5% top 0px',
}}
>
<source src='/video/hero.mp4' type='video/mp4' />
</video>
</div>
</div>
</Container>
</div>
</SectionT>
)
}
function Logos() {
return (
<Container className='mt-24'>
<div className='mx-auto grid max-w-lg grid-cols-4 items-center gap-x-8 gap-y-12 sm:max-w-xl sm:grid-cols-6 sm:gap-x-10 sm:gap-y-14 lg:mx-0 lg:max-w-none lg:grid-cols-5'>
<img
className='col-span-2 max-h-12 w-full object-contain lg:col-span-1'
src='https://tailwindui.com/img/logos/158x48/transistor-logo-gray-900.svg'
alt='Transistor'
width={158}
height={48}
/>
<img
className='col-span-2 max-h-12 w-full object-contain lg:col-span-1'
src='https://tailwindui.com/img/logos/158x48/reform-logo-gray-900.svg'
alt='Reform'
width={158}
height={48}
/>
<img
className='col-span-2 max-h-12 w-full object-contain lg:col-span-1'
src='https://tailwindui.com/img/logos/158x48/tuple-logo-gray-900.svg'
alt='Tuple'
width={158}
height={48}
/>
<img
className='col-span-2 max-h-12 w-full object-contain sm:col-start-2 lg:col-span-1'
src='https://tailwindui.com/img/logos/158x48/savvycal-logo-gray-900.svg'
alt='SavvyCal'
width={158}
height={48}
/>
<img
className='col-span-2 col-start-2 max-h-12 w-full object-contain sm:col-start-auto lg:col-span-1'
src='https://tailwindui.com/img/logos/158x48/statamic-logo-gray-900.svg'
alt='Statamic'
width={158}
height={48}
/>
</div>
<div className='mt-16 flex justify-center'>
<p className='relative rounded-full px-4 py-1.5 text-sm leading-6 text-gray-600 ring-1 ring-inset ring-gray-900/10 hover:ring-gray-900/20'>
<span className='hidden md:inline'>
Enso saves up to $10,000 per year, per employee by using Blinkfeed.
</span>
<a href='#' className='font-semibold text-accent'>
<span className='absolute inset-0' aria-hidden='true' /> Read our case study{' '}
<span aria-hidden='true'>→</span>
</a>
</p>
</div>
</Container>
)
}
function ServiceIcon2(props: {src: string; alt: string; style: React.CSSProperties}) {
return (
<div style={{height: '32px', ...props.style}} className='flex items-center absolute'>
<Image width={32} height={32} src={`${props.src}.svg`} alt={props.alt} />
</div>
)
}
function Feeds2() {
const paths = [
'/icon/gmail',
'/icon/outlook',
'/icon/apple-mail',
'/icon/instagram',
'/icon/whatsapp',
'/icon/messenger',
]
const icons = paths.map((path, i) => {
const dist = 100
const x = Math.cos((i / paths.length) * 2 * Math.PI) * dist
const y = Math.sin((i / paths.length) * 2 * Math.PI) * dist
return (
<ServiceIcon2
key={i}
src={path}
alt='Gmail'
style={{
transform: `translate(${x}px , ${y}px)`,
}}
/>
)
})
return (
<div className='flex justify-center'>
<div className='flex items-center gap-6 rounded-full pl-4 pr-2 py-1.5 text-sm leading-6 text-gray-600 ring-1 ring-inset ring-gray-900/10'>
{icons}
</div>
</div>
)
}
interface FeatureCardProps {
order: 'left' | 'right'
title: string
features: {
name: string
description: string
icon: React.ComponentType
img: string
timeEnd: number
comingSoon?: boolean
}[]
videoSource: string
videoMarginTop: string
}
interface SpinnerProps {
progress: number
active: boolean
}
function Spinner({progress, active}: SpinnerProps) {
const size = 32
const bgWidth = 3
const width = 2
const radius = size / 2 - bgWidth / 2
const circumference = 2 * Math.PI * radius
return (
<div
style={{
width: `${size}px`,
height: `${size}px`,
}}
>
<svg height={size} width={size} xmlns='http://www.w3.org/2000/svg'>
<circle
className='transition duration-500'
r={size / 2 - width / 2 - (bgWidth - width) / 2}
cx={size / 2}
cy={size / 2}
fill='transparent'
stroke={active ? 'rgba(0,0,0,0.7)' : 'transparent'}
transform={`rotate(-90,${size / 2},${size / 2})`}
strokeLinecap='round'
strokeWidth={width}
strokeDasharray={circumference}
strokeDashoffset={circumference * (1 - progress)}
/>
<circle
className='transition duration-500'
r={size / 2 - bgWidth / 2}
cx={size / 2}
cy={size / 2}
fill='transparent'
stroke={active && progress > 0 ? 'rgba(0,0,0,0.05)' : 'transparent'}
strokeWidth={bgWidth}
/>
</svg>
</div>
)
}
function FeatureCard({title, features, videoSource, videoMarginTop}: FeatureCardProps) {
const videoRef = React.useRef<HTMLVideoElement>(null)
const [currentVideoTime, setCurrentVideoTime] = useState(0)
const rootRef = React.useRef<HTMLDivElement>(null)
const [isVisible, setIsVisible] = React.useState(false)
const wasPlayed = React.useRef(false)
// === Intersection observer ===
React.useEffect(() => {
const observer = new IntersectionObserver(
entries => {
entries.forEach(entry => {
const top = entry.boundingClientRect.top
const bottom = entry.boundingClientRect.bottom
const ratio = entry.intersectionRatio
const isVisible =
ratio > 0 && (wasPlayed.current || bottom < window.innerHeight || top < 0)
wasPlayed.current = isVisible
setIsVisible(isVisible)
})
},
{
threshold: Array(11)
.fill(0)
.map((_, i) => i * 0.1),
},
)
if (rootRef.current) observer.observe(rootRef.current)
return () => observer.disconnect()
}, [])
React.useEffect(() => {
if (videoRef.current) {
if (isVisible) videoRef.current.play()
else videoRef.current.pause()
}
}, [isVisible])
// === On frame video progress tracking ===
const lastRafTime = React.useRef(0)
const raf = React.useRef<number>()
const onFrame = (time: DOMHighResTimeStamp) => {
if (videoRef.current) {
const timeDiff = time - lastRafTime.current
lastRafTime.current = time
if (videoRef.current.ended) {
setCurrentVideoTime(t => t + timeDiff / 1000)
} else {
setCurrentVideoTime(videoRef.current.currentTime)
}
}
requestAnimationFrame()
}
const requestAnimationFrame = () => {
raf.current = window.requestAnimationFrame(onFrame)
}
React.useEffect(() => {
requestAnimationFrame()
return () => {
if (raf.current) window.cancelAnimationFrame(raf.current)
}
}, [])
let nextFeatureStartTime = 0
const description = (
<div>
<div className=''>
<div className='mt-10 flex flex-col leading-7'>
{features.map((feature, index) => {
const style = {} // isSelected ? {boxShadow: '0px 0px 0px 2px var(--color-accent)'} : {}
const cls = '' //isSelected ? 'hero-video-shadow' : ''
const icon = (
<Image
width={24}
height={24}
src={feature.img}
alt='feature'
style={{
//FIXME
opacity: 0.7,
}}
/>
)
const isLastFeature = index === features.length - 1
const featureStartTime = nextFeatureStartTime
nextFeatureStartTime = feature.timeEnd
const featureTime = currentVideoTime - featureStartTime
const duration = feature.timeEnd - featureStartTime
const progress = Math.min(1, Math.max(0, featureTime / duration))
const active = featureTime >= 0 && featureTime <= duration
if (progress == 1 && isLastFeature && videoRef.current != null) {
videoRef.current.currentTime = 0
videoRef.current.play()
}
const opacity = active ? 1 : 0.3
return (
<div
key={feature.name}
className={'relative transition duration-500 cursor-pointer ' + cls}
style={{
opacity,
paddingTop: '24px',
paddingBottom: '24px',
...style,
}}
onMouseDown={() => {
console.log(videoRef.current, featureStartTime)
if (videoRef.current) videoRef.current.currentTime = featureStartTime
}}
>
<div className='flex' style={{gap: '8px'}}>
<div>
<div className='relative flex-shrink-0'>
<div className='absolute w-full h-full flex justify-center items-center'>
{icon}
</div>
<Spinner progress={progress} active={active} />
</div>
</div>
<div
className='flex flex-col gap-1'
style={{
marginTop: '2px',
}}
>
<div className='flex items-center gap-4'>
<div className='font-semibold'>{feature.name}</div>
<div className='flex grow shrink-0 text-tertiary'>
{feature.comingSoon && <ComingSoon />}
</div>
</div>
<div className='leading-7 text-secondary'>{feature.description}</div>
</div>
</div>
</div>
)
})}
</div>
</div>
</div>
)
const viz = (
<div className='flex w-full justify-end xl:pr-[13px] lg:pr-[33px] -ml-[10vw] sm:ml-[97px] lg:ml-0'>
<div className={`relative ${videoMarginTop} lg:mt-[100px] xl:mt-0`}>
<div
className='absolute w-full top-0 bg-gradient-to-b from-white from-40%'
style={{height: '42px'}}
/>
<div
className='hidden lg:block absolute h-full left-0 bg-gradient-to-r from-white'
style={{width: '42px'}}
/>
<video
ref={videoRef}
autoPlay
muted
playsInline
preload={'none'}
className={`object-cover aspect-[1452/1313] max-w-none w-[120%] sm:w-[820px] lg:w-[560px] xl:w-[726px]`}
>
<source src={videoSource} type='video/mp4' />
</video>
</div>
</div>
)
return (
<Section>
<Container wide={true} className='sm:px-6 md:px-12 lg:px-24'>
<div ref={rootRef} className='flex flex-col lg:block'>
<div className='z-10 flex relative text-base shrink px-6 sm:px-0 pb-12 md:pb-16 lg:w-[42%] lg:pb-0'>
<p className='text-3xl font-bold tracking-tight sm:text-4xl'>{title}</p>
</div>
<div className='z-0 lg:absolute top-0 left-0 w-full justify-end'>{viz}</div>
<div className='z-10 -mt-[60px] lg:mt-0 flex relative text-base shrink md:max-w-2xl lg:max-w-xl px-6 sm:px-0 lg:w-[42%]'>
{description}
</div>
</div>
</Container>
</Section>
)
}
function XFeatures1() {
const features = [
{
name: 'Best-in-class, whole thread summaries',
description:
'Blinkfeed analyzes entire email threads, not just the latest messages, to deliver concise summaries that capture all essential information, ensuring you never miss a detail.',
icon: CloudArrowUpIcon,
img: '/icon/ai-summary.svg',
timeEnd: 13,
},
{
name: 'Urgent messages discovery',
description:
'Blinkfeed notifies you about urgent messages, so you can respond fast where it matters most.',
icon: CloudArrowUpIcon,
img: '/icon/important-mails-first.svg',
timeEnd: 20,
},
{
name: 'Semantic spam filter',
description:
'Blinkfeed hides not just spam caught by your email provider, but also non-spam messages that are not important.',
icon: ArrowPathIcon,
img: '/icon/ai-security.svg',
timeEnd: 30,
},
]
return (
<FeatureCard
title='Understand what people want from you, in a blink.'
features={features}
videoSource='/video/features1.mp4'
videoMarginTop='-mt-[24px]'
order={'left'}
/>
)
}
function XFeatures2() {
const features = [
{
name: 'Reply with a click',
description:
'Each email summary comes with a highly-tailored responses that you can review, edit, or simply send with one click.',
icon: CloudArrowUpIcon,
img: '/icon/select-response.svg',
timeEnd: 23.5,
},
{
name: 'Write entire emails with just a few words',
description:
'Type your thoughts and Blinkfeed will craft a polished email mirroring your voice and tone that you can review, edit, or simply send with one click.',
icon: CloudArrowUpIcon,
img: '/icon/ai-write.svg',
timeEnd: 38,
},
{
name: 'Calendar and files, analyzed',
description:
'Blinkfeed analyzes your calendar and documents in your knowledge base to provide curated replies and suggestions.',
icon: ArrowPathIcon,
img: '/icon/data-catalog.svg',
comingSoon: true,
timeEnd: 50,
},
]
return (
<FeatureCard
title='Reply at the speed of thought.'
features={features}
videoSource='/video/features2.mp4'
videoMarginTop='-mt-[24px]'
order={'right'}
/>
)
}
function Features1() {
return (
<Section>
<Container>
<div className='mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-16 sm:gap-y-20 lg:mx-0 lg:max-w-none lg:grid-cols-2'>
<div>
<div className='lg:max-w-lg'>
<p className='text-3xl font-bold tracking-tight text-gray-800 sm:text-4xl'>
Let AI read and write your mails.
</p>
<p className='mt-6 text-lg leading-8 text-gray-600'>
AI analyzes the entire thread, not just latest messages, ensuring responses that
truly understand and fit the context.
</p>
<dl className='mt-10 max-w-xl space-y-8 text-base leading-7 text-gray-600 lg:max-w-none'>
{features.map(feature => (
<div key={feature.name} className='relative pl-12'>
<div
className='absolute left-0 top-0 flex h-8 w-8 items-center justify-center rounded-lg bg-accent'
style={{
marginTop: '7px',
// FIXME:
opacity: 0.8,
}}
>
<Image width={20} height={20} src={feature.img} alt='feature' />
</div>
<div className='inline font-bold text-accent'>{feature.name}</div>{' '}
<dd className='inline'>{feature.description}</dd>
</div>
))}
</dl>
</div>
</div>
<div className='self-end'>
<div className='flex rounded-xl overflow-hidden'>
<img
src='https://tailwindui.com/img/component-images/dark-project-app-screenshot.png'
alt='Product screenshot'
className='w-[48rem] max-w-none rounded-xl ring-1 ring-gray-400/10 sm:w-[57rem] md:-ml-4 lg:-ml-0'
width={2432}
height={1442}
/>
</div>
</div>
</div>
</Container>
</Section>
)
}
function Features2() {
return (
<Section>
<Container>
<div>
<div className='mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-16 sm:gap-y-20 lg:mx-0 lg:max-w-none lg:grid-cols-2'>
<div className='lg:ml-auto lg:pl-4 lg:pt-4'>
<div className='lg:max-w-lg'>
<p className='mt-2 text-3xl font-bold tracking-tight text-gray-800 sm:text-4xl'>
AI-powered triage and security.
</p>
<p className='mt-6 text-lg leading-8 text-gray-600'>
Effortlessly prioritize vital emails in a crowded inbox, ensuring you always catch
important opportunities without missing a beat.
</p>
<dl className='mt-10 max-w-xl space-y-8 text-base leading-7 text-gray-600 lg:max-w-none'>
{features2.map(feature => (
<div key={feature.name} className='relative pl-12'>
<div
className='absolute left-0 top-0 flex h-8 w-8 items-center justify-center rounded-lg bg-accent'
style={{marginTop: '7px'}}
>
<Image width={20} height={20} src={feature.img} alt='feature' />
</div>
<div className='inline font-bold text-accent'>{feature.name}</div>{' '}
<dd className='inline'>{feature.description}</dd>
</div>
))}
</dl>
</div>
</div>
<div className='flex items-start justify-end lg:order-first'>
<div className='self-end overflow-hidden'>
<div className='flex rounded-xl overflow-hidden shadow-xl'>
<img
src='https://tailwindui.com/img/component-images/dark-project-app-screenshot.png'
alt='Product screenshot'
className='w-[48rem] max-w-none rounded-xl ring-1 ring-gray-400/10 sm:w-[57rem] md:-ml-4 lg:-ml-0'
width={2432}
height={1442}
/>
</div>
</div>
</div>
</div>
</div>
</Container>
</Section>
)
}
function Automations() {
return (
<Section>
<Container wide={true}>
<div className='sm:rounded-3xl overflow-hidden py-6 md:py-16 lg:py-24 bg-dark-card'>
<Container>
<div className='mx-auto max-w-7xl'>
<div className='mx-auto max-w-2xl sm:text-center'>
<div className='flex justify-center text-teriary-inv mb-4'>
<ComingSoon big={true} />
</div>
<p className='text-3xl font-bold tracking-tight text-white sm:text-4xl'>
Set up automations in plain English
</p>
<div className='mt-4 text-lg leading-8 text-gray-300'>
<div className='flex justify-center'>
<div className='rounded-2xl bg-accent text-black text-center font-bold text-sm py-2 px-3'>
{`"Send a follow-up for my 'collaboration opportunity' emails if no reply in 3 days."`}
</div>
</div>
<div className='mt-4 text-secondary-inv'>