2023-04-14 13:35:27 +02:00
|
|
|
import { demos } from "#/lib/demos";
|
|
|
|
|
import Link from "next/link";
|
2023-04-03 13:39:51 +02:00
|
|
|
|
|
|
|
|
export default function Page() {
|
|
|
|
|
return (
|
|
|
|
|
<div className="space-y-8">
|
2023-05-23 10:12:19 +02:00
|
|
|
<h1 className="text-xl font-medium">Pages</h1>
|
2023-04-03 13:39:51 +02:00
|
|
|
|
2023-05-23 10:12:19 +02:00
|
|
|
<div className="space-y-10">
|
2023-04-03 13:39:51 +02:00
|
|
|
{demos.map((section) => {
|
|
|
|
|
return (
|
|
|
|
|
<div key={section.name} className="space-y-5">
|
|
|
|
|
<div className="text-xs font-semibold uppercase tracking-wider text-gray-500">
|
|
|
|
|
{section.name}
|
|
|
|
|
</div>
|
|
|
|
|
<div className="grid grid-cols-1 gap-5 lg:grid-cols-2">
|
|
|
|
|
{section.items.map((item) => {
|
|
|
|
|
return (
|
|
|
|
|
<Link
|
|
|
|
|
href={`/${item.slug}`}
|
|
|
|
|
key={item.name}
|
2023-05-23 10:12:19 +02:00
|
|
|
className="bg-background-light-400 dark:bg-background-dark-400 group block space-y-1.5 rounded-md px-5 py-3 hover:shadow-lg hover:dark:bg-white/10 border border-divider-light dark:border-divider-dark transition-all "
|
2023-04-03 13:39:51 +02:00
|
|
|
>
|
2023-05-23 10:12:19 +02:00
|
|
|
<div className="font-medium">{item.name}</div>
|
2023-04-03 13:39:51 +02:00
|
|
|
|
|
|
|
|
{item.description ? (
|
2023-05-23 10:12:19 +02:00
|
|
|
<div className="line-clamp-3 text-sm text-text-light-secondary-500 dark:text-text-dark-secondary-500">
|
2023-04-03 13:39:51 +02:00
|
|
|
{item.description}
|
|
|
|
|
</div>
|
|
|
|
|
) : null}
|
|
|
|
|
</Link>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</div>
|
2024-01-29 20:35:22 +01:00
|
|
|
|
|
|
|
|
<div className="flex flex-col">
|
|
|
|
|
<div className="mb-5 text-xs font-semibold uppercase tracking-wider text-gray-500">
|
|
|
|
|
Deploy your own on Vercel
|
|
|
|
|
</div>
|
2024-01-29 20:56:19 +01:00
|
|
|
<a href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fzitadel%2Ftypescript&root-directory=apps/login&env=ZITADEL_API_URL,ZITADEL_SERVICE_USER_ID,ZITADEL_SERVICE_USER_TOKEN&envDescription=Setup%20a%20service%20account%20with%20IAM_OWNER%20membership%20on%20your%20instance%20and%20provide%20its%20id%20and%20personal%20access%20token.&project-name=zitadel-login&repository-name=zitadel-login">
|
2024-01-29 20:35:22 +01:00
|
|
|
<img src="https://vercel.com/button" alt="Deploy with Vercel" />
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2023-04-03 13:39:51 +02:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|