2024-10-16 10:18:20 +04:00
|
|
|
|
import classes from './styles.module.scss';
|
2024-12-11 13:10:02 +04:00
|
|
|
|
import TV from '@shared/assets/images/tv.png';
|
|
|
|
|
import Laptop from '@shared/assets/images/laptop.png';
|
|
|
|
|
import { HomeButton } from './components/home.button';
|
|
|
|
|
import { useNavigate } from 'react-router-dom';
|
2024-10-16 10:18:20 +04:00
|
|
|
|
|
2024-10-14 02:27:42 +04:00
|
|
|
|
const HomePage = () => {
|
2024-12-11 13:10:02 +04:00
|
|
|
|
const navigation = useNavigate();
|
|
|
|
|
|
|
|
|
|
const handleLaptopRedirect = () => {
|
|
|
|
|
navigation('/laptop');
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const handleTVRedirect = () => {
|
|
|
|
|
navigation('/tv');
|
|
|
|
|
};
|
|
|
|
|
|
2024-10-16 10:18:20 +04:00
|
|
|
|
return (
|
|
|
|
|
<div className={classes.home}>
|
2024-12-11 13:10:02 +04:00
|
|
|
|
<h1 className={classes.title}>Выберите тип обученной модели</h1>
|
|
|
|
|
<div className={classes.container}>
|
|
|
|
|
<HomeButton imgSrc={Laptop} onClick={handleLaptopRedirect} />
|
|
|
|
|
<HomeButton imgSrc={TV} onClick={handleTVRedirect} />
|
|
|
|
|
</div>
|
2024-10-16 10:18:20 +04:00
|
|
|
|
</div>
|
|
|
|
|
);
|
2024-10-14 02:27:42 +04:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default HomePage;
|