diff --git a/apps/web/src/views/home/components/Cta.tsx b/apps/web/src/views/home/components/Cta.tsx new file mode 100644 index 00000000..dfea0b62 --- /dev/null +++ b/apps/web/src/views/home/components/Cta.tsx @@ -0,0 +1,91 @@ +import { useEffect, useState } from "react"; + +import Button from "~/components/Button"; + +const Cta = ({ theme }: { theme: string }) => { + const [currentWorkspaceSlug, setCurrentWorkspaceSlug] = useState("acme"); + const [isVisible, setIsVisible] = useState(true); + + useEffect(() => { + const workspaceSlugs = [ + "acme", + "henry", + "cal", + "documenso", + "jack", + "openstatus", + "florrie", + "supabase", + ]; + + const interval = setInterval(() => { + setIsVisible(false); + setTimeout(() => { + setCurrentWorkspaceSlug((prev) => { + const currentIndex = workspaceSlugs.indexOf(prev); + const nextIndex = (currentIndex + 1) % workspaceSlugs.length; + const nextSlug = workspaceSlugs[nextIndex]; + if (!nextSlug) return prev; + return nextSlug; + }); + setIsVisible(true); + }, 500); + }, 3000); + + return () => clearInterval(interval); + }, []); + + return ( +
+
+
+
+

kan.bn/{currentWorkspaceSlug}

+
+

+ Get started for free today +

+

+ Unlimited boards, unlimited lists, unlimited cards. No credit card + required. +

+
+ +
+
+
+ +
+ ); +}; + +export default Cta; diff --git a/apps/web/src/views/home/components/Faqs.tsx b/apps/web/src/views/home/components/Faqs.tsx index 33e45889..cfdbc929 100644 --- a/apps/web/src/views/home/components/Faqs.tsx +++ b/apps/web/src/views/home/components/Faqs.tsx @@ -50,7 +50,7 @@ const faqs = [ const Faqs = () => { return ( -
+

FAQs

@@ -59,7 +59,7 @@ const Faqs = () => {

Questions?

-

+

Find answers to common questions about the project. Can't find what you're looking for? Feel free to{" "} diff --git a/apps/web/src/views/home/components/Features.tsx b/apps/web/src/views/home/components/Features.tsx index 062d1807..d62f2be4 100644 --- a/apps/web/src/views/home/components/Features.tsx +++ b/apps/web/src/views/home/components/Features.tsx @@ -127,7 +127,7 @@ const Features = ({ theme }: { theme: "light" | "dark" }) => {

Kanban reimagined

-

+

Simple, visual task management that just works. Drag and drop cards, collaborate with your team, and get more done.

diff --git a/apps/web/src/views/home/components/Footer.tsx b/apps/web/src/views/home/components/Footer.tsx index e112c2c9..984b0c09 100644 --- a/apps/web/src/views/home/components/Footer.tsx +++ b/apps/web/src/views/home/components/Footer.tsx @@ -44,7 +44,7 @@ const StatusMarker = () => ( const Footer = () => { return ( -