diff --git a/src/config/routes.tsx b/src/config/routes.tsx index b96738d..08bf7fa 100644 --- a/src/config/routes.tsx +++ b/src/config/routes.tsx @@ -1,12 +1,16 @@ import { Routes, Route } from 'react-router-dom'; import Layout from '../pages/Layout/Layout'; import Main from '../pages/Main/Main'; +import Picture from '../pages/Picture/Picture'; +import Video from '../pages/Video/VideoPage'; export default function AppRoutes(){ return ( }> } /> + } /> + } /> ); diff --git a/src/pages/Main/Main.tsx b/src/pages/Main/Main.tsx index 5d019ce..d8c4a25 100644 --- a/src/pages/Main/Main.tsx +++ b/src/pages/Main/Main.tsx @@ -1,10 +1,15 @@ import styles from "./Main.module.css"; +import {useNavigate} from "react-router-dom"; export default function Main() { + const navigate = useNavigate(); + return (

Главная

Базовая страница приложения готова.

+ +
); } diff --git a/src/pages/Picture/Picture.module.css b/src/pages/Picture/Picture.module.css new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/Picture/Picture.tsx b/src/pages/Picture/Picture.tsx new file mode 100644 index 0000000..902ba1b --- /dev/null +++ b/src/pages/Picture/Picture.tsx @@ -0,0 +1,8 @@ + +export default function Picture() { + return ( +
+

Picture

+
+ ); +} \ No newline at end of file diff --git a/src/pages/Video/VideoPage.module.css b/src/pages/Video/VideoPage.module.css new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/Video/VideoPage.tsx b/src/pages/Video/VideoPage.tsx new file mode 100644 index 0000000..9f31087 --- /dev/null +++ b/src/pages/Video/VideoPage.tsx @@ -0,0 +1,6 @@ + +export default function Video() { + return ( +
video
+ ) +} \ No newline at end of file