mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 06:19:45 +00:00
routing
This commit is contained in:
1 parent
4a00dbefc4
commit
9dd0c74989
7 files changed
+96
-20
No files matched your search
@@ -10,18 +10,18 @@ function Navbar() {
|
|||||||
<img src={logo} className="logo" alt="SCB logo"/>
|
<img src={logo} className="logo" alt="SCB logo"/>
|
||||||
</div>
|
</div>
|
||||||
<div className="bar">
|
<div className="bar">
|
||||||
<a href="">
|
<Link to={`/`}>
|
||||||
ГЛАВНАЯ
|
ГЛАВНАЯ
|
||||||
</a>
|
</Link>
|
||||||
<a href="">
|
<Link to={`/aboutus`}>
|
||||||
О НАС
|
О НАС
|
||||||
</a>
|
</Link>
|
||||||
<a href="">
|
<Link to={`/labs`}>
|
||||||
ЛАБОРАТОРИИ
|
ЛАБОРАТОРИИ
|
||||||
</a>
|
</Link>
|
||||||
<a href="">
|
<Link to={`/projects`}>
|
||||||
ПРОЕКТЫ
|
ПРОЕКТЫ
|
||||||
</a>
|
</Link>
|
||||||
<Link to={`/contact`}>
|
<Link to={`/contact`}>
|
||||||
КОНТАКТЫ
|
КОНТАКТЫ
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -4,6 +4,10 @@ import { createHashRouter, RouterProvider, Outlet } from 'react-router-dom';
|
|||||||
|
|
||||||
import Root from './routes/Root';
|
import Root from './routes/Root';
|
||||||
import ErrorPage from './error-page';
|
import ErrorPage from './error-page';
|
||||||
|
import Main from './routes/Main';
|
||||||
|
import Aboutus from './routes/Aboutus';
|
||||||
|
import Labs from './routes/Labs';
|
||||||
|
import Projects from './routes/Projects';
|
||||||
import Contact from './routes/Contact';
|
import Contact from './routes/Contact';
|
||||||
import reportWebVitals from './reportWebVitals';
|
import reportWebVitals from './reportWebVitals';
|
||||||
import './index.scss';
|
import './index.scss';
|
||||||
@@ -15,6 +19,22 @@ const router = createHashRouter([
|
|||||||
element: <Root />,
|
element: <Root />,
|
||||||
errorElement: <ErrorPage />,
|
errorElement: <ErrorPage />,
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
path: "/",
|
||||||
|
element: <Main />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/aboutus",
|
||||||
|
element: <Aboutus />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/labs",
|
||||||
|
element: <Labs />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/projects",
|
||||||
|
element: <Projects />,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/contact",
|
path: "/contact",
|
||||||
element: <Contact />,
|
element: <Contact />,
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
function Aboutus() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<header className="header">
|
||||||
|
<h1>About us</h1>
|
||||||
|
</header>
|
||||||
|
<div className="content">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Aboutus;
|
||||||
+12
-12
@@ -1,5 +1,3 @@
|
|||||||
import Navbar from '../components/Navbar/Navbar';
|
|
||||||
|
|
||||||
function Contact() {
|
function Contact() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -7,17 +5,19 @@ function Contact() {
|
|||||||
<h1>Студенческое конструкторское бюро<br />
|
<h1>Студенческое конструкторское бюро<br />
|
||||||
"Компьютерное инновационное творчество"</h1>
|
"Компьютерное инновационное творчество"</h1>
|
||||||
</header>
|
</header>
|
||||||
<div className="contact">
|
<div className="content">
|
||||||
<p>Контактное лицо: Кутковой Владимир Сергеевич</p>
|
<div className="contact">
|
||||||
|
<p>Контактное лицо: Кутковой Владимир Сергеевич</p>
|
||||||
|
</div>
|
||||||
|
<form className="form">
|
||||||
|
<label htmlFor="topic-input">Тема</label>
|
||||||
|
<input type="text" name="topic" id="topic-input" />
|
||||||
|
<label htmlFor="email">Почта</label>
|
||||||
|
<input type="text" name="email-input" id="email-input" />
|
||||||
|
<label htmlFor="message">Сообщение</label>
|
||||||
|
<input type="text" name="message-input" id="message-input" />
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<form className="form">
|
|
||||||
<label htmlFor="topic-input">Тема</label>
|
|
||||||
<input type="text" name="topic" id="topic-input" />
|
|
||||||
<label htmlFor="email">Почта</label>
|
|
||||||
<input type="text" name="email-input" id="email-input" />
|
|
||||||
<label htmlFor="message">Сообщение</label>
|
|
||||||
<input type="text" name="message-input" id="message-input" />
|
|
||||||
</form>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
function Labs() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<header className="header">
|
||||||
|
<h1>Laboratories</h1>
|
||||||
|
</header>
|
||||||
|
<div className="content">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Labs;
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
function Main() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<header className="header">
|
||||||
|
<h1>Main page</h1>
|
||||||
|
</header>
|
||||||
|
<div className="content">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Main;
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
function Projects() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<header className="header">
|
||||||
|
<h1>Projects</h1>
|
||||||
|
</header>
|
||||||
|
<div className="content">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Projects;
|
||||||
Reference in new issue
Block a user