diff --git a/bun.lockb b/bun.lockb index b6cbd8eb..b58462d5 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/web/components/custom/text-blur-transition.tsx b/web/components/custom/text-blur-transition.tsx new file mode 100644 index 00000000..a48a82cf --- /dev/null +++ b/web/components/custom/text-blur-transition.tsx @@ -0,0 +1,26 @@ +import { cn } from "@/lib/utils" +import { motion } from "framer-motion" + +export default function TextBlurTransition(props: { children: string; className?: string }) { + const words = props.children.split(" ") + + return ( + + {words.map((word, index) => { + return ( + + {word} + + ) + })} + + ) +} diff --git a/web/components/routes/public/PublicHomeRoute.tsx b/web/components/routes/public/PublicHomeRoute.tsx index ab4a14a5..9cd2c18b 100644 --- a/web/components/routes/public/PublicHomeRoute.tsx +++ b/web/components/routes/public/PublicHomeRoute.tsx @@ -6,6 +6,7 @@ import { motion } from "framer-motion" import { Autocomplete } from "./Autocomplete" import { useRouter } from "next/navigation" import { useAccount } from "@/lib/providers/jazz-provider" +import TextBlurTransition from "@/components/custom/text-blur-transition" let graph_data_promise = import("./graph-data.json").then(a => a.default) @@ -33,7 +34,7 @@ export function PublicHomeRoute() { return ( <> -
+
handleTopicSelect(val)} @@ -47,14 +48,19 @@ export function PublicHomeRoute() { transition={{ duration: 0.5 }} style={{ x: "-50%", y: "-50%" }} > - +
+ I want to learn -
+ handleTopicSelect(topic.name)}