-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RELEASE] 23 April 2024 🚀🚀 #130
Changes from all commits
96b8aca
3a21a1d
55b18c3
5e0dc19
87ece88
fa88291
8c08122
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Large diffs are not rendered by default.
This file was deleted.
Large diffs are not rendered by default.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
import { Button, Typography } from '@eo/ui' | ||
import React, { useState } from 'react' | ||
import { useMutation } from '@tanstack/react-query' | ||
import { subscribeToEoEmailPost } from '~/api/email' | ||
import { toast } from 'react-toastify' | ||
|
||
export const EOInYourInbox = () => { | ||
const [submitted, setSubmitted] = useState(false) | ||
const [email, setEmail] = useState('') | ||
|
||
const { mutate, isLoading } = useMutation({ | ||
mutationFn: subscribeToEoEmailPost, | ||
onSuccess: () => setSubmitted(true), | ||
onError: () => toast.error("Something went wrong, try again.") | ||
}); | ||
Comment on lines
+12
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we validate the email has the correct format? |
||
|
||
return ( | ||
<section className="w-full bg-white px-6 py-12 md:px-[50px] md:py-[100px]"> | ||
<div className="flex flex-col items-center"> | ||
|
@@ -17,15 +28,22 @@ export const EOInYourInbox = () => { | |
special offers are all coming soon. | ||
</Typography> | ||
{!submitted ? | ||
(<div className="mt-[30px] flex w-full flex-col justify-items-end gap-4 md:w-auto md:flex-row"> | ||
(<form onSubmit={ | ||
(e) => { | ||
e.preventDefault() | ||
mutate(email) | ||
}} className="mt-[30px] flex w-full flex-col justify-items-end gap-4 md:w-auto md:flex-row"> | ||
<input | ||
className="h-[49px] w-full rounded-[40px] border border-solid border-black bg-white py-3 pl-4 pr-2 text-black placeholder:text-gray-300 md:w-[327px]" | ||
placeholder="Enter your email..." | ||
type='email' | ||
value={email} | ||
onChange={(e) => { setEmail(e.target.value) }} | ||
/> | ||
<Button variant="black" font="semiBold" onClick={() => setSubmitted(true)}> | ||
<Button type='submit' variant="black" font="semiBold" disabled={isLoading || !email}> | ||
Subscribe | ||
</Button> | ||
</div> | ||
</form> | ||
) : ( | ||
<div className="mt-[30px] px-6 py-12 lg:px-32 lg:py-18 rounded-lg border-2 border-black"> | ||
<Typography font="semiBold" className="text-center text-lg "> | ||
|
@@ -35,6 +53,6 @@ export const EOInYourInbox = () => { | |
</div> | ||
)} | ||
</div> | ||
</section> | ||
</section > | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -296,6 +296,129 @@ export const pilotFaqs: Copy[] = [ | |
}, | ||
]; | ||
|
||
export const inovaFaqs: Copy[] = [ | ||
{ | ||
title: "How much does EO cost?", | ||
content: | ||
"Your care is completely free. And we’ll reimburse you for the cost of your products. Just send a picture of your receipt to [email protected] each time you make a purchase and we’ll provide you with an Amazon gift card in an equal amount.", | ||
}, | ||
{ | ||
title: "How do I get my products?", | ||
content: ( | ||
<> | ||
Recommended CBD and Delta-9 THC products can be ordered through your | ||
care plan for home delivery. They are delivered just like any other | ||
package you might receive from the USPS or others. | ||
<br /> | ||
<br /> | ||
At times, we may recommend products to be picked-up from a dispensary | ||
near you. For these products, you’ll simply select a time to pick them | ||
up in your care plan and our team will then order the products for you. | ||
You just show up at the dispensary at the time you chose, pick-up your | ||
products and pay for them. | ||
</> | ||
), | ||
}, | ||
{ | ||
title: "Why am I obtaining my products from multiple retailers?", | ||
content: ( | ||
<> | ||
We want to connect you with the most clinically appropriate products | ||
while also providing the easiest possible experience. In most cases, | ||
we’ll attempt to address your product needs using CBD and Delta-9 THC | ||
products available via online retailers (including our own EO Store). | ||
These products have been shown to be clinically effective, can be shipped | ||
right to your home and don’t require you to visit a dispensary. | ||
<br /> | ||
<br /> | ||
However, if the nature and intensity of your symptoms suggest the need | ||
for products that can only be sourced from a local dispensary, we will | ||
recommend those products instead. | ||
</> | ||
), | ||
}, | ||
{ | ||
title: "What should I bring with me when I pick-up products at a dispensary?", | ||
content: | ||
"Bring your valid cannabis certification, a state I.D. or driver’s license and a debit card or enough cash to pay for products.", | ||
}, | ||
{ | ||
title: "What if I don’t have a cannabis certification?", | ||
content: | ||
"Depending on your recommended products, you may not need a certification. You only need to be certified if some or all of your recommended products are being sourced from a local dispensary. If you need to be certified, be sure to reach out to [email protected] for help.", | ||
}, | ||
{ | ||
title: "How long should it take my clinical and member services teams to respond to a message, email or phone question/ inquiry?", | ||
content: | ||
"No more than 24 hours and typically within 2-3 hours.", | ||
}, | ||
{ | ||
title: "Why can’t I see my initial care plan as soon as I submit my profile information? ", | ||
content: | ||
"Every profile submitted and piece of feedback provided is initially assessed by our proprietary data model and a draft care plan or care plan update is created. That plan is then closely reviewed and edited as needed by a licensed eo clinician. This can take as long as 24 hours or this can take as little as an hour, depending on the complexity of your profile, your care plan and clinician availability.", | ||
}, | ||
{ | ||
title: "How do you decide which products, doses and times of use are most right for me?", | ||
content: ( | ||
<> | ||
The EO data model and your clinical team bases all recommendations on relevant | ||
aspects of your medical history, cannabis use history, your daily schedule and | ||
the feedback you provide as you use your care plan. | ||
<br /> | ||
<br /> | ||
The model and your team also considers the profiles, experiences and feedback | ||
provided by other EO patients like you and the recommendations of our proprietary | ||
data model. And your clinical team (of course) always draws upon their extensive | ||
cannabis treatment and research experience to provide the best possible care for you. | ||
</> | ||
), | ||
}, | ||
{ | ||
title: "What happens if I miss a dose entirely?", | ||
content: | ||
"Just begin the next dose as scheduled!", | ||
}, | ||
{ | ||
title: "What happens if I’m late taking a dose?", | ||
content: | ||
"If you’re less than 30 minutes late, go ahead and take the dose (also be sure to begin the next dose at the originally scheduled time). If you’re more than 30 minutes late just wait for the next dose to begin.", | ||
}, | ||
{ | ||
title: "What happens if I miss an opportunity to provide feedback?", | ||
content: | ||
"Needless to say, the more feedback you provide, the better we can care for you. However, we know sometimes schedules change and life happens. If you can’t provide feedback when prompted, don’t worry. Just keep going as guided.", | ||
}, | ||
{ | ||
title: "How long should it take to get my cannabis regimen “right”?", | ||
content: ( | ||
<> | ||
Everyone is different when it comes to the time it takes to reach satisfaction | ||
with a care plan. For some, all it takes is a few days or a week or two. For others, | ||
it can take longer. | ||
<br /> | ||
<br /> | ||
It’s important to note, however, that very few people retain a static relationship | ||
to cannabis for long periods of time. Products, doses and times of use typically | ||
change as your reasons for use, symptoms, cannabis tolerance, body and daily schedule evolves. | ||
<br /> | ||
<br /> | ||
As your feedback and needs change, we’ll be with you to alter and optimize your care | ||
plan, guide your care and answer your questions. | ||
</> | ||
), | ||
}, | ||
{ | ||
title: "Can I use a different dispensary or delivery provider than the one you’ve recommended? ", | ||
content: | ||
"The answer is an honest “maybe”. If you’d like to make a change just email us at [email protected] or call 888-823-6143. We’ll do everything we can to accommodate your request.", | ||
}, | ||
{ | ||
title: "What happens if I run out of a particular product?", | ||
content: | ||
"No problem. Just email us at [email protected] or call 888-823-6143. We’ll update your care plan in the very near term to accommodate the absence of that product if/as appropriate and coordinate the ordering of the needed product or a responsible replacement.", | ||
}, | ||
]; | ||
|
||
export const faqs: Copy[] = [ | ||
{ | ||
title: "How much does EO cost?", | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,56 +1,85 @@ | ||||||
import React from "react"; | ||||||
|
||||||
import { Typography, icons } from "@eo/ui"; | ||||||
import { type Flows } from "~/stores/useProfilingStore"; | ||||||
|
||||||
import { Flows } from "~/stores/useProfilingStore"; | ||||||
|
||||||
|
||||||
type FlowsTypes = keyof typeof Flows; | ||||||
|
||||||
interface FooterProps { | ||||||
flow: FlowsTypes; | ||||||
} | ||||||
|
||||||
const basicData = [ | ||||||
{ title: 'Terms of use', url: 'https://eo.care/web/terms-of-use' }, | ||||||
{ title: 'Privacy Policy', url: 'https://eo.care/web/privacy-policy' }, | ||||||
{ title: 'Visit eo.care', url: 'https://eo.care/web/home' } | ||||||
] | ||||||
{ title: "Terms of use", url: "https://eo.care/web/terms-of-use" }, | ||||||
{ title: "Privacy Policy", url: "https://eo.care/web/privacy-policy" }, | ||||||
{ title: "Visit eo.care", url: "https://eo.care/web/home" }, | ||||||
]; | ||||||
|
||||||
const c_org = [ | ||||||
{ title: 'About EO', url: 'https://partner.eo.care/c-org/about' }, | ||||||
...basicData | ||||||
] | ||||||
{ title: "About EO", url: "https://partner.eo.care/c-org/about" }, | ||||||
...basicData, | ||||||
]; | ||||||
|
||||||
const cancer_pilot = [ | ||||||
{ title: 'About EO', url: 'https://partner.eo.care/cancer/about' }, | ||||||
...basicData | ||||||
] | ||||||
{ title: "About EO", url: "https://partner.eo.care/cancer/about" }, | ||||||
...basicData, | ||||||
]; | ||||||
|
||||||
const inova = [ | ||||||
{ title: "About EO", url: "https://partner.eo.care/inova/about" }, | ||||||
...basicData, | ||||||
]; | ||||||
|
||||||
const twist_out_cancer = [ | ||||||
{ title: 'About EO', url: 'https://partner.eo.care/twist-out-cancer/about' }, | ||||||
{ title: 'Cannabis 101', url: 'https://partner.eo.care/twist-out-cancer/cannabis-101' }, | ||||||
...basicData | ||||||
] | ||||||
{ title: "About EO", url: "https://partner.eo.care/twist-out-cancer/about" }, | ||||||
{ | ||||||
title: "Cannabis 101", | ||||||
url: "https://partner.eo.care/twist-out-cancer/cannabis-101", | ||||||
}, | ||||||
...basicData, | ||||||
]; | ||||||
|
||||||
const cancer_support_community = [ | ||||||
{ title: 'About EO', url: 'https://partner.eo.care/cancer-support-community/about' }, | ||||||
{ title: 'Cannabis 101', url: 'https://partner.eo.care/cancer-support-community/cancer-101' }, | ||||||
...basicData | ||||||
] | ||||||
{ | ||||||
title: "About EO", | ||||||
url: "https://partner.eo.care/cancer-support-community/about", | ||||||
}, | ||||||
{ | ||||||
title: "Cannabis 101", | ||||||
url: "https://partner.eo.care/cancer-support-community/cancer-101", | ||||||
}, | ||||||
...basicData, | ||||||
]; | ||||||
|
||||||
const employer_center = [ | ||||||
{ title: 'About EO', url: 'https://partner.eo.care/employers/about' }, | ||||||
...basicData | ||||||
{ title: "About EO", url: "https://partner.eo.care/employers/about" }, | ||||||
...basicData, | ||||||
]; | ||||||
|
||||||
const resource_center_1 = [ | ||||||
{ title: 'About EO', url: 'https://partner.eo.care/cannabis-resource-center-1/about' }, | ||||||
{ title: 'Cannabis 101', url: 'https://partner.eo.care/cannabis-resource-center-1/cannabis-101' }, | ||||||
...basicData | ||||||
{ | ||||||
title: "About EO", | ||||||
url: "https://partner.eo.care/cannabis-resource-center-1/about", | ||||||
}, | ||||||
{ | ||||||
title: "Cannabis 101", | ||||||
url: "https://partner.eo.care/cannabis-resource-center-1/cannabis-101", | ||||||
}, | ||||||
...basicData, | ||||||
]; | ||||||
|
||||||
const resource_center_2 = [ | ||||||
{ title: 'About EO', url: 'https://partner.eo.care/cannabis-resource-center-2/about' }, | ||||||
{ title: 'Cannabis 101', url: 'https://partner.eo.care/cannabis-resource-center-2/cannabis-101' }, | ||||||
...basicData | ||||||
{ | ||||||
title: "About EO", | ||||||
url: "https://partner.eo.care/cannabis-resource-center-2/about", | ||||||
}, | ||||||
{ | ||||||
title: "Cannabis 101", | ||||||
url: "https://partner.eo.care/cannabis-resource-center-2/cannabis-101", | ||||||
}, | ||||||
...basicData, | ||||||
]; | ||||||
|
||||||
const allData = { | ||||||
|
@@ -61,14 +90,14 @@ const allData = { | |||||
marketing_site: basicData, // Will never happen, it's filtered outside | ||||||
employer_center, | ||||||
resource_center_1, | ||||||
resource_center_2 | ||||||
} | ||||||
resource_center_2, | ||||||
inova, | ||||||
}; | ||||||
|
||||||
export function Footer({ flow }: FooterProps) { | ||||||
|
||||||
return ( | ||||||
<footer className="flex flex-col justify-center gap-4 bg-black px-4 py-[100px] md:flex-row md:pl-[10px] lg:pl-5"> | ||||||
<section> | ||||||
<section className="sm:max-w-full md:max-w-[453px]"> | ||||||
<icons.EoWhiteIcon | ||||||
onClick={() => { | ||||||
window.open("https://eo.care/kit", "_blank"); | ||||||
|
@@ -81,9 +110,18 @@ export function Footer({ flow }: FooterProps) { | |||||
> | ||||||
Wise use for all. | ||||||
</Typography> | ||||||
<Typography className="font-new-hero font-normal text-[#ababab]"> | ||||||
<Typography className="mb-[36px] font-new-hero text-[14px] font-normal text-[#ababab]"> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
© 2022 All rights reserved. Patents pending. EO Care, Inc. | ||||||
</Typography> | ||||||
{flow === Flows.cancer_support_community && ( | ||||||
<Typography className="font-new-hero text-[14px] font-normal text-[#ababab]"> | ||||||
Reference in this site to any specific commercial product, process, | ||||||
or service, or the use of any trade, firm or corporation name is for | ||||||
the information and convenience of the recipient, and does not | ||||||
constitute endorsement, recommendation, or favoring by the Cancer | ||||||
Support Community. | ||||||
</Typography> | ||||||
)} | ||||||
</section> | ||||||
<section className="block w-auto md:w-[100px] lg:w-[180px]"></section> | ||||||
<section className="flex flex-row justify-between"> | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
post
word is unnecessary