From 3204924e3472bafcca1919c57129fc897474fbe6 Mon Sep 17 00:00:00 2001 From: Lucian Petri Date: Tue, 27 Dec 2022 03:37:12 +0200 Subject: [PATCH 01/10] created UserChoice Component --- website/src/components/UserChoice.tsx | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 website/src/components/UserChoice.tsx diff --git a/website/src/components/UserChoice.tsx b/website/src/components/UserChoice.tsx new file mode 100644 index 00000000..39a46aee --- /dev/null +++ b/website/src/components/UserChoice.tsx @@ -0,0 +1,52 @@ +import { Card, CardBody, Flex, Heading } from "@chakra-ui/react"; +import Link from "next/link"; +import React from "react"; +import Image from "next/image"; + +const UserChoice = () => { + return ( + + + + + ); +}; + +type ChoiceProps = { + img?: string; + alt: string; + title: string; + link: string; +}; + +const Choice = (props: ChoiceProps) => { + const { img, title, link } = props; + // NEXT STEPS: FIND BETTER IMAGES AND USE img PROP AS SRC + return ( + + + + + Green double couch with wooden legs + + {title} + + + + + + ); +}; + +export default UserChoice; From 34b4b5ca1c6abee2753e9ef33816d6b51329ad8d Mon Sep 17 00:00:00 2001 From: Lucian Petri Date: Tue, 27 Dec 2022 03:37:52 +0200 Subject: [PATCH 02/10] removed artifacts and linted UserChoice --- website/src/components/UserChoice.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/src/components/UserChoice.tsx b/website/src/components/UserChoice.tsx index 39a46aee..18c0e640 100644 --- a/website/src/components/UserChoice.tsx +++ b/website/src/components/UserChoice.tsx @@ -5,7 +5,7 @@ import Image from "next/image"; const UserChoice = () => { return ( - + @@ -29,8 +29,8 @@ const Choice = (props: ChoiceProps) => { Green double couch with wooden legs From f5e3b552a96b021cda5ee76a0d3561deb3829734 Mon Sep 17 00:00:00 2001 From: Lucian Petri Date: Tue, 27 Dec 2022 03:38:42 +0200 Subject: [PATCH 03/10] added UserChoice and cleaned index --- website/src/pages/index.tsx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 4aa93585..b591535c 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 UserChoice from "../components/UserChoice"; export default function Home() { const { data: session } = useSession(); @@ -47,12 +42,7 @@ export default function Home() {
- - +