diff --git a/frontend/public/images/roodnederland.svg b/frontend/public/images/roodnederland.svg new file mode 100644 index 0000000..eeae0dd --- /dev/null +++ b/frontend/public/images/roodnederland.svg @@ -0,0 +1,257 @@ + diff --git a/frontend/src/pages/index.tsx b/frontend/src/pages/index.tsx index 28f5ef8..426f120 100644 --- a/frontend/src/pages/index.tsx +++ b/frontend/src/pages/index.tsx @@ -1,17 +1,16 @@ -import Banner from '../components/Banner'; -import AboutUsShort from '../components/AboutUsShort'; -import dynamic from 'next/dynamic'; -import {useMemo} from 'react'; -import {fetchAfdelingen, fetchHome, fetchPosts} from '../utils/backend'; -import Afdeling from '../models/Afdeling'; -import HomeContent from '../models/HomeContent'; -import {Post, PostType} from '../models/Post'; -import Main from '../components/Main'; -import {revalidate} from '../utils/revalidate'; -import {GetStaticPropsResult} from 'next'; -import Subheader from '../components/Subheader'; -import EndlessPostsLoader from '../components/EndlessPostsLoader'; -import HeadPage from '../components/HeadPage'; +import Banner from "../components/Banner"; +import AboutUsShort from "../components/AboutUsShort"; +import { fetchAfdelingen, fetchHome, fetchPosts } from "../utils/backend"; +import Afdeling from "../models/Afdeling"; +import HomeContent from "../models/HomeContent"; +import { Post, PostType } from "../models/Post"; +import Main from "../components/Main"; +import { revalidate } from "../utils/revalidate"; +import { GetStaticPropsResult } from "next"; +import Subheader from "../components/Subheader"; +import EndlessPostsLoader from "../components/EndlessPostsLoader"; +import HeadPage from "../components/HeadPage"; +import AfdelingenTable from "../components/AfdelingenTable"; interface Props { homeContent: HomeContent; @@ -22,28 +21,58 @@ interface Props { export default function HomePage(props: Props) { const content = props.homeContent; - const AfdelingenMap = useMemo(() => dynamic(() => import('../components/AfdelingenMap'), {ssr: false}), []); - - return