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..aba68f6d --- /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; +}; + +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..edc3e807 --- /dev/null +++ b/website/src/components/TaskSelection/TaskSelection.tsx @@ -0,0 +1,22 @@ +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..854acd91 --- /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"; \ No newline at end of file diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index b591535c..6535c865 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -5,7 +5,7 @@ import { Faq } from "../components/Faq"; import { Footer } from "../components/Footer"; import { Header } from "../components/Header"; import { Hero } from "../components/Hero"; -import UserChoice from "../components/UserChoice"; +import { TaskSelection } from "../components/TaskSelection"; export default function Home() { const { data: session } = useSession(); @@ -41,8 +41,8 @@ export default function Home() { />
-
- +
+