aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/LandingPage.tsx
blob: 60deb306347102a20de486ba21a71e881995c8a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/** @jsx jsx */
import { css, jsx } from "@emotion/core";

import HeaderBar from "../components/HeaderBar";
import FormListing from "../components/FormListing";

import { getForms } from "../api/forms";

function LandingPage() {
  return <div>
    <HeaderBar/>
    <div>

      <div css={css`
        display: flex;
        align-items: center;
        flex-direction: column;
      `}>
        <h1>Available Forms</h1>
        

        {getForms().map(form => (
          <FormListing key={form.id} form={form}/>
        ))}
      </div>
    </div>
  </div>
}

export default LandingPage;