diff --git a/apps/www/src/routes/pricing/index.tsx b/apps/www/src/routes/pricing/index.tsx index f88bee7..aa97f07 100644 --- a/apps/www/src/routes/pricing/index.tsx +++ b/apps/www/src/routes/pricing/index.tsx @@ -1,4 +1,4 @@ -import { component$, useSignal } from "@builder.io/qwik"; +import { component$, useSignal, useVisibleTask$ } from "@builder.io/qwik"; import { TitleSection, MotionComponent, transition } from "@nestri/ui/react"; import { NavBar, Footer, Book } from "@nestri/ui" import { cn } from "@nestri/ui/design"; @@ -65,6 +65,26 @@ export default component$(() => { const audioUrl = new URL('./cash.mp3', import.meta.url).href const audio = useSignal() + const buttonRef = useSignal() + const bookRef = useSignal() + + useVisibleTask$(() => { + buttonRef.value?.addEventListener("mouseenter", () => { + bookRef.value?.classList.add('flip') + }) + buttonRef.value?.addEventListener("mouseleave", () => { + bookRef.value?.classList.remove('flip') + }) + return () => { + buttonRef.value?.removeEventListener("mouseenter", () => { + bookRef.value?.classList.add('flip') + }) + buttonRef.value?.removeEventListener("mouseleave", () => { + bookRef.value?.classList.remove('flip') + }) + } + }) + return ( <> @@ -97,7 +117,7 @@ export default component$(() => {

Free

{/**FIXME: Add the link to the docs here */} -
- diff --git a/packages/ui/src/react/hero-section.tsx b/packages/ui/src/react/hero-section.tsx index e872baa..8fce901 100644 --- a/packages/ui/src/react/hero-section.tsx +++ b/packages/ui/src/react/hero-section.tsx @@ -89,7 +89,7 @@ export function ReactHeroSection({ children }: Props) { viewport={{ once: true }} className="dark:text-gray-50/70 text-gray-950/70 text-lg font-normal tracking-tight sm:text-xl" > - Nestri is a cloud gaming platform that lets you play games on your own terms — invite friends to join your gaming sessions, share your game library, and take even more control by hosting your own server. + Nestri is an open-source cloud gaming platform that lets you play games on your own terms — invite friends to join your gaming sessions, share your game library, and take even more control by hosting on your own server.