Open-source document signature platform. Not affiliated with DocuSign.
TypeScript
refactor: use lucide-react icons instead of raw SVG paths
Richard Reis96ddb8fb3c30
diff --git a/src/components/landing/landing-shell.tsx b/src/components/landing/landing-shell.tsxindex 0f813da..b818c37 100644--- a/src/components/landing/landing-shell.tsx+++ b/src/components/landing/landing-shell.tsx@@ -1,6 +1,8 @@+import type { LucideIcon } from "lucide-react";import type { ReactNode } from "react";import Link from "next/link";import { Archivo, IBM_Plex_Mono } from "next/font/google";+import { ClipboardCheck, Globe, Link2, ShieldCheck } from "lucide-react";import { PublicLegalFooter } from "@/components/layout/public-legal-links";import { LandingDashboardPreview } from "@/components/landing/dashboard-preview";@@ -97,7 +99,7 @@ const faqItems: readonly FaqItem[] = [type SecurityPillar = {body: string;- iconPath: string;+ icon: LucideIcon;title: string;};@@ -105,28 +107,24 @@ const securityPillars: readonly SecurityPillar[] = [{title: "Encrypted at rest and in transit",body: "Documents are stored with encryption on Cloudflare's infrastructure. All connections use HTTPS with HSTS enforcement.",- iconPath:- "M7 11V7a5 5 0 0110 0v4M5 11h14a2 2 0 012 2v7a2 2 0 01-2 2H5a2 2 0 01-2-2v-7a2 2 0 012-2z",+ icon: ShieldCheck,},{title: "Complete audit trail",body: "Every view, signature, and decline is logged with timestamps and IP addresses. Download the certificate PDF as proof.",- iconPath:- "M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2M9 14l2 2 4-4",+ icon: ClipboardCheck,},{title: "Secure signing links",body: "Each signer gets a unique cryptographic token. Links expire after 7 days and can't be guessed or reused.",- iconPath:- "M10 13a5 5 0 007.54.54l3-3a5 5 0 00-7.07-7.07l-1.72 1.71M14 11a5 5 0 00-7.54-.54l-3 3a5 5 0 007.07 7.07l1.71-1.71",+ icon: Link2,},{title: "Open source",body: "The entire codebase is public. Inspect the security model, audit the logic, or self-host on your own infrastructure.",- iconPath:- "M12 2a10 10 0 1010 10A10 10 0 0012 2zM2 12h20M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10A15.3 15.3 0 0112 2z",+ icon: Globe,},-] as const;+];export function resolveLandingShellState(value?: string | string[] | null,@@ -291,7 +289,7 @@ export function LandingShell({ initialState = "default" }: LandingShellProps) {{securityPillars.map((pillar) => (<SecurityPillarCardbody={pillar.body}- iconPath={pillar.iconPath}+ icon={pillar.icon}key={pillar.title}title={pillar.title}/>@@ -562,21 +560,11 @@ function WorkflowStepInline({);}-function SecurityPillarCard({ body, iconPath, title }: SecurityPillar) {+function SecurityPillarCard({ body, icon: Icon, title }: SecurityPillar) {return (<div className="border-2 border-[#d4d4d4] bg-white px-6 py-7 text-center"><div className="mx-auto mb-4 flex h-12 w-12 items-center justify-center border border-[rgba(229,0,0,0.14)] bg-[#fff8f8]">- <svg- className="h-[22px] w-[22px]"- fill="none"- stroke="#e50000"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="1.8"- viewBox="0 0 24 24"- >- <path d={iconPath} />- </svg>+ <Icon className="h-[22px] w-[22px]" color="#e50000" strokeWidth={1.8} /></div><h3 className="text-base font-bold leading-tight tracking-[-0.02em] text-black">{title}