next-enterprise/app/page.tsx

26 lines
762 B
TypeScript
Raw Normal View History

2023-08-02 11:23:37 +02:00
import { getProjects } from "./actions"
export default async function Web() {
const projects = await getProjects()
2023-08-02 10:49:45 +02:00
return (
<section>
<div className="mx-auto grid max-w-screen-xl px-4 py-8 text-center lg:py-16">
<div className="mx-auto place-self-center">
<h1 className="mb-4 max-w-2xl text-4xl font-extrabold leading-none tracking-tight md:text-5xl xl:text-6xl">
IsaCon
</h1>
2023-08-02 11:23:37 +02:00
{projects.map((project) => (
<div
key={project.id}
className="mb-4 max-w-2xl text-4xl font-extrabold leading-none tracking-tight md:text-5xl xl:text-6xl"
>
{project.name}
</div>
))}
2023-08-02 10:49:45 +02:00
</div>
</div>
</section>
)
}