diff --git a/apps/login/src/app/(login)/overview/page.tsx b/apps/login/src/app/(login)/overview/page.tsx new file mode 100644 index 00000000000..7bddc8caa42 --- /dev/null +++ b/apps/login/src/app/(login)/overview/page.tsx @@ -0,0 +1,54 @@ +import { demos } from "@/lib/demos"; +import Link from "next/link"; + +export default function Page() { + return ( +
+
+
+

Pages

+ +
+ {demos.map((section) => { + return ( +
+
+ {section.name} +
+
+ {section.items.map((item) => { + return ( + +
{item.name}
+ + {item.description ? ( +
+ {item.description} +
+ ) : null} + + ); + })} +
+
+ ); + })} +
+ +
+
+ Deploy your own on Vercel +
+ + Deploy with Vercel + +
+
+
+
+ ); +} diff --git a/apps/login/src/app/page.tsx b/apps/login/src/app/page.tsx index 7bddc8caa42..9c0ef93d28f 100644 --- a/apps/login/src/app/page.tsx +++ b/apps/login/src/app/page.tsx @@ -1,54 +1,6 @@ -import { demos } from "@/lib/demos"; -import Link from "next/link"; +import { redirect } from "next/navigation"; export default function Page() { - return ( -
-
-
-

Pages

- -
- {demos.map((section) => { - return ( -
-
- {section.name} -
-
- {section.items.map((item) => { - return ( - -
{item.name}
- - {item.description ? ( -
- {item.description} -
- ) : null} - - ); - })} -
-
- ); - })} -
- -
-
- Deploy your own on Vercel -
- - Deploy with Vercel - -
-
-
-
- ); + // automatically redirect to loginname + redirect("/loginname"); } diff --git a/apps/login/src/ui/LayoutProviders.tsx b/apps/login/src/ui/LayoutProviders.tsx index a9fc2dd9562..4c877593765 100644 --- a/apps/login/src/ui/LayoutProviders.tsx +++ b/apps/login/src/ui/LayoutProviders.tsx @@ -1,4 +1,5 @@ "use client"; + import { ZitadelReactProvider } from "@zitadel/react"; import { useTheme } from "next-themes"; diff --git a/apps/login/src/ui/SessionItem.tsx b/apps/login/src/ui/SessionItem.tsx index f9c2b60c00b..b185ca777bc 100644 --- a/apps/login/src/ui/SessionItem.tsx +++ b/apps/login/src/ui/SessionItem.tsx @@ -55,32 +55,38 @@ export default function SessionItem({ return (