Skip to content
Snippets Groups Projects
index.jsx 1.08 KiB
Newer Older
Alexander Schoch's avatar
Alexander Schoch committed
import { Container } from "@mantine/core";
Alexander Schoch's avatar
Alexander Schoch committed

Alexander Schoch's avatar
Alexander Schoch committed
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
Alexander Schoch's avatar
Alexander Schoch committed

Alexander Schoch's avatar
Alexander Schoch committed
import Header from "../components/header";
import Events from "../components/events";
import About from "../components/about";
import Philosophy from "../components/philosophy";
Alexander Schoch's avatar
Alexander Schoch committed

export default function Home() {
  return (
    <>
      <section className="light" style={{ paddingTop: 0 }}>
Alexander Schoch's avatar
Alexander Schoch committed
        <Container size="xl">
          <Header />
        </Container>
      </section>
      <section className="dark" id="events">
Alexander Schoch's avatar
Alexander Schoch committed
        <Container size="xl">
Alexander Schoch's avatar
Alexander Schoch committed
          <Events />
        </Container>
      </section>
      <section className="light" id="about">
Alexander Schoch's avatar
Alexander Schoch committed
        <Container size="xl">
          <About />
Alexander Schoch's avatar
Alexander Schoch committed
        </Container>
      </section>
      <section className="dark" id="philosophy">
        <Container size="xl">
          <Philosophy />
        </Container>
      </section>
Alexander Schoch's avatar
Alexander Schoch committed
    </>
Alexander Schoch's avatar
Alexander Schoch committed
  );
}

export async function getStaticProps({ locale }) {
  return {
    props: {
      ...(await serverSideTranslations(locale, ["common"])),
      protected: false,
    },
  };
Alexander Schoch's avatar
Alexander Schoch committed
}