add people components

This commit is contained in:
elisejakob
2024-05-10 14:07:15 +02:00
parent 1c8abcfe83
commit 8f10cc615c
6 changed files with 113 additions and 2 deletions

View File

@ -1,9 +1,10 @@
import { graphql } from "@/gql";
import {EventFragment} from "@/gql/graphql"
import { EventFragment } from "@/gql/graphql";
import { getClient } from "@/app/client";
import { EventList } from "@/components/events/EventList";
import { Body } from "@/components/general/Body";
import Image from "next/image";
import { PersonList } from "@/components/people/PersonList";
export default async function Home() {
const homeQuery = graphql(`
@ -14,13 +15,21 @@ export default async function Home() {
}
`);
const { data, error } = await getClient().query(homeQuery, {});
const events = (data?.events ?? []) as EventFragment[]
const events = (data?.events ?? []) as EventFragment[];
return (
<main className="site-main" id="main">
<div>
<EventList events={events} />
<blockquote>«Hvor Glæden hersker, er alltid Fest»</blockquote>
<div>
<h2>Styret</h2>
<PersonList />
</div>
<div>
<h2>Administrasjonen</h2>
<PersonList />
</div>
<p className="lead">
Sed sodales nunc quis sapien malesuada, a faucibus turpis blandit.
Suspendisse potenti. Sed auctor enim et augue dapibus, vitae laoreet