добавлен нижний отступ в нижней навигации для андроид

This commit is contained in:
Tatyana 2025-08-12 14:37:01 +03:00
parent 8359710c7c
commit 754b4c7c05
2 changed files with 17 additions and 1 deletions

View File

@ -92,7 +92,7 @@ const BottomNavigation: React.FC = () => {
}
return (
<div className="fixed bottom-0 left-0 right-0 bg-gradient-to-br from-[#3ABBC7] to-[#0D212C] p-4 z-50 shadow-lg rounded-t-3xl">
<div className="fixed bottom-0 left-0 right-0 bg-gradient-to-br from-[#3ABBC7] to-[#0D212C] px-4 pt-4 pb-8 z-50 shadow-lg rounded-t-3xl">
<nav className="flex justify-around items-center max-w-md mx-auto">
{navItems.map((item) => {
const active = isActive(item.path)

View File

@ -2,6 +2,7 @@
import type React from "react"
import { useEffect, useState } from "react"
import { useIonRouter } from '@ionic/react';
const CourseComplete: React.FC = () => {
@ -21,6 +22,21 @@ const CourseComplete: React.FC = () => {
}
}, [])
const router = useIonRouter()
useEffect(() => {
const timer = setTimeout(() => {
router.push("/home", "forward")
}, 5000) // Задержка 3 секунды
return () => clearTimeout(timer)
}, [router])
return (