This commit is contained in:
Joe_Peach committed 2026-09-23 15:58:51 +03:00
1 parent d2820757b9
commit c6e4801ff6
6 files changed
+23

No files matched your search

+5
View File
@@ -1,10 +1,15 @@
import styles from "./Main.module.css";
import {useNavigate} from "react-router-dom";
export default function Main() {
const navigate = useNavigate();
return (
<main className={styles.page}>
<h1 className={styles.title}>Главная</h1>
<p className={styles.text}>Базовая страница приложения готова.</p>
<button onClick={() => navigate('/picture')}>Go to Picture</button>
<button onClick={() => navigate('/video')}>Go to Video</button>
</main>
);
}