diff --git a/app/layout.module.css b/app/layout.module.css index f8691de..07f2b65 100644 --- a/app/layout.module.css +++ b/app/layout.module.css @@ -5,3 +5,7 @@ .heading > a:hover { text-decoration: none; } + +.loading { + height: 50vh; +} diff --git a/app/page.tsx b/app/page.tsx index e21db09..603f36d 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,9 +1,27 @@ -import { PluginOverview } from "@/app/client"; +import { Flex, Text } from "@radix-ui/themes"; +import { Suspense } from "react"; + import { getAllPlugins } from "@/lib/registry"; +import { PluginOverview } from "./client"; +import style from "./layout.module.css"; + export const revalidate = 300; + +function Loading() { + return ( + + Loading... + + ); +} + export default async function Home() { const plugins = await getAllPlugins(); plugins.sort((a, b) => a.FullName.localeCompare(b.FullName)); - return ; + return ( + }> + + + ); }