"use client"
import type React from "react"
import BottomNavigation from "../components/BottomNavigation"
import { useHistory } from "react-router-dom"
const Home: React.FC = () => {
const history = useHistory()
const currentDate = new Date().toLocaleDateString("ru-RU", {
weekday: "long",
year: "numeric",
month: "long",
day: "numeric",
})
const courses = [
{ id: 1, name: "Восстановление колена", progress: 75, color: "from-[#2BACBE] to-[#2BACBE]/80" },
{ id: 2, name: "Укрепление спины", progress: 45, color: "from-[#5F5C5C] to-[#5F5C5C]/80" },
{ id: 3, name: "Реабилитация плеча", progress: 90, color: "from-[#2BACBE]/80 to-[#5F5C5C]" },
]
return (
{/* Welcome Section */}
Привет, Александр!
{currentDate}
👤
{/* Analytics Cards */}
{/* Current Exercise */}
Текущее упражнение
🦵
Подъемы ног
Восстановление колена • 3 подхода
{/* Courses */}
Мои курсы
{courses.map((course) => (
history.push(`/course/${course.id}/exercises`)}
className="bg-white/30 backdrop-blur-2xl rounded-3xl p-6 border border-white/20 shadow-xl cursor-pointer hover:shadow-2xl transition-all duration-300 transform hover:scale-[1.02]"
>
💪
{course.name}
{course.progress}% завершено
→
))}
)
}
export default Home