diff --git a/bun.lockb b/bun.lockb index 08d679ee..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 ed694a66..e95c36b6 100644 --- a/web/components/routes/public/PublicHomeRoute.tsx +++ b/web/components/routes/public/PublicHomeRoute.tsx @@ -7,6 +7,8 @@ import { Autocomplete } from "./Autocomplete" import { useRouter } from "next/navigation" import { cn } from "@/lib/utils" import { raleway } from "@/app/fonts" +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,25 +35,41 @@ export function PublicHomeRoute() { return ( <> -
- +
+ handleTopicSelect(val)} + filter_query={filterQuery} + /> -
- - - I want to learn - - - -
+ +
+ + I want to learn + + handleTopicSelect(topic.name)} + onInputChange={handleInputChange} + /> +
)