From 665591f8bd346bba43f981412db9918b4e85dc76 Mon Sep 17 00:00:00 2001 From: isra el Date: Sun, 12 Mar 2023 09:47:12 +0300 Subject: [PATCH] chore(web): add 'how it works section' for the landing page --- web/components/home/HowItWorksSection.tsx | 61 +++++++++++++++++++++++ web/components/home/IntroSection.tsx | 21 ++++---- web/components/home/howItWorksContent.ts | 23 +++++++++ web/pages/index.tsx | 2 + 4 files changed, 98 insertions(+), 9 deletions(-) create mode 100644 web/components/home/HowItWorksSection.tsx create mode 100644 web/components/home/howItWorksContent.ts diff --git a/web/components/home/HowItWorksSection.tsx b/web/components/home/HowItWorksSection.tsx new file mode 100644 index 0000000..284782a --- /dev/null +++ b/web/components/home/HowItWorksSection.tsx @@ -0,0 +1,61 @@ +import { AddIcon, MinusIcon } from '@chakra-ui/icons' +import { + Accordion, + AccordionButton, + AccordionIcon, + AccordionItem, + AccordionPanel, + Box, + Container, + Heading, + Stack, + Text, +} from '@chakra-ui/react' +import React from 'react' +import { howItWorksContent } from './howItWorksContent' + +export default function HowItWorksSection() { + return ( + + + + + How It Works + + + + Lorem ipsum dolor sit, amet consectetur adipisicing elit. Illo + exercitationem quo quibusdam, fugit quaerat odio quisquam commodi ut? + Aliquid ab sapiente, expedita quas neque amet consectetur quisquam + reprehenderit voluptas commodi? + + + + + + {howItWorksContent.map(({ title, description }) => ( + + {({ isExpanded }) => ( + <> +

+ + + {title} + + {isExpanded ? ( + + ) : ( + + )} + +

+ {description} + + )} +
+ ))} +
+
+
+ ) +} diff --git a/web/components/home/IntroSection.tsx b/web/components/home/IntroSection.tsx index 04adf64..e7d74be 100644 --- a/web/components/home/IntroSection.tsx +++ b/web/components/home/IntroSection.tsx @@ -10,6 +10,7 @@ import { IconButton, createIcon, } from '@chakra-ui/react' +import Link from 'next/link' import Router from 'next/router' export default function IntroSection() { @@ -70,15 +71,17 @@ export default function IntroSection() { > Get Started - + + + + ) }