diff --git a/website/src/components/TaskSelection/TaskOption.tsx b/website/src/components/TaskSelection/TaskOption.tsx new file mode 100644 index 00000000..764efa68 --- /dev/null +++ b/website/src/components/TaskSelection/TaskOption.tsx @@ -0,0 +1,39 @@ +import { Card, CardBody, Flex, Heading } from "@chakra-ui/react"; +import Image from "next/image"; +import Link from "next/link"; + +export type OptionProps = { + img: string; + alt: string; + title: string; + link: string; +}; + +export const TaskOption = (props: OptionProps) => { + const { alt, img, title, link } = props; + return ( + + + + + {alt} + + {title} + + + + + + ); +}; diff --git a/website/src/components/TaskSelection/TaskOptions.tsx b/website/src/components/TaskSelection/TaskOptions.tsx new file mode 100644 index 00000000..fe24b393 --- /dev/null +++ b/website/src/components/TaskSelection/TaskOptions.tsx @@ -0,0 +1,23 @@ +import { Divider, Flex, Heading } from "@chakra-ui/react"; +import React from "react"; + +export type TaskOptionsProps = { + title: string; + children: JSX.Element | JSX.Element[]; +}; + +export const TaskOptions = (props: TaskOptionsProps) => { + const { title, children } = props; + return ( + + + {title} + + + {children} + + ); +}; diff --git a/website/src/components/TaskSelection/TaskSelection.tsx b/website/src/components/TaskSelection/TaskSelection.tsx new file mode 100644 index 00000000..81c067e8 --- /dev/null +++ b/website/src/components/TaskSelection/TaskSelection.tsx @@ -0,0 +1,29 @@ +import React from "react"; +import { TaskOptions } from "./TaskOptions"; +import { Flex } from "@chakra-ui/react"; +import { TaskOption } from "./TaskOption"; + +export const TaskSelection = () => { + return ( + + + + + + + + + + + ); +}; diff --git a/website/src/components/TaskSelection/index.ts b/website/src/components/TaskSelection/index.ts new file mode 100644 index 00000000..4da7ea7f --- /dev/null +++ b/website/src/components/TaskSelection/index.ts @@ -0,0 +1,3 @@ +export { TaskSelection } from "./TaskSelection"; +export { TaskOptions } from "./TaskOptions"; +export { TaskOption } from "./TaskOption"; diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 71b9360f..6535c865 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -1,16 +1,11 @@ import { useSession } from "next-auth/react"; - import Head from "next/head"; -import Link from "next/link"; -import { Button, Input, Stack } from "@chakra-ui/react"; - import { CallToAction } from "../components/CallToAction"; import { Faq } from "../components/Faq"; import { Footer } from "../components/Footer"; import { Header } from "../components/Header"; import { Hero } from "../components/Hero"; - -import styles from "../styles/Home.module.css"; +import { TaskSelection } from "../components/TaskSelection"; export default function Home() { const { data: session } = useSession(); @@ -46,19 +41,8 @@ export default function Home() { />
-
- - - - +
+