Files
formbricks-formbricks/apps/formbricks-com/components/shared/UseCaseCTA.tsx
Vineet J Karni 5c9d8af3f0 fix: Corrected landing page styles (#1278)
Co-authored-by: Johannes <johannes@formbricks.com>
2023-10-18 09:23:00 +00:00

30 lines
1.0 KiB
TypeScript

import { Button } from "@formbricks/ui/Button";
import { useRouter } from "next/router";
interface UseCaseCTAProps {
href: string;
}
export default function UseCaseHeader({ href }: UseCaseCTAProps) {
/* const plausible = usePlausible(); */
const router = useRouter();
return (
<div className="my-8 flex flex-col justify-center space-x-2 space-y-2 whitespace-nowrap align-top sm:flex-row">
<Button className="mx-auto mt-2 flex w-fit justify-center align-middle" variant="secondary" href={href}>
Step-by-step manual
</Button>
<div className="space-y-1 text-center">
<Button
className="bg-slate-800 text-slate-300 hover:text-white dark:bg-slate-500 dark:text-slate-100 dark:hover:bg-slate-400"
onClick={() => {
router.push("https://app.formbricks.com/auth/signup");
/* plausible("BestPractice_SubPage_CTA_TryItNow"); */
}}>
Try it now
</Button>
<p className="text-xs text-slate-400">It&apos;s free</p>
</div>
</div>
);
}