From c756041321136d44630ec7f51cc18db7ea62321c Mon Sep 17 00:00:00 2001 From: Tatyana Date: Wed, 27 Aug 2025 12:44:57 +0300 Subject: [PATCH] =?UTF-8?q?ui=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BE=D0=BA=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B5?= =?UTF-8?q?=20=D1=83=D0=BF=D1=80=D0=B0=D0=B6=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppRoutes.tsx | 2 +- src/components/icons/CheckIcon.tsx | 27 +++++++++ src/components/icons/RefreshIcon.tsx | 27 +++++++++ src/index.css | 5 ++ src/pages/CourseExercises.tsx | 2 +- src/pages/Exercise.tsx | 87 +++++++++++++++++----------- src/shared/consts/router.ts | 2 +- 7 files changed, 116 insertions(+), 36 deletions(-) create mode 100644 src/components/icons/CheckIcon.tsx create mode 100644 src/components/icons/RefreshIcon.tsx diff --git a/src/AppRoutes.tsx b/src/AppRoutes.tsx index 0f87f10..07d6af0 100644 --- a/src/AppRoutes.tsx +++ b/src/AppRoutes.tsx @@ -31,7 +31,7 @@ const AppRoutes = () => ( - + diff --git a/src/components/icons/CheckIcon.tsx b/src/components/icons/CheckIcon.tsx new file mode 100644 index 0000000..546f4fc --- /dev/null +++ b/src/components/icons/CheckIcon.tsx @@ -0,0 +1,27 @@ +import React from "react"; + +interface IconProps { + className?: string; +} + + + +export const CheckIcon: React.FC = ({ className }) => { + return ( + + + + ) +} + + + + + + diff --git a/src/components/icons/RefreshIcon.tsx b/src/components/icons/RefreshIcon.tsx new file mode 100644 index 0000000..66e7401 --- /dev/null +++ b/src/components/icons/RefreshIcon.tsx @@ -0,0 +1,27 @@ +import React from "react"; + +interface IconProps { + className?: string; +} + +export const RefreshIcon: React.FC = ({ className }) => { + return ( + + + + + + + ); +}; \ No newline at end of file diff --git a/src/index.css b/src/index.css index ba992c9..52c4563 100644 --- a/src/index.css +++ b/src/index.css @@ -63,3 +63,8 @@ transform: translateX(100%); } } + + +.rotate-360 { + transform: rotate(160deg); +} \ No newline at end of file diff --git a/src/pages/CourseExercises.tsx b/src/pages/CourseExercises.tsx index 2794a06..0d92c4f 100644 --- a/src/pages/CourseExercises.tsx +++ b/src/pages/CourseExercises.tsx @@ -110,7 +110,7 @@ const history = useHistory(); {/* Кнопки выбора дня */} {days.length > 1 && ( -
+
{days.map((day) => (
{/* Fixed Timer at Bottom */} -
+
@@ -340,11 +332,10 @@ export const Exercise = () => {
+ + + + +
diff --git a/src/shared/consts/router.ts b/src/shared/consts/router.ts index 7aeb765..dc53b5e 100644 --- a/src/shared/consts/router.ts +++ b/src/shared/consts/router.ts @@ -5,6 +5,6 @@ export const getRouteForgotPassword = () => `/forgot-password` export const getRouteCourses = () => `/courses` export const getRouteCourseExercises = (id: number | string) => `/course/${id}` export const getRouteExercise = (courseId: number | string, exerciseId: number | string) => - `/course/${courseId}/exercise/${exerciseId}` + `/course/${courseId}/${exerciseId}` export const getRouteSettings = () => `/settings` export const getRouteCourseComplete = () => `/course-complete`