remove unused body component, adjust spacing when footer follows blocks with background color, etc

This commit is contained in:
elisejakob
2024-05-20 23:29:26 +02:00
parent 574a3a02a4
commit 9e0466f78b
8 changed files with 22 additions and 221 deletions

View File

@ -4,7 +4,8 @@ import { getClient } from "@/app/client";
import { FeaturedEvents } from "@/components/events/FeaturedEvents";
import { NewsList } from "@/components/news/NewsList";
import { UpcomingEvents } from "@/components/events/UpcomingEvents";
import { Body } from "@/components/general/Body";
import { IconListBlock } from "@/components/blocks/IconListBlock";
import { FeaturedBlock } from "@/components/blocks/FeaturedBlock";
const HomeFragmentDefinition = graphql(`
fragment Home on HomePage {
@ -47,13 +48,13 @@ export default async function Home() {
return (
<main className="site-main index" id="main">
<div>
<FeaturedEvents events={featuredEvents} />
<UpcomingEvents events={events} />
<NewsList heading="Siste nytt" limit={3} featured />
<blockquote>«Hvor Glæden hersker, er alltid Fest»</blockquote>
<Body />
</div>
<FeaturedEvents events={featuredEvents} />
<UpcomingEvents events={events} />
<NewsList heading="Siste nytt" limit={3} featured />
<blockquote>«Hvor Glæden hersker, er alltid Fest»</blockquote>
<IconListBlock />
<FeaturedBlock />
<FeaturedBlock />
</main>
);
}