ЛР5
24
ЛР 4/.eslintrc.cjs
Normal file
@ -0,0 +1,24 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: { browser: true, es2020: true },
|
||||
extends: [
|
||||
'airbnb-base',
|
||||
'plugin:react/recommended',
|
||||
'plugin:react/jsx-runtime',
|
||||
'plugin:react-hooks/recommended',
|
||||
],
|
||||
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
||||
parserOptions: { ecmaVersion: 12, sourceType: 'module' },
|
||||
settings: { react: { version: '18.2' } },
|
||||
plugins: ['react-refresh'],
|
||||
rules: {
|
||||
'react-refresh/only-export-components': [
|
||||
'warn',
|
||||
{ allowConstantExport: true },
|
||||
],
|
||||
'indent': 'off',
|
||||
'no-console': 'off',
|
||||
'arrow-body-style': 'off',
|
||||
'implicit-arrow-linebreak': 'off',
|
||||
},
|
||||
}
|
24
ЛР 4/.gitignore
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
29
ЛР 4/README.md
Normal file
@ -0,0 +1,29 @@
|
||||
#### Окружение:
|
||||
- nodejs 18;
|
||||
- VSCode;
|
||||
- ESLint плагин для VSCode;
|
||||
- для отладки необходимы бразузеры Chrome или Edge.
|
||||
|
||||
#### Создание пустого проекта:
|
||||
|
||||
```commandline
|
||||
npm create vite@latest ./ -- --template react
|
||||
```
|
||||
|
||||
#### Установка зависимостей:
|
||||
|
||||
```commandline
|
||||
npm install
|
||||
```
|
||||
|
||||
#### Запуск проекта:
|
||||
|
||||
```commandline
|
||||
npm run dev
|
||||
```
|
||||
|
||||
#### Сборка проекта:
|
||||
|
||||
```commandline
|
||||
npm run build
|
||||
```
|
15
ЛР 4/index.html
Normal file
@ -0,0 +1,15 @@
|
||||
<html lang="ru">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="./src/assets/logo.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Wash Me</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="h-100 d-flex flex-column"></div>
|
||||
<script type="module" src="./src/main.jsx"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
14
ЛР 4/jsconfig.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Node",
|
||||
"target": "ES2020",
|
||||
"jsx": "react",
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"**/node_modules/*"
|
||||
]
|
||||
}
|
4344
ЛР 4/package-lock.json
generated
Normal file
32
ЛР 4/package.json
Normal file
@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "lec4",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "^6.18.0",
|
||||
"bootstrap": "^5.3.2",
|
||||
"react-bootstrap": "^2.9.1",
|
||||
"react-bootstrap-icons": "^1.10.3",
|
||||
"prop-types": "^15.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.2.15",
|
||||
"@types/react-dom": "^18.2.7",
|
||||
"@vitejs/plugin-react": "^4.0.3",
|
||||
"eslint": "^8.45.0",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-plugin-react": "^7.32.2",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.3",
|
||||
"vite": "^4.4.5"
|
||||
}
|
||||
}
|
5
ЛР 4/src/App.css
Normal file
@ -0,0 +1,5 @@
|
||||
.pageBackground{
|
||||
background-image: url('./src/assets/Main1.jpg');
|
||||
background-attachment: fixed;
|
||||
height: 100%;
|
||||
}
|
24
ЛР 4/src/App.jsx
Normal file
@ -0,0 +1,24 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import { Container } from 'react-bootstrap';
|
||||
import { Outlet } from 'react-router-dom';
|
||||
import './App.css';
|
||||
import Footer from './components/footer/Footer.jsx';
|
||||
import Navigation from './components/navigation/Navigation.jsx';
|
||||
|
||||
const App = ({ routes }) => {
|
||||
return (
|
||||
<>
|
||||
<Navigation routes={routes}></Navigation>
|
||||
<Container className='p-2 pageBackground' as="main" fluid>
|
||||
<Outlet />
|
||||
</Container>
|
||||
<Footer />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
App.propTypes = {
|
||||
routes: PropTypes.array,
|
||||
};
|
||||
|
||||
export default App;
|
BIN
ЛР 4/src/assets/1.jpg
Normal file
After Width: | Height: | Size: 102 KiB |
BIN
ЛР 4/src/assets/2.jpg
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
ЛР 4/src/assets/3.jpg
Normal file
After Width: | Height: | Size: 115 KiB |
BIN
ЛР 4/src/assets/4.jpg
Normal file
After Width: | Height: | Size: 115 KiB |
BIN
ЛР 4/src/assets/5.jpg
Normal file
After Width: | Height: | Size: 116 KiB |
BIN
ЛР 4/src/assets/AccountIcon.jpg
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
ЛР 4/src/assets/Label.jpg
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
ЛР 4/src/assets/Main1.jpg
Normal file
After Width: | Height: | Size: 3.2 MiB |
BIN
ЛР 4/src/assets/TogglerIcon.jpg
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
ЛР 4/src/assets/banner1.png
Normal file
After Width: | Height: | Size: 640 KiB |
BIN
ЛР 4/src/assets/banner2.png
Normal file
After Width: | Height: | Size: 812 KiB |
BIN
ЛР 4/src/assets/banner3.png
Normal file
After Width: | Height: | Size: 767 KiB |
BIN
ЛР 4/src/assets/logo.png
Normal file
After Width: | Height: | Size: 85 KiB |
25
ЛР 4/src/components/banner/Banner.css
Normal file
@ -0,0 +1,25 @@
|
||||
#banner {
|
||||
margin: 2px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#banner img {
|
||||
border: 1px solid #3c3c3f;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#banner img.banner-show {
|
||||
width: 100%;
|
||||
opacity: 1;
|
||||
transition: opacity 1s, visibility 0s;
|
||||
}
|
||||
|
||||
#banner img.banner-hide {
|
||||
height: 0;
|
||||
width: 0;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity 1s, visibility 0s 1s;
|
||||
}
|
40
ЛР 4/src/components/banner/Banner.jsx
Normal file
@ -0,0 +1,40 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
import banner1 from '../../assets/banner1.png';
|
||||
import banner2 from '../../assets/banner2.png';
|
||||
import banner3 from '../../assets/banner3.png';
|
||||
import './Banner.css';
|
||||
|
||||
const Banner = () => {
|
||||
const [currentBanner, setCurrentBanner] = useState(0);
|
||||
const banners = [banner1, banner2, banner3];
|
||||
|
||||
const getBannerClass = (index) => {
|
||||
return currentBanner === index ? 'banner-show' : 'banner-hide';
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
const bannerInterval = setInterval(
|
||||
() => {
|
||||
console.info('Banner changed');
|
||||
let current = currentBanner + 1;
|
||||
if (current === banners.length) {
|
||||
current = 0;
|
||||
}
|
||||
setCurrentBanner(current);
|
||||
},
|
||||
5000,
|
||||
);
|
||||
return () => clearInterval(bannerInterval);
|
||||
});
|
||||
|
||||
return (
|
||||
<div id="banner" >
|
||||
{
|
||||
banners.map((banner, index) =>
|
||||
<img key={index} className={getBannerClass(index)} src={banner} alt={`banner${index}`} />)
|
||||
}
|
||||
</div >
|
||||
);
|
||||
};
|
||||
|
||||
export default Banner;
|
10
ЛР 4/src/components/footer/Footer.css
Normal file
@ -0,0 +1,10 @@
|
||||
.footer-style{
|
||||
position: sticky !important;
|
||||
top: 100px !important;
|
||||
background-color: #184fbd !important;
|
||||
}
|
||||
|
||||
f{
|
||||
font-size: 8px;
|
||||
color: #ffffff;
|
||||
}
|
20
ЛР 4/src/components/footer/Footer.jsx
Normal file
@ -0,0 +1,20 @@
|
||||
import './Footer.css';
|
||||
|
||||
const Footer = () => {
|
||||
return (
|
||||
<footer className="mt-auto footer-style">
|
||||
<div className="container">
|
||||
<div className="row">
|
||||
<div className="col-sm text-center text-sm-start text-light fw-bold fs-6">
|
||||
Контакты: <br/>
|
||||
8-800-535-3535 <br/>
|
||||
avtomoyka73@mail.ru<br/>
|
||||
Авторское право Нияз Юнусов. Все права защищены.<br/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
|
||||
export default Footer;
|
18
ЛР 4/src/components/navigation/Navigation.css
Normal file
@ -0,0 +1,18 @@
|
||||
.my-navbar {
|
||||
background-color: #3c3c3c !important;
|
||||
}
|
||||
|
||||
.my-navbar .link a:hover {
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
|
||||
.my-navbar .logo {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
}
|
||||
.navbar-brand{
|
||||
background-color: #F0F1F3 !important;
|
||||
font-weight: bolder;
|
||||
font-size: 22px;
|
||||
letter-spacing: 1px;
|
||||
}
|
43
ЛР 4/src/components/navigation/Navigation.jsx
Normal file
@ -0,0 +1,43 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import { Container, Nav, Navbar } from 'react-bootstrap';
|
||||
// import { Cart2 } from 'react-bootstrap-icons';
|
||||
import { Link, useLocation } from 'react-router-dom';
|
||||
import './Navigation.css';
|
||||
|
||||
const Navigation = ({ routes }) => {
|
||||
const location = useLocation();
|
||||
const indexPageLink = routes.filter((route) => route.index === false).shift();
|
||||
const pages = routes.filter((route) => Object.prototype.hasOwnProperty.call(route, 'title'));
|
||||
|
||||
return (
|
||||
<>
|
||||
<header>
|
||||
<Navbar expand='lg' data-bs-theme='dark' className='navbar-brand'>
|
||||
<Container fluid>
|
||||
<Navbar.Brand as={Link} to={indexPageLink?.path ?? '/'}>
|
||||
{/* {<Cart2 className='d-inline-block align-top me-1 logo' />} */}
|
||||
<img src='src/assets/Label.jpg' height="150"></img>
|
||||
</Navbar.Brand>
|
||||
<Navbar.Toggle aria-controls='main-navbar' />
|
||||
<Navbar.Collapse id='main-navbar'>
|
||||
<Nav className='me-auto link' activeKey={location.pathname}>
|
||||
{
|
||||
pages.map((page) =>
|
||||
<Nav.Link as={Link} key={page.path} eventKey={page.path} to={page.path ?? '/'} className='nav-link me-3 ms-3 fs-4 fw-bold Navbar'>
|
||||
{page.title}
|
||||
</Nav.Link>)
|
||||
}
|
||||
</Nav>
|
||||
</Navbar.Collapse>
|
||||
</Container>
|
||||
</Navbar >
|
||||
</header>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Navigation.propTypes = {
|
||||
routes: PropTypes.array,
|
||||
};
|
||||
|
||||
export default Navigation;
|
29
ЛР 4/src/index.css
Normal file
@ -0,0 +1,29 @@
|
||||
h1 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.btn-mw {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.btn-mw {
|
||||
width: 30%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.btn-mw {
|
||||
width: 20%;
|
||||
}
|
||||
}
|
165
ЛР 4/src/main.css
Normal file
@ -0,0 +1,165 @@
|
||||
|
||||
body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.back{
|
||||
background-color: #eff0f2 !important;
|
||||
}
|
||||
.razdel1{
|
||||
width: 45%; min-width: 320px ;height: fit-content; background-color: rgba(236,247,230,0.8); padding:2%; border-radius: 20px;
|
||||
}
|
||||
.razdel2{
|
||||
width: 30%; min-width: 320px ;height: fit-content; background-color: rgba(236,247,230,0.8); padding:2%; border-radius: 20px;
|
||||
}
|
||||
.razdel3{
|
||||
width: 70%; min-width: 320px ;height: fit-content; background-color: rgba(236,247,230,0.8); padding:2%; border-radius: 20px;
|
||||
}
|
||||
.razdel4contain{width: 70%; min-width: 320px; height: 500px; background-color: rgba(236,247,230,0.8); border-radius: 20px;}
|
||||
.razdel4reviews{height: fit-content; width: fit-content; background-color: #d9d9d9; border-radius: 20px;}
|
||||
.razdel5{
|
||||
width: 100%; min-width: 320px ;height: fit-content; background-color: rgba(236,247,230,0.8); padding:2%; border-radius: 20px;
|
||||
}
|
||||
h3{
|
||||
font-weight: bolder !important;
|
||||
font-size: 20px !important;
|
||||
color: #000000 !important;
|
||||
}
|
||||
h1{
|
||||
font-weight: 600 !important;
|
||||
font-size: 18px !important;
|
||||
color: #000000 !important;
|
||||
}
|
||||
h7{
|
||||
font-weight: 600 !important;
|
||||
font-size: 22px !important;
|
||||
color: #000000 !important;
|
||||
}
|
||||
h2,h4,h5,h6 {
|
||||
font-weight: 600 !important;
|
||||
font-size: 20px !important;
|
||||
color: #000000 !important;
|
||||
}
|
||||
|
||||
p{
|
||||
font-size: 14px !important;
|
||||
line-height: 28px;
|
||||
margin-bottom: 25px;
|
||||
word-spacing: 10px;
|
||||
}
|
||||
|
||||
.centered{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a:hover, a:focus{
|
||||
color: #7b7b7b;
|
||||
text-decoration: none;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
hr{
|
||||
display: block;
|
||||
height: 1px;
|
||||
border: 0;
|
||||
border-top: 1px solid #ccc;
|
||||
margin: 1em 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.navbar{
|
||||
font-weight: 800;
|
||||
font-size: 14px;
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
.navbar-inverse{
|
||||
background: #2d2d2d;
|
||||
border-color: #2d2d2d;
|
||||
}
|
||||
|
||||
.navbar-inverse .navbar-nav > .active > a{
|
||||
background-color: #ff7878;
|
||||
}
|
||||
|
||||
.navbar-inverse .navbar-brand{
|
||||
color: #999;
|
||||
font-weight: bolder;
|
||||
font-size: 22px;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.Navbar{
|
||||
color: #184fbd !important;
|
||||
}
|
||||
|
||||
.Backgr{
|
||||
background-color: #184fbd !important;
|
||||
}
|
||||
|
||||
.navbar-style{
|
||||
position: sticky !important;
|
||||
top: 0px !important;
|
||||
}
|
||||
|
||||
.footer-style{
|
||||
position: sticky !important;
|
||||
top: 100px !important;
|
||||
background-color: #184fbd !important;
|
||||
}
|
||||
|
||||
f{
|
||||
font-size: 8px;
|
||||
color: #ffffff;
|
||||
}
|
||||
.map{
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
}
|
||||
|
||||
.Otzyv{
|
||||
height: 100px; width: 290px; background-color: #d9d9d9; border-radius: 20px;
|
||||
}
|
||||
|
||||
.ContainerOtzyv{
|
||||
height: 300px !important;
|
||||
}
|
||||
|
||||
.Galerey{
|
||||
width: 70% !important; min-width: 320px !important;height: fit-content !important; min-height: 80% !important; background-color: rgba(236,247,230,0.8) !important; border-radius: 20px !important;
|
||||
}
|
||||
|
||||
.Galerey1{
|
||||
background-image: url('./src/assets/1.jpg')!important; height: 200px !important; width: 300px !important;
|
||||
}
|
||||
|
||||
.Galerey2{
|
||||
background-image: url('./src/assets/2.jpg'); height: 200px !important; width: 300px !important;
|
||||
}
|
||||
.Galerey3{
|
||||
background-image: url('./src/assets/3.jpg'); height: 200px !important; width: 300px !important;
|
||||
}
|
||||
.Galerey4{
|
||||
background-image: url('./src/assets/4.jpg'); height: 200px !important; width: 300px !important;
|
||||
}
|
||||
.Galerey5{
|
||||
background-image: url('./src/assets/5.jpg'); height: 200px !important; width: 300px !important;
|
||||
}
|
||||
|
||||
.GalereyNew{
|
||||
height: 200px !important; width: 300px !important;
|
||||
}
|
||||
|
||||
.GalereyModal{
|
||||
height: fit-content !important; width: 80% !important;
|
||||
}
|
||||
|
||||
.GalereyModal1{
|
||||
height: fit-content !important; width: 100% !important;
|
||||
}
|
||||
|
||||
.GalereyModal2{
|
||||
width: 100% !important;
|
||||
}
|
62
ЛР 4/src/main.jsx
Normal file
@ -0,0 +1,62 @@
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import { RouterProvider, createBrowserRouter } from 'react-router-dom';
|
||||
import App from './App.jsx';
|
||||
import './main.css';
|
||||
import ErrorPage from './pages/ErrorPage.jsx';
|
||||
import Page1 from './pages/Page1.jsx';
|
||||
import Page2 from './pages/Page2.jsx';
|
||||
import Page3 from './pages/Page3.jsx';
|
||||
import Page4 from './pages/Page4.jsx';
|
||||
import Page5 from './pages/Page5.jsx';
|
||||
import Admin from './pages/Admin.jsx';
|
||||
|
||||
const routes = [
|
||||
{
|
||||
index: true,
|
||||
path: '/page1',
|
||||
element: <Page1 />,
|
||||
title: 'Главная',
|
||||
},
|
||||
{
|
||||
path: '/page2',
|
||||
element: <Page2 />,
|
||||
title: 'Адреса',
|
||||
},
|
||||
{
|
||||
path: '/page3',
|
||||
element: <Page3 />,
|
||||
title: 'Прейскурант',
|
||||
},
|
||||
{
|
||||
path: '/page4',
|
||||
element: <Page4 />,
|
||||
title: 'Отзывы',
|
||||
},
|
||||
{
|
||||
path: '/page5',
|
||||
element: <Page5 />,
|
||||
title: 'Галерея',
|
||||
},
|
||||
{
|
||||
path: '/Admin',
|
||||
element: <Admin />,
|
||||
title: 'Админ',
|
||||
},
|
||||
];
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
path: '/',
|
||||
element: <App routes={routes} />,
|
||||
children: routes,
|
||||
errorElement: <ErrorPage />,
|
||||
},
|
||||
]);
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root')).render(
|
||||
<React.StrictMode>
|
||||
<RouterProvider router={router} />
|
||||
</React.StrictMode>,
|
||||
);
|
26
ЛР 4/src/pages/Admin.jsx
Normal file
@ -0,0 +1,26 @@
|
||||
import { Button, ButtonGroup, Table } from 'react-bootstrap';
|
||||
|
||||
const Page4 = () => (
|
||||
<>
|
||||
<ButtonGroup>
|
||||
<Button id="items-add" variant="info">Добавить товар</Button>
|
||||
</ButtonGroup>
|
||||
<Table className="mt-2" striped>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">№</th>
|
||||
<th scope="col" className="w-25">Услуги</th>
|
||||
<th scope="col" className="w-25">Цена</th>
|
||||
<th scope="col" className="w-25">Скидка, %</th>
|
||||
<th scope="col" className="w-25">Сумма</th>
|
||||
<th scope="col"></th>
|
||||
<th scope="col"></th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</Table>
|
||||
</>
|
||||
);
|
||||
|
||||
export default Page4;
|
19
ЛР 4/src/pages/ErrorPage.jsx
Normal file
@ -0,0 +1,19 @@
|
||||
import { Alert, Button, Container } from 'react-bootstrap';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
|
||||
const ErrorPage = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
<Container fluid className="p-2 row justify-content-center">
|
||||
<Container className='col-md-6'>
|
||||
<Alert variant="danger">
|
||||
Страница не найдена
|
||||
</Alert>
|
||||
<Button className="w-25 mt-2" variant="primary" onClick={() => navigate(-1)}>Назад</Button>
|
||||
</Container>
|
||||
</Container>
|
||||
);
|
||||
};
|
||||
|
||||
export default ErrorPage;
|
19
ЛР 4/src/pages/Page1.jsx
Normal file
@ -0,0 +1,19 @@
|
||||
const Page1 = () => {
|
||||
return (
|
||||
<>
|
||||
<div className="pageBackground">
|
||||
<div className="text-light mx-auto mt-5 mb-5 fw-bold rounded-8 p-4 razdel1">
|
||||
<h3>Car Wash! – это чистый результат и экономия средств.</h3>
|
||||
<h3> DS - Detailing Service, удовольствие от самостоятельного</h3>
|
||||
<h3>ухода за автомобилем, сервис в деталях.</h3>
|
||||
<h4 className="mt-4">Мы рады обеспечивать автомобилистам полный комплекс технологий и средств для качественного самостоятельного ухода за автомобилем.</h4>
|
||||
<h4 className="mt-4">Мы гарантируем доступные цены на программы основного ухода: химию для мойки кузова и дисков, защитный воск и осмос ополаскивание, уборку салона пылесосом.</h4>
|
||||
<h4>Предоставляем средства для дополнительного ухода:</h4>
|
||||
<h4> чернитель резины, полироль пластика, очиститель битумных пятен.</h4>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page1;
|
21
ЛР 4/src/pages/Page2.jsx
Normal file
@ -0,0 +1,21 @@
|
||||
const Page2 = () => {
|
||||
return (
|
||||
<>
|
||||
<div className="pageBackground">
|
||||
<div className="text-l.ight text-center mx-auto mt-5 mb-5 fw-bold rounded-8 p-4 razdel2" >
|
||||
<h1>
|
||||
Адреса:
|
||||
</h1>
|
||||
<h1>
|
||||
г. Ульяновск, Дзержинского, 6
|
||||
<br/>г. Ульяновск, Карла Маркса, 61
|
||||
<br/>г. Ульяновск, Пожарный пер., 5
|
||||
<br/>г. Ульяновск, Металлистов, 1
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page2;
|
17
ЛР 4/src/pages/Page3.jsx
Normal file
@ -0,0 +1,17 @@
|
||||
import { Table } from 'react-bootstrap';
|
||||
|
||||
const Page3 = () => {
|
||||
return (
|
||||
<Table className="text-light mx-auto mt-5 mb-5 fw-bold rounded-8 p-4 razdel3 rezdel3Uslugi">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">№</th>
|
||||
<th scope="col" className="w-25">Услуги</th>
|
||||
<th scope="col" className="w-25">Сумма</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</Table>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page3;
|
51
ЛР 4/src/pages/Page4.jsx
Normal file
@ -0,0 +1,51 @@
|
||||
const Page4 = () => {
|
||||
return (
|
||||
<>
|
||||
<div className="container mx-auto my-5 p-2 rounded-8 fw-bold razdel4contain">
|
||||
<div className="row row-cols-2 text-dark float-md-end mx-auto fs-5 fw-medium rounded-7 Otzyv">
|
||||
<div className="col col-8 text-center my-auto lh-1">
|
||||
<a type="button" className="text-decoration-underline" data-bs-toggle="modal" data-bs-target="#LogIn">Войдите</a> в аккаунт или
|
||||
<a type="button" className="text-decoration-underline" data-bs-toggle="modal" data-bs-target="#Register">зарегистрируйтесь</a>
|
||||
</div>
|
||||
<div className="col col-4 mx-CarWash my-auto">
|
||||
<img src="./src/assets/AccountIcon.jpg" alt="Icon" width="80"></img>
|
||||
</div>
|
||||
</div>
|
||||
<div className="text-md-start text-center">
|
||||
<button type="button" className="btn rounded-pill btn-lg text-light my-2 mt-md-4 mb-md-5 fw-normal fs-6 Backgr" data-bs-toggle="modal" data-bs-target="#review">
|
||||
Написать отзыв
|
||||
</button>
|
||||
<div className="container overflow-y-auto ContainerOtzyv">
|
||||
<div className="text-start p-2 rounded-7 my-2 razdel4reviews">
|
||||
<h5 className="fw-normal text-dark">Михаил</h5>
|
||||
<h6>Мойка отличная, пистолеты работают, цены по карману)</h6>
|
||||
<h6>Много машинного места, но и там бывают очереди в целом терпимо</h6>
|
||||
</div>
|
||||
<div className="text-start p-2 rounded-7 my-2 razdel4reviews">
|
||||
<h5 className="fw-normal text-dark">Леша</h5>
|
||||
<h6>Всё понравилось. Очень удобно, всё предусмотрено, очень недорогого.</h6>
|
||||
<h6>Сам помоешь качественнее. Расположение удобное на въезде в Ульяновск</h6>
|
||||
</div>
|
||||
<div className="text-start p-2 rounded-7 my-2 razdel4reviews">
|
||||
<h5 className="fw-normal text-dark">Женя</h5>
|
||||
<h6>Минус: В боксе нельзя оплатить банковской картой!</h6>
|
||||
<h6>Только наличкой или купить карту мойки.</h6>
|
||||
<h6>Или идти к оператору, оплатить у него картой и он пойдёт зачислит в боксе.</h6>
|
||||
</div>
|
||||
<div className="text-start p-2 rounded-7 my-2 razdel4reviews">
|
||||
<h5 className="fw-normal text-dark">Веня</h5>
|
||||
<h6>Обычная мойка самообслуживания, чисто, все работает. Цены как везде, удобно</h6>
|
||||
</div>
|
||||
<div className="text-start p-2 rounded-7 my-2 razdel4reviews">
|
||||
<h5 className="fw-normal text-dark">Артур Джан</h5>
|
||||
<h6>Вая как моет. Очень круто машину помыл и сам за одно помылся.</h6>
|
||||
<h6>Следующий раз семью сюда привезу, вместо баньки</h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page4;
|
19
ЛР 4/src/pages/Page5.jsx
Normal file
@ -0,0 +1,19 @@
|
||||
const Page4 = () => {
|
||||
return (
|
||||
<>
|
||||
<div className="container mx-auto my-5 p-2 rounded-8 fw-bold Galerey">
|
||||
<div className="row row-cols-1 row-cols-lg-2 row-cols-xxl-3 pb-3 text-center">
|
||||
<div className="btn col-xxl-4 col-lg-6 col-12 mx-auto my-2 my-sm-4 bg-image rounded-8 Galerey1" data-bs-toggle="modal" data-bs-target="#exampleModal" data-img="./src/assets/1.jpg"></div>
|
||||
<div className="btn col-xxl-4 col-lg-6 col-12 mx-auto my-2 my-sm-4 bg-image rounded-8 Galerey2" data-bs-toggle="modal" data-bs-target="#exampleModal" data-img="./src/assets/2.jpg" ></div>
|
||||
<div className="btn col-xxl-4 col-lg-6 col-12 mx-auto my-2 my-sm-4 bg-image rounded-8 Galerey3" data-bs-toggle="modal" data-bs-target="#exampleModal" data-img="./src/assets/3.jpg" ></div>
|
||||
<div className="btn col-xxl-4 col-lg-6 col-12 mx-auto my-2 my-sm-4 bg-image rounded-8 Galerey4" data-bs-toggle="modal" data-bs-target="#exampleModal" data-img="./src/assets/4.jpg" ></div>
|
||||
<div className="btn col-xxl-4 col-lg-6 col-12 mx-auto my-2 my-sm-4 bg-image rounded-8 Galerey5" data-bs-toggle="modal" data-bs-target="#exampleModal" data-img="./src/assets/5.jpg" ></div>
|
||||
<div className="btn btn-dark col-xxl-4 col-lg-6 col-12 mx-auto my-4 rounded-8 fw-bold fs-1 GalereyNew"></div>
|
||||
<input id="file" type="file" hidden />
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page4;
|
13
ЛР 4/vite.config.js
Normal file
@ -0,0 +1,13 @@
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
build: {
|
||||
sourcemap: true,
|
||||
chunkSizeWarningLimit: 1024,
|
||||
emptyOutDir: true,
|
||||
},
|
||||
});
|