diff --git a/src/app/(home)/page.tsx b/src/app/(home)/page.tsx index 5cd8e364..3cf6b314 100644 --- a/src/app/(home)/page.tsx +++ b/src/app/(home)/page.tsx @@ -1,12 +1,16 @@ import Link from "next/link" import { memo } from "react" +import { Hydrate, dehydrate } from "@tanstack/react-query" + import { Logo } from "~/components/common/Logo" import { Button } from "~/components/ui/Button" import { Image } from "~/components/ui/Image" import { CSB_SCAN, GITHUB_LINK } from "~/lib/env" import { getSiteLink } from "~/lib/helpers" import { Trans, useTranslation } from "~/lib/i18n" +import getQueryClient from "~/lib/query-client" +import { prefetchGetShowcase } from "~/queries/home.server" import { default as OriginEntranceButton } from "./components/EntranceButton" import { Integration } from "./components/Integrations" @@ -14,6 +18,9 @@ import { ShowCase } from "./components/Showcase" async function Home() { const { t, i18n } = await useTranslation("index") + const queryClient = getQueryClient() + await prefetchGetShowcase(queryClient) + const dehydratedState = dehydrate(queryClient) const EntranceButton = memo(function Button() { return ( @@ -109,233 +116,237 @@ async function Home() { ] return ( -
-
- {item.icon} + {index + 1} +
+
+ {item.icon} + + {t(item.title)} + +
+
+
-
+ {t( + "Discover these awesome teams and creators on xLog (sorted by update time)", + )} +
+- {t( - "Discover these awesome teams and creators on xLog (sorted by update time)", - )} -
-+ {t( + "xLog's open design allows it to integrate with many other open protocols and applications without friction.", + )} +
+- {t( - "xLog's open design allows it to integrate with many other open protocols and applications without friction.", - )} -
-