-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathFooter.tsx
More file actions
394 lines (380 loc) · 10.3 KB
/
Copy pathFooter.tsx
File metadata and controls
394 lines (380 loc) · 10.3 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
"use client";
import { Logo } from "@cap/ui/logo";
import { faDiscord } from "@fortawesome/free-brands-svg-icons/faDiscord";
import { faLinkedinIn } from "@fortawesome/free-brands-svg-icons/faLinkedinIn";
import { faXTwitter } from "@fortawesome/free-brands-svg-icons/faXTwitter";
import { faChevronDown } from "@fortawesome/free-solid-svg-icons/faChevronDown";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import Link from "next/link";
import type { ComponentProps, ReactNode } from "react";
import { useState } from "react";
type FooterLink = {
label: string;
href: string;
isExternal?: boolean;
};
const footerLinks = {
product: [
{ label: "Blog", href: "/blog" },
{ label: "Changelog", href: "/changelog" },
{ label: "Docs", href: "/docs" },
{ label: "Cap for Agents", href: "/agents" },
{ label: "Pricing", href: "/pricing" },
{ label: "Download", href: "/download" },
{
label: "Open Source",
href: "https://github.com/CapSoftware/Cap",
isExternal: true,
},
{
label: "Join the community",
href: "https://discord.gg/y8gdQ3WRN3",
isExternal: true,
},
{
label: "OSS Friends",
href: "/oss-friends",
},
] as FooterLink[],
help: [
{ label: "About", href: "/about" },
{ label: "Testimonials", href: "/testimonials" },
{ label: "FAQs", href: "/faq" },
{ label: "Self-hosting", href: "/self-hosting" },
{ label: "Support", href: "/support" },
{ label: "Email Support", href: "mailto:hello@cap.so" },
{ label: "Trust Portal", href: "https://trust.cap.so" },
{
label: "Chat Support",
href: "https://discord.gg/y8gdQ3WRN3",
isExternal: true,
},
{
label: "System Status",
href: "https://cap.openstatus.dev/",
isExternal: true,
},
] as FooterLink[],
tools: [
{ label: "WebM to MP4", href: "/tools/convert/webm-to-mp4" },
{ label: "MOV to MP4", href: "/tools/convert/mov-to-mp4" },
{ label: "AVI to MP4", href: "/tools/convert/avi-to-mp4" },
{ label: "MP4 to GIF", href: "/tools/convert/mp4-to-gif" },
{ label: "MP4 to MP3", href: "/tools/convert/mp4-to-mp3" },
{ label: "MP4 to WebM", href: "/tools/convert/mp4-to-webm" },
{ label: "Video Speed Controller", href: "/tools/video-speed-controller" },
{ label: "Trim Video", href: "/tools/trim" },
] as FooterLink[],
useCases: [
{
label: "Remote Team Collaboration",
href: "/solutions/remote-team-collaboration",
},
{
label: "Employee Onboarding Platform",
href: "/solutions/employee-onboarding-platform",
},
{
label: "Daily Standup Software",
href: "/solutions/daily-standup-software",
},
{
label: "Online Classroom Tools",
href: "/solutions/online-classroom-tools",
},
{
label: "Agencies",
href: "/solutions/agencies",
},
] as FooterLink[],
additional: [
{ label: "Loom Video Importer", href: "/loom-alternative" },
{ label: "Migrate from Loom", href: "/migrate-from-loom" },
{ label: "Loom Video Downloader", href: "/tools/loom-downloader" },
{ label: "Screen Recorder", href: "/screen-recorder" },
{ label: "Free Screen Recorder", href: "/free-screen-recorder" },
{ label: "Screen Recorder for Mac", href: "/screen-recorder-mac" },
{ label: "Screen Recorder for Windows", href: "/screen-recorder-windows" },
{ label: "Screen Recording Software", href: "/screen-recording-software" },
{
label: "Chrome Screen Recorder",
href: "/google-chrome-screen-recorder",
},
{
label: "Google Drive Screen Recorder",
href: "/google-drive-screen-recorder",
},
{ label: "Cap vs Loom", href: "/loom-alternative" },
{ label: "Student Discount", href: "/student-discount" },
] as FooterLink[],
};
const socialLinks: {
label: string;
href: string;
icon: ComponentProps<typeof FontAwesomeIcon>["icon"];
}[] = [
{ label: "X (@Cap)", href: "https://x.com/cap", icon: faXTwitter },
{
label: "Discord",
href: "https://discord.gg/y8gdQ3WRN3",
icon: faDiscord,
},
{
label: "LinkedIn",
href: "https://www.linkedin.com/company/caprecorder/",
icon: faLinkedinIn,
},
];
const complianceBadges: {
label: string;
status: "compliant" | "in progress";
content: ReactNode;
}[] = [
{
label: "SOC 2",
status: "compliant",
content: (
<text
x="22"
y="25.5"
textAnchor="middle"
fontSize="8.5"
fontWeight="700"
letterSpacing="0.2"
className="fill-current"
>
SOC 2
</text>
),
},
{
label: "HIPAA",
status: "compliant",
content: (
<text
x="22"
y="25.5"
textAnchor="middle"
fontSize="8"
fontWeight="700"
letterSpacing="0.1"
className="fill-current"
>
HIPAA
</text>
),
},
{
label: "ISO 27001",
status: "compliant",
content: (
<>
<text
x="22"
y="21"
textAnchor="middle"
fontSize="8.5"
fontWeight="700"
className="fill-current"
>
ISO
</text>
<text
x="22"
y="29.5"
textAnchor="middle"
fontSize="6.5"
fontWeight="600"
letterSpacing="0.4"
className="fill-current"
>
27001
</text>
</>
),
},
];
const ComplianceBadges = () => (
<div>
<div className="flex flex-wrap gap-2.5 items-center text-gray-10">
{complianceBadges.map(({ label, status, content }) => (
<Link
key={label}
href="https://trust.cap.so"
target="_blank"
rel="noopener noreferrer"
title={`${label} — ${status}`}
aria-label={`${label} ${status}. View Cap's Trust Portal`}
className="transition-colors text-gray-9 hover:text-gray-12"
>
<svg
viewBox="0 0 44 44"
fill="none"
aria-hidden="true"
className="size-9"
>
<circle cx="22" cy="22" r="21" stroke="currentColor" />
<circle
cx="22"
cy="22"
r="17.5"
stroke="currentColor"
strokeDasharray="1 2.5"
/>
{content}
</svg>
</Link>
))}
</div>
<p className="mt-2 text-[11px] text-gray-9">
SOC 2 Type II, ISO 27001 & HIPAA compliant
</p>
</div>
);
const FooterColumn = ({
title,
titleHref,
links,
}: {
title: string;
titleHref?: string;
links: FooterLink[];
}) => {
const [isOpen, setIsOpen] = useState(false);
return (
<div className="border-b border-gray-4 lg:border-none">
<button
type="button"
aria-expanded={isOpen}
onClick={() => setIsOpen((prev) => !prev)}
className="flex justify-between items-center py-4 w-full text-lg font-semibold text-left text-gray-12 lg:hidden"
>
{title}
<FontAwesomeIcon
icon={faChevronDown}
className={`size-3.5 text-gray-10 transition-transform duration-200 ${
isOpen ? "rotate-180" : ""
}`}
/>
</button>
{titleHref ? (
<Link
href={titleHref}
className="hidden pb-2 text-lg font-semibold transition-colors text-gray-12 hover:text-gray-11 lg:block"
>
{title}
</Link>
) : (
<h3 className="hidden pb-2 text-lg font-semibold text-gray-12 lg:block">
{title}
</h3>
)}
<div
className={`grid transition-[grid-template-rows] duration-200 ease-out lg:grid-rows-[1fr] ${
isOpen ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
}`}
>
<div className="overflow-hidden">
<ul className="grid grid-cols-1 gap-2 pb-4 lg:pb-0">
{links.map((link) => (
<li key={`${link.href}:${link.label}`}>
<Link
className="transition-colors text-gray-10 hover:text-gray-12"
href={link.href}
target={link.isExternal ? "_blank" : undefined}
>
{link.label}
</Link>
</li>
))}
</ul>
</div>
</div>
</div>
);
};
export const Footer = () => {
return (
<footer className="overflow-hidden relative border-t border-gray-4">
<div className="wrapper relative pt-20 pb-10">
<div
aria-hidden="true"
className="absolute bottom-0 left-1/2 w-[700px] -translate-x-1/2 translate-y-2/3 select-none pointer-events-none opacity-[0.05] sm:w-[1000px] lg:w-[1300px]"
>
<Logo
hideLogoName
viewBoxDimensions="0 0 40 40"
className="w-full h-auto"
/>
</div>
<div className="relative z-10">
<div className="flex flex-col gap-12 xl:flex-row xl:gap-16">
<div className="xl:w-[260px] xl:shrink-0">
<Logo className="w-[104px] h-auto" />
<p className="mt-5 max-w-sm text-sm leading-6 text-gray-11">
The open source alternative to Loom. Lightweight, powerful, and
cross-platform — record and share in seconds.
</p>
<div className="flex gap-2.5 items-center mt-6">
{socialLinks.map((social) => (
<a
key={social.href}
href={social.href}
target="_blank"
rel="noopener noreferrer"
aria-label={social.label}
className="flex justify-center items-center rounded-full border transition-colors size-9 border-gray-4 text-gray-10 hover:text-gray-12 hover:border-gray-6 hover:bg-gray-3"
>
<FontAwesomeIcon icon={social.icon} className="size-4" />
</a>
))}
</div>
</div>
<div className="grid flex-1 grid-cols-1 border-t border-gray-4 lg:grid-cols-5 lg:gap-x-8 lg:gap-y-10 lg:border-none">
<FooterColumn title="Product" links={footerLinks.product} />
<FooterColumn
title="Additional Links"
links={footerLinks.additional}
/>
<FooterColumn title="Cap" links={footerLinks.help} />
<FooterColumn title="Use Cases" links={footerLinks.useCases} />
<FooterColumn
title="Tools"
titleHref="/tools"
links={footerLinks.tools}
/>
</div>
</div>
<div className="flex flex-col gap-6 pt-8 mt-20 border-t sm:flex-row sm:justify-between sm:items-end border-gray-4">
<div className="flex flex-col gap-4">
<ComplianceBadges />
<p className="text-sm text-gray-9">
© Cap Software, Inc. {new Date().getFullYear()}.
</p>
</div>
<div className="flex flex-wrap gap-x-8 gap-y-2">
<a
className="text-sm transition-colors text-gray-9 hover:text-gray-12"
href="/terms"
>
Terms of Service
</a>
<a
className="text-sm transition-colors text-gray-9 hover:text-gray-12"
href="/privacy"
>
Privacy Policy
</a>
<a
className="text-sm transition-colors text-gray-9 hover:text-gray-12"
href="/dpa"
>
Data Processing Agreement
</a>
</div>
</div>
</div>
</div>
</footer>
);
};