diff --git a/public/5-stars.png b/public/5-stars.png new file mode 100644 index 0000000..3ad7b84 Binary files /dev/null and b/public/5-stars.png differ diff --git a/public/check-mark.png b/public/check-mark.png new file mode 100644 index 0000000..1985bf8 Binary files /dev/null and b/public/check-mark.png differ diff --git a/public/cross.png b/public/cross.png new file mode 100644 index 0000000..f8b31df Binary files /dev/null and b/public/cross.png differ diff --git a/public/goosebumps-aura-click-icon-animation.png b/public/goosebumps-aura-click-icon-animation.png new file mode 100644 index 0000000..acfc3c9 Binary files /dev/null and b/public/goosebumps-aura-click-icon-animation.png differ diff --git a/public/goosebumps-aura.png b/public/goosebumps-aura.png new file mode 100644 index 0000000..de26c89 Binary files /dev/null and b/public/goosebumps-aura.png differ diff --git a/public/profile-picture-feedback.png b/public/profile-picture-feedback.png new file mode 100644 index 0000000..96a227f Binary files /dev/null and b/public/profile-picture-feedback.png differ diff --git a/public/stop-icon.png b/public/stop-icon.png new file mode 100644 index 0000000..ddc629a Binary files /dev/null and b/public/stop-icon.png differ diff --git a/src/components/CreateProfilePage/ProcessFlow.tsx b/src/components/CreateProfilePage/ProcessFlow.tsx index 6b927db..fcb5070 100644 --- a/src/components/CreateProfilePage/ProcessFlow.tsx +++ b/src/components/CreateProfilePage/ProcessFlow.tsx @@ -1,5 +1,6 @@ import { useEffect, useState } from 'react' import ProcessItem from "./ProcessItem" +import styles from './styles.module.css' interface Task { (): Promise @@ -32,7 +33,7 @@ const getMultiplier = (currentIdx: number, length: number): number => { } const calculateTop = (currentIdx: number, length: number): number => { - const itemHeight = 56 + const itemHeight = 63 return getMultiplier(currentIdx, length) * itemHeight } @@ -58,7 +59,7 @@ function ProcessFlow({ items, onDone }: ProcessFlowProps): JSX.Element { /> } return ( -
+
{items.map(toItems)}
) diff --git a/src/components/CreateProfilePage/ProcessItem.tsx b/src/components/CreateProfilePage/ProcessItem.tsx index 1ce14c4..24d0b0f 100644 --- a/src/components/CreateProfilePage/ProcessItem.tsx +++ b/src/components/CreateProfilePage/ProcessItem.tsx @@ -1,4 +1,5 @@ -import Loader from "../Loader" +import Loader, { LoaderColor } from "../Loader" +import styles from "./styles.module.css" type ProcessItemProps = { top: number @@ -9,15 +10,15 @@ type ProcessItemProps = { function ProcessItem({ top, label, isDone }: ProcessItemProps): JSX.Element { return ( -
-
+
+
{ isDone - ?
- : + ? check + : }
-
{label}
+
{label}
) } diff --git a/src/components/CreateProfilePage/index.tsx b/src/components/CreateProfilePage/index.tsx index a2fc272..be19946 100644 --- a/src/components/CreateProfilePage/index.tsx +++ b/src/components/CreateProfilePage/index.tsx @@ -3,9 +3,8 @@ import { useNavigate } from "react-router-dom" import { CircularProgressbar, buildStyles } from 'react-circular-progressbar' import { useTranslation } from 'react-i18next' import ProcessFlow from "./ProcessFlow" -import Title from "../Title" import routes from "../../routes" -import './styles.css' +import styles from './styles.module.css' const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)) @@ -14,19 +13,19 @@ function CreateProfilePage(): JSX.Element { const navigate = useNavigate() const [progress, setProgress] = useState(0) const processItems = [ - { task: () => sleep(3300).then(() => setProgress(35)), label: t('zodiac_analysis') }, - { task: () => sleep(2550).then(() => setProgress(61)), label: t('drawing_wallpaper') }, - { task: () => sleep(3789).then(() => setProgress(98)), label: t('preparing_results') }, + { task: () => sleep(3300).then(() => setProgress(23)), label: t('money_energy') }, + { task: () => sleep(2550).then(() => setProgress(48)), label: t('sexual_energy') }, + { task: () => sleep(3789).then(() => setProgress(65)), label: t('black_energy') }, + { task: () => sleep(3789).then(() => setProgress(98)), label: t('relations_energy') }, ] const handleDone = () => Promise.resolve() .then(() => setProgress(100)) .then(() => sleep(1000)) - .then(() => navigate(routes.client.emailEnter())) + .then(() => navigate(routes.client.attention())) return ( -
- {t('creating_profile')} -
+
+
diff --git a/src/components/CreateProfilePage/styles.css b/src/components/CreateProfilePage/styles.module.css similarity index 55% rename from src/components/CreateProfilePage/styles.css rename to src/components/CreateProfilePage/styles.module.css index 64e270e..e79ba63 100644 --- a/src/components/CreateProfilePage/styles.css +++ b/src/components/CreateProfilePage/styles.module.css @@ -1,7 +1,18 @@ +.page { + height: calc(100vh - 50px); + flex: auto !important; + background-color: #000; + color: #fff; +} + .progressbar { width: 100%; max-width: 250px; margin: 24px auto; + background-image: url('/goosebumps-aura.png'); + background-size: 130%; + background-repeat: no-repeat; + background-position: center center; } .process-items { @@ -24,5 +35,9 @@ } .process-item__icon { - font-size: 32px; + width: 32px; +} + +.process-item__label { + color: red; }