From 9b88cbfb4d3f3f390f333743c857d04375061a30 Mon Sep 17 00:00:00 2001 From: tsar-boomba Date: Fri, 13 Sep 2024 18:35:53 -0400 Subject: [PATCH] getting started, liability waiver --- web/components/Onboarding/GetStarted.tsx | 35 +++++++++++++-- web/components/Onboarding/LiabilityWaiver.tsx | 44 +++++++++++++++++-- web/components/atoms/ProgressBar.tsx | 2 +- web/pages/caregiver/onboarding.tsx | 14 +++++- web/tailwind.config.js | 5 ++- 5 files changed, 91 insertions(+), 9 deletions(-) diff --git a/web/components/Onboarding/GetStarted.tsx b/web/components/Onboarding/GetStarted.tsx index d3988ff..8ed8c39 100644 --- a/web/components/Onboarding/GetStarted.tsx +++ b/web/components/Onboarding/GetStarted.tsx @@ -1,9 +1,38 @@ -import { useState } from "react"; +import Button from "@components/atoms/Button"; +import { Dispatch, SetStateAction, useState } from "react"; interface Props { - setPage: (arg0: any) => any; + setPage: Dispatch>; } export default function GetStartedPage({ setPage }: Props) { - return
; + return ( +
+
+ + + Caregiver + +
+
+

+ Let's get started +

+

+ Motherhood Beyond Bars is here to provide whole family support for + mothers, infants, and caregivers like yourself! +

+

+ Before we get started, we’ll need to collect some information to best + meet your needs. If you have any questions, please email us at{" "} + info@motherhoodbeyond.org{" "} + or call us at 678-404-1397. +

+
+
+ ); } diff --git a/web/components/Onboarding/LiabilityWaiver.tsx b/web/components/Onboarding/LiabilityWaiver.tsx index 1d5fc9e..06ab373 100644 --- a/web/components/Onboarding/LiabilityWaiver.tsx +++ b/web/components/Onboarding/LiabilityWaiver.tsx @@ -1,9 +1,47 @@ -import { useState } from "react"; +import Button from "@components/atoms/Button"; +import TextInput from "@components/atoms/TextInput"; +import { Dispatch, SetStateAction, useState } from "react"; interface Props { - setPage: (arg0: any) => any; + setPage: Dispatch>; } export default function LiabilityWaiverPage({ setPage }: Props) { - return
; + return ( +
+

+ Liability Waiver +

+
+ {/* Waiver here */} +

+ PARTICIPANT RELEASE AND WAIVER OF LIABILITY In consideration for the + willingness of Motherhood Beyond Bars (“Organization”) to accept the + individual signing below (“Participant”), as a participant in its + Infant and Caregiver Support program or Reentry and Reunification + program (the “Program”), and in consideration for Participant + accepting the Donated Items (as defined below), and for other good and + valuable consideration, the receipt and sufficiency of which are + acknowledged, Participant does freely, voluntarily and without duress + execute the following Release for and on behalf of him or herself and + his or her heirs, successors, beneficiaries and assigns: 1. Donated + Items. Participant acknowledges receipt from Organization of items, + including those described in the attached document, which may be + provided at any time during the Program (“Donated Items”). + Organization is providing the Donated Items at no charge. Participant + voluntarily accepts the Donated Items “As-Is.” +

+
+ {/* TODO: */} +
+ + +
+
+ + {/* TODO: */} +
+
+ ); } diff --git a/web/components/atoms/ProgressBar.tsx b/web/components/atoms/ProgressBar.tsx index ad0e33b..7240c84 100644 --- a/web/components/atoms/ProgressBar.tsx +++ b/web/components/atoms/ProgressBar.tsx @@ -5,7 +5,7 @@ interface Props { export default function ProgressBar({ progress }: Props) { return ( -
+
+
+ {page > 0 && ( +
+ setPage((prev) => Math.max(0, prev - 1))} + /> + +
+ )} { page == 0 ? ( @@ -30,6 +41,7 @@ export default function CaregiverOnboarding() { ) : null // Save data and route to next page } +
); } diff --git a/web/tailwind.config.js b/web/tailwind.config.js index ce8d6b6..1bda2e3 100644 --- a/web/tailwind.config.js +++ b/web/tailwind.config.js @@ -12,7 +12,10 @@ module.exports = { }, extend: { backgroundImage: { - 'custom-background': 'radial-gradient(115.79% 108.31% at 24.4% 30.17%, #EDB1CB 0.01%, #B14378 92.53%)' + "custom-background": + "radial-gradient(115.79% 108.31% at 24.4% 30.17%, #EDB1CB 0.01%, #B14378 92.53%)", + "onboarding-background": + "radial-gradient(147.14% 98.02% at 24.4% 30.17%, #EDB1CB 0%, #B14378 100%)", }, fontFamily: { sans: ["Open Sans", ...defaultTheme.fontFamily.sans],