feat: replace licensing page with enterprise contact/demo page

This commit is contained in:
ashim-hq
2026-04-23 20:53:55 +08:00
parent 9a2371053a
commit 16e92a1c2d
5 changed files with 205 additions and 308 deletions
@@ -1,40 +0,0 @@
"use client";
import { ChevronDown } from "lucide-react";
import { useState } from "react";
interface FaqItem {
question: string;
answer: string;
}
function FaqEntry({ item }: { item: FaqItem }) {
const [open, setOpen] = useState(false);
return (
<div className="border-b border-border">
<button
type="button"
onClick={() => setOpen(!open)}
className="flex w-full items-center justify-between py-5 text-left"
>
<span className="text-base font-medium">{item.question}</span>
<ChevronDown
size={20}
className={`shrink-0 text-muted transition-transform duration-200 ${open ? "rotate-180" : ""}`}
/>
</button>
{open && <p className="pb-5 leading-relaxed text-muted">{item.answer}</p>}
</div>
);
}
export function FaqAccordion({ items }: { items: FaqItem[] }) {
return (
<div className="divide-y-0">
{items.map((item) => (
<FaqEntry key={item.question} item={item} />
))}
</div>
);
}
+1 -1
View File
@@ -6,7 +6,7 @@ const columns = [
links: [
{ label: "Features", href: "#features" },
{ label: "Demo", href: "https://demo.snapotter.com" },
{ label: "Enterprise", href: "#enterprise" },
{ label: "Enterprise", href: "/contact" },
],
},
{
+4 -4
View File
@@ -7,10 +7,10 @@ const links = [
{ label: "Features", href: "#features" },
{ label: "Download", href: "#how-it-works" },
{ label: "API", href: "#api" },
{ label: "Pricing", href: "/licensing" },
{ label: "Pricing", href: "#enterprise" },
{ label: "Docs", href: "https://docs.snapotter.com" },
{ label: "About", href: "#open-source" },
{ label: "Contact", href: "mailto:contact@snapotter.com" },
{ label: "Contact", href: "/contact" },
];
export function Navbar() {
@@ -59,7 +59,7 @@ export function Navbar() {
Try Demo
</a>
<a
href="mailto:contact@snapotter.com?subject=Book%20a%20Demo"
href="/contact"
className="rounded-lg bg-accent px-4 py-1.5 text-sm font-medium text-accent-foreground transition-colors hover:bg-accent-hover"
>
Book a Demo
@@ -106,7 +106,7 @@ export function Navbar() {
Try Demo
</a>
<a
href="mailto:contact@snapotter.com?subject=Book%20a%20Demo"
href="/contact"
className="block rounded-lg bg-accent px-4 py-2 text-center text-sm font-medium text-accent-foreground"
>
Book a Demo