diff --git a/ReactLibrary/src/components/navigation/Navigation.jsx b/ReactLibrary/src/components/navigation/Navigation.jsx
index 46470e4..be61903 100644
--- a/ReactLibrary/src/components/navigation/Navigation.jsx
+++ b/ReactLibrary/src/components/navigation/Navigation.jsx
@@ -10,7 +10,7 @@ const Navigation = ({ routes }) => {
const pages = routes.filter((route) => Object.prototype.hasOwnProperty.call(route, 'title'));
return (
-
+
@@ -18,7 +18,7 @@ const Navigation = ({ routes }) => {
-
-
+
);
};
diff --git a/ReactLibrary/src/main.jsx b/ReactLibrary/src/main.jsx
index b4e60ba..329c988 100644
--- a/ReactLibrary/src/main.jsx
+++ b/ReactLibrary/src/main.jsx
@@ -18,6 +18,8 @@ import LoginPage from './pages/LoginPage.jsx';
import BookEdit from './pages/BookEdit.jsx';
import CategoryEdit from './pages/CategoryEdit.jsx';
import AuthorEdit from './pages/AuthorEdit.jsx';
+import SearchForm from './pages/SearchForm.jsx';
+import SearchResults from './pages/SearchResults.jsx';
const routes = [
{
@@ -36,6 +38,11 @@ const routes = [
element: ,
title: 'Личный кабинет',
},
+ {
+ path: '/search-form',
+ element: ,
+ title: 'Поиск',
+ },
{
path: '/admin-page',
element: ,
@@ -76,6 +83,10 @@ const routes = [
path: '/author-edit',
element: ,
},
+ {
+ path: '/search-results',
+ element: ,
+ },
];
const router = createBrowserRouter([
diff --git a/ReactLibrary/src/pages/AuthorEdit.jsx b/ReactLibrary/src/pages/AuthorEdit.jsx
index e6db72d..4d52c6b 100644
--- a/ReactLibrary/src/pages/AuthorEdit.jsx
+++ b/ReactLibrary/src/pages/AuthorEdit.jsx
@@ -49,7 +49,7 @@ const AuthorEdit = () => {
-
+
>
diff --git a/ReactLibrary/src/pages/BookEdit.jsx b/ReactLibrary/src/pages/BookEdit.jsx
index 69b3da8..703aaf4 100644
--- a/ReactLibrary/src/pages/BookEdit.jsx
+++ b/ReactLibrary/src/pages/BookEdit.jsx
@@ -46,7 +46,7 @@ const BookEdit = () => {
-
+
>
diff --git a/ReactLibrary/src/pages/CategoryEdit.jsx b/ReactLibrary/src/pages/CategoryEdit.jsx
index 7e0c5b5..f9a327e 100644
--- a/ReactLibrary/src/pages/CategoryEdit.jsx
+++ b/ReactLibrary/src/pages/CategoryEdit.jsx
@@ -29,7 +29,7 @@ const CategoryEdit = () => {
-
+
>
diff --git a/ReactLibrary/src/pages/MainPage.jsx b/ReactLibrary/src/pages/MainPage.jsx
index bdddfe1..4baf3c4 100644
--- a/ReactLibrary/src/pages/MainPage.jsx
+++ b/ReactLibrary/src/pages/MainPage.jsx
@@ -16,7 +16,7 @@ const MainPage = () => {
-
+
>
);
diff --git a/ReactLibrary/src/pages/SearchForm.jsx b/ReactLibrary/src/pages/SearchForm.jsx
new file mode 100644
index 0000000..6c4ce13
--- /dev/null
+++ b/ReactLibrary/src/pages/SearchForm.jsx
@@ -0,0 +1,45 @@
+import { useState } from 'react';
+import { Button, Form } from 'react-bootstrap';
+import { useNavigate } from 'react-router-dom';
+
+const SearchForm = () => {
+ const [validated, setValidated] = useState(false);
+ const navigate = useNavigate();
+ const handleSubmit = (event) => {
+ const form = event.currentTarget;
+ if (form.checkValidity() === false) {
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ setValidated(true);
+ };
+ return (
+ <>
+
+ Параметры поиска.
+
+
+ Автор
+
+
+
+
+ Название
+
+
+
+ Категория
+
+
+
+
+
+
+
+
+ >
+ );
+};
+
+export default SearchForm;
diff --git a/ReactLibrary/src/pages/SearchResults.jsx b/ReactLibrary/src/pages/SearchResults.jsx
new file mode 100644
index 0000000..5415db4
--- /dev/null
+++ b/ReactLibrary/src/pages/SearchResults.jsx
@@ -0,0 +1,28 @@
+import { Button, Table } from 'react-bootstrap';
+import { useNavigate } from 'react-router-dom';
+
+const SearchResults = () => {
+const navigate = useNavigate();
+ return (
+ <>
+
+ Результаты поиска.
+
+
+
+
+ № |
+ Автор |
+ Название |
+ Категория |
+ Год издания |
+ |
+ |
+
+
+
+ >
+ );
+};
+
+export default SearchResults;