Skip to content

Commit

Permalink
Merge pull request #130 from Light-it-labs/develop
Browse files Browse the repository at this point in the history
[RELEASE] 23 April 2024 πŸš€πŸš€
  • Loading branch information
cgarcia-lightit authored Apr 23, 2024
2 parents 9d8816b + 8c08122 commit 223de1c
Show file tree
Hide file tree
Showing 18 changed files with 391 additions and 331 deletions.
1 change: 0 additions & 1 deletion apps/eo_web/dist/assets/main-201eebc0.css

This file was deleted.

1 change: 1 addition & 0 deletions apps/eo_web/dist/assets/main-307f47b9.css

Large diffs are not rendered by default.

149 changes: 0 additions & 149 deletions apps/eo_web/dist/assets/main-ac945b82.js

This file was deleted.

121 changes: 121 additions & 0 deletions apps/eo_web/dist/assets/main-ce43c661.js

Large diffs are not rendered by default.

121 changes: 0 additions & 121 deletions apps/eo_web/dist/assets/main-dfe7146e.js

This file was deleted.

14 changes: 9 additions & 5 deletions apps/eo_web/dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@
"src": "../../packages/ui/src/assets/avatar.svg"
},
"src/main.css": {
"file": "assets/main-201eebc0.css",
"file": "assets/main-307f47b9.css",
"src": "src/main.css"
},
"src/main.tsx": {
"assets": ["assets/UploadFile-694e44b5.svg"],
"css": ["assets/main-201eebc0.css"],
"file": "assets/main-ac945b82.js",
"assets": [
"assets/UploadFile-694e44b5.svg"
],
"css": [
"assets/main-307f47b9.css"
],
"file": "assets/main-ce43c661.js",
"isEntry": true,
"src": "src/main.tsx"
}
}
}
13 changes: 12 additions & 1 deletion apps/eo_web/src/api/email.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { apiElixir } from "~/api/axios";
import { apiElixir, apiLaravel } from "~/api/axios";

export interface ResendEmailVerificationResponse {
success: boolean;
Expand All @@ -10,3 +10,14 @@ export const resendEmailVerification = async (email: string) => {
{ email },
);
};

export interface SubscribeToEoEmailPostResponse {
success: boolean;
}

export const subscribeToEoEmailPost = async (email: string) => {
return await apiLaravel.post<SubscribeToEoEmailPostResponse>(
"/api/slack-notification/eo-subscription",
{ email },
);
};
26 changes: 22 additions & 4 deletions apps/eo_web/src/components/EOInYourInbox.tsx
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.")
});

return (
<section className="w-full bg-white px-6 py-12 md:px-[50px] md:py-[100px]">
<div className="flex flex-col items-center">
Expand All @@ -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 ">
Expand All @@ -35,6 +53,6 @@ export const EOInYourInbox = () => {
</div>
)}
</div>
</section>
</section >
)
}
3 changes: 2 additions & 1 deletion apps/eo_web/src/components/FAQs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

import { Typography } from "@eo/ui";

import { cOrgFaqs, faqs, pilotFaqs } from "~/copy/copy";
import { cOrgFaqs, faqs, inovaFaqs, pilotFaqs } from "~/copy/copy";
import {
Flows,
type Channel,
Expand All @@ -26,6 +26,7 @@ export const FAQs = ({ channel, flow }: FAQsProps) => {
];
let faqList = faqs;
if (flow && flowsWithCOrgFaqs.includes(flow)) faqList = cOrgFaqs;
else if (flow === Flows.inova) faqList = inovaFaqs;
else if (channel === "cancer" && flow === Flows.cancer_pilot)
faqList = pilotFaqs;

Expand Down
123 changes: 123 additions & 0 deletions apps/eo_web/src/copy/copy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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?",
Expand Down
102 changes: 70 additions & 32 deletions apps/eo_web/src/layouts/Footer.tsx
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 = {
Expand All @@ -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");
Expand All @@ -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]">
Β© 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">
Expand Down
Loading

0 comments on commit 223de1c

Please sign in to comment.