delete front
This commit is contained in:
parent
90aa236efb
commit
06e281c1a8
29 changed files with 0 additions and 19189 deletions
23
contracts-front/.gitignore
vendored
23
contracts-front/.gitignore
vendored
|
@ -1,23 +0,0 @@
|
|||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
/.pnp
|
||||
.pnp.js
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
|
@ -1,70 +0,0 @@
|
|||
# Getting Started with Create React App
|
||||
|
||||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
||||
|
||||
## Available Scripts
|
||||
|
||||
In the project directory, you can run:
|
||||
|
||||
### `npm start`
|
||||
|
||||
Runs the app in the development mode.\
|
||||
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
|
||||
|
||||
The page will reload when you make changes.\
|
||||
You may also see any lint errors in the console.
|
||||
|
||||
### `npm test`
|
||||
|
||||
Launches the test runner in the interactive watch mode.\
|
||||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
||||
|
||||
### `npm run build`
|
||||
|
||||
Builds the app for production to the `build` folder.\
|
||||
It correctly bundles React in production mode and optimizes the build for the best performance.
|
||||
|
||||
The build is minified and the filenames include the hashes.\
|
||||
Your app is ready to be deployed!
|
||||
|
||||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
||||
|
||||
### `npm run eject`
|
||||
|
||||
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
|
||||
|
||||
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
||||
|
||||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
|
||||
|
||||
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
|
||||
|
||||
## Learn More
|
||||
|
||||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
||||
|
||||
To learn React, check out the [React documentation](https://reactjs.org/).
|
||||
|
||||
### Code Splitting
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
|
||||
|
||||
### Analyzing the Bundle Size
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
|
||||
|
||||
### Making a Progressive Web App
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
|
||||
|
||||
### Advanced Configuration
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
|
||||
|
||||
### Deployment
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
|
||||
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
18307
contracts-front/package-lock.json
generated
18307
contracts-front/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,40 +0,0 @@
|
|||
{
|
||||
"name": "contracts-front",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@testing-library/jest-dom": "^5.17.0",
|
||||
"@testing-library/react": "^13.4.0",
|
||||
"@testing-library/user-event": "^13.5.0",
|
||||
"formik": "^2.4.5",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "^6.21.2",
|
||||
"react-scripts": "5.0.1",
|
||||
"web-vitals": "^2.1.4"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
"react-app",
|
||||
"react-app/jest"
|
||||
]
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 3.8 KiB |
|
@ -1,45 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Web site created using create-react-app"
|
||||
/>
|
||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is installed on a
|
||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
-->
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap" rel="stylesheet">
|
||||
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
Only files inside the `public` folder can be referenced from the HTML.
|
||||
|
||||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
||||
work correctly both with client-side routing and a non-root public URL.
|
||||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>React App</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<!--
|
||||
This HTML file is a template.
|
||||
If you open it directly in the browser, you will see an empty page.
|
||||
|
||||
You can add webfonts, meta tags, or analytics to this file.
|
||||
The build step will place the bundled scripts into the <body> tag.
|
||||
|
||||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
-->
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
Before Width: | Height: | Size: 5.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 9.4 KiB |
|
@ -1,25 +0,0 @@
|
|||
{
|
||||
"short_name": "React App",
|
||||
"name": "Create React App Sample",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"sizes": "64x64 32x32 24x24 16x16",
|
||||
"type": "image/x-icon"
|
||||
},
|
||||
{
|
||||
"src": "logo192.png",
|
||||
"type": "image/png",
|
||||
"sizes": "192x192"
|
||||
},
|
||||
{
|
||||
"src": "logo512.png",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"theme_color": "#000000",
|
||||
"background_color": "#ffffff"
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
# https://www.robotstxt.org/robotstxt.html
|
||||
User-agent: *
|
||||
Disallow:
|
|
@ -1,3 +0,0 @@
|
|||
body {
|
||||
font-family: 'Oswald', sans-serif;
|
||||
}
|
|
@ -1,55 +0,0 @@
|
|||
import React, { useEffect } from "react";
|
||||
import {
|
||||
BrowserRouter as Router,
|
||||
Switch,
|
||||
Route,
|
||||
Link,
|
||||
Routes,
|
||||
Navigate,
|
||||
useNavigate,
|
||||
} from "react-router-dom";
|
||||
import "./App.css"
|
||||
|
||||
import ForumPage from "./pages/ForumPage";
|
||||
import PostPage from "./pages/PostPage";
|
||||
import AuthPage from "./pages/AuthPage";
|
||||
import ProfilePage from "./pages/ProfilePage";
|
||||
|
||||
|
||||
|
||||
const ProtectedRoute = ({ element }) => {
|
||||
const isAuthenticated = localStorage.getItem("authenticated");
|
||||
const navigate = useNavigate();
|
||||
|
||||
useEffect(() => {
|
||||
if (!isAuthenticated) {
|
||||
|
||||
navigate("/");
|
||||
}
|
||||
}, [isAuthenticated, navigate]);
|
||||
|
||||
|
||||
return element;
|
||||
};
|
||||
|
||||
function App() {
|
||||
|
||||
return (
|
||||
<div className="name">
|
||||
|
||||
<Router>
|
||||
<Routes>
|
||||
<Route path="/" element={<ForumPage />} />
|
||||
<Route path="/post" element={<PostPage/>} />
|
||||
<Route path="/profile" element={<ProfilePage/>}/>
|
||||
<Route path="/auth" element={<AuthPage/>}/>
|
||||
|
||||
</Routes>
|
||||
|
||||
|
||||
</Router>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
|
@ -1,46 +0,0 @@
|
|||
import React, { useState } from 'react';
|
||||
import { Formik, Form, Field } from 'formik';
|
||||
import "../css/auth.css"
|
||||
|
||||
function AddComment({ handleDropdownToggle1 }) {
|
||||
const [formData, setFormData] = useState({
|
||||
user: '',
|
||||
message: '',
|
||||
});
|
||||
|
||||
const handleInputChange = (e) => {
|
||||
const { name, value } = e.target;
|
||||
setFormData({ ...formData, [name]: value });
|
||||
};
|
||||
|
||||
const handleSubmit = (values, { resetForm }) => {
|
||||
// Handle your form submission logic here
|
||||
console.log(values);
|
||||
handleDropdownToggle1();
|
||||
resetForm();
|
||||
};
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Formik initialValues={formData} onSubmit={handleSubmit}>
|
||||
<Form className="form">
|
||||
|
||||
<label className="row">Текст</label>
|
||||
<Field
|
||||
as="textarea"
|
||||
className="input"
|
||||
name="message"
|
||||
value={formData.message}
|
||||
onChange={handleInputChange}
|
||||
required
|
||||
/>
|
||||
<button className="submit-button" type="submit">
|
||||
Отправить
|
||||
</button>
|
||||
</Form>
|
||||
</Formik>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default AddComment;
|
|
@ -1,53 +0,0 @@
|
|||
import React, { useState } from 'react';
|
||||
import { Formik, Form, Field } from 'formik';
|
||||
|
||||
function AddPost({ handleDropdownToggle1 }) {
|
||||
const [formData, setFormData] = useState({
|
||||
user: '',
|
||||
title: '',
|
||||
message: '',
|
||||
});
|
||||
|
||||
const handleInputChange = (e) => {
|
||||
const { name, value } = e.target;
|
||||
setFormData({ ...formData, [name]: value });
|
||||
};
|
||||
|
||||
const handleSubmit = (values, { resetForm }) => {
|
||||
// Handle your form submission logic here
|
||||
console.log(values);
|
||||
handleDropdownToggle1();
|
||||
resetForm();
|
||||
};
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Formik initialValues={formData} onSubmit={handleSubmit}>
|
||||
<Form className="form">
|
||||
<label className="row">Заголовок</label>
|
||||
<Field
|
||||
className="input"
|
||||
name="title"
|
||||
value={formData.title}
|
||||
onChange={handleInputChange}
|
||||
required
|
||||
/>
|
||||
<label className="row">Текст</label>
|
||||
<Field
|
||||
as="textarea"
|
||||
className="input"
|
||||
name="message"
|
||||
value={formData.message}
|
||||
onChange={handleInputChange}
|
||||
required
|
||||
/>
|
||||
<button className="submit-button" type="submit">
|
||||
Отправить
|
||||
</button>
|
||||
</Form>
|
||||
</Formik>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default AddPost;
|
|
@ -1,38 +0,0 @@
|
|||
import React from "react";
|
||||
import {Formik, Form, Field} from 'formik'
|
||||
import "../css/auth.css"
|
||||
|
||||
|
||||
function AuthForm(){
|
||||
return(
|
||||
<div className="container-form">
|
||||
<Form className="form">
|
||||
<label className="row">Логин</label>
|
||||
<Field className="input" name="login" required/>
|
||||
<label className="row">Пароль</label>
|
||||
<Field className="input" type="password" name="password" required/>
|
||||
<button className="submit-button" type="submit">Отправить</button>
|
||||
</Form>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function handleFormSubmit(values, formAPI){
|
||||
const date = new Date();
|
||||
const newLogin = {
|
||||
...values,
|
||||
createdAt: date.toLocaleString(),
|
||||
key: date
|
||||
};
|
||||
formAPI.setSubmitting(false)
|
||||
}
|
||||
function Auth() {
|
||||
return(
|
||||
<div className="container">
|
||||
<Formik initialValues={{login: '', password: ''}} onSubmit={handleFormSubmit} component={AuthForm}/>
|
||||
</div>
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
export default Auth
|
|
@ -1,72 +0,0 @@
|
|||
import React from 'react'
|
||||
import '../css/forum.css'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { useState } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
import axios from 'axios';
|
||||
|
||||
function Forum() {
|
||||
const [posts, setPosts] = useState([]);
|
||||
useEffect(() => {
|
||||
const url = 'http://localhost:2281?command_type=get&method=getAllPosts&command_id=8&contract=post&args=';
|
||||
const fetchData = async () => {
|
||||
try {
|
||||
const response = await axios.get(url);
|
||||
console.log(response);
|
||||
setPosts(response);
|
||||
} catch (error) {
|
||||
console.error('Ошибка при получении данных', error);
|
||||
}
|
||||
};
|
||||
|
||||
fetchData();
|
||||
}, []);
|
||||
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* {posts.map((post) =>( */}
|
||||
<div className='post'>
|
||||
|
||||
<div className='post-body'>
|
||||
|
||||
<div className='user-icon'>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
|
||||
<path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6"/>
|
||||
</svg>
|
||||
<p style={{marginLeft: "5px"}}>
|
||||
{posts.answer}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p style={{color: "black"}}>sdgsdgdafhkkafdlhfdhksldfhjsdfh;lsdfl;h<br/>dfk;k;gadfkgjad;dfggj;adfhafd;jhjl;adfhadfl;hadljfhdf<br/>rosgjopspgrosor</p>
|
||||
|
||||
|
||||
<button className='post-buttons' >
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-through-heart-fill" viewBox="0 0 16 16">
|
||||
<path fill-rule="evenodd" d="M2.854 15.854A.5.5 0 0 1 2 15.5V14H.5a.5.5 0 0 1-.354-.854l1.5-1.5A.5.5 0 0 1 2 11.5h1.793l3.103-3.104a.5.5 0 1 1 .708.708L4.5 12.207V14a.5.5 0 0 1-.146.354zM16 3.5a.5.5 0 0 1-.854.354L14 2.707l-1.006 1.006c.236.248.44.531.6.845.562 1.096.585 2.517-.213 4.092-.793 1.563-2.395 3.288-5.105 5.08L8 13.912l-.276-.182A24 24 0 0 1 5.8 12.323L8.31 9.81a1.5 1.5 0 0 0-2.122-2.122L3.657 10.22a9 9 0 0 1-1.039-1.57c-.798-1.576-.775-2.997-.213-4.093C3.426 2.565 6.18 1.809 8 3.233c1.25-.98 2.944-.928 4.212-.152L13.292 2 12.147.854A.5.5 0 0 1 12.5 0h3a.5.5 0 0 1 .5.5z"/>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
|
||||
<Link to='/post' style={{ textDecoration: 'none' }}>
|
||||
<button className='post-buttons' style={{marginLeft: '5px'}} >
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chat-left-dots-fill" viewBox="0 0 16 16">
|
||||
<path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4.414a1 1 0 0 0-.707.293L.854 15.146A.5.5 0 0 1 0 14.793zm5 4a1 1 0 1 0-2 0 1 1 0 0 0 2 0m4 0a1 1 0 1 0-2 0 1 1 0 0 0 2 0m3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/>
|
||||
</svg>
|
||||
</button>
|
||||
</Link>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
{/* ))} */}
|
||||
</>
|
||||
|
||||
)
|
||||
}
|
||||
|
||||
export default Forum
|
|
@ -1,56 +0,0 @@
|
|||
import React from 'react'
|
||||
import '../css/forum.css'
|
||||
import { useState } from 'react';
|
||||
import AddPost from './AddPost'
|
||||
import { Link } from 'react-router-dom'
|
||||
|
||||
function NavBar() {
|
||||
const [showDropdown1, setShowDropdown1] = useState(false);
|
||||
const handleDropdownToggle1 = () => {
|
||||
setShowDropdown1(!showDropdown1);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<div className='button-block'>
|
||||
|
||||
<Link to='/' style={{ textDecoration: 'none' }}>
|
||||
<button className='profile-button'>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" fill="currentColor" class="bi bi-chat-left-text-fill" viewBox="0 0 16 16">
|
||||
<path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4.414a1 1 0 0 0-.707.293L.854 15.146A.5.5 0 0 1 0 14.793zm3.5 1a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1zm0 2.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1zm0 2.5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1z"/>
|
||||
</svg>
|
||||
</button>
|
||||
</Link>
|
||||
|
||||
|
||||
<button className='profile-button' onClick={handleDropdownToggle1}>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="currentColor" class="bi bi-plus-circle-fill" viewBox="0 0 16 16">
|
||||
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3z"/>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
|
||||
<Link to='/profile' style={{ textDecoration: 'none' }}>
|
||||
<button className='profile-button'>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="currentColor" class="bi bi-person-circle" viewBox="0 0 16 16">
|
||||
<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0"/>
|
||||
<path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1"/>
|
||||
</svg>
|
||||
</button>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{showDropdown1 ? (
|
||||
<div className='add-post'>
|
||||
<AddPost handleDropdownToggle1={handleDropdownToggle1}/>
|
||||
</div>
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default NavBar
|
|
@ -1,78 +0,0 @@
|
|||
import React from 'react'
|
||||
import '../css/post.css'
|
||||
import AddComment from './AddComment'
|
||||
import { useState } from 'react';
|
||||
|
||||
|
||||
function Post() {
|
||||
const [showDropdown1, setShowDropdown1] = useState(false);
|
||||
const handleDropdownToggle1 = () => {
|
||||
setShowDropdown1(!showDropdown1);
|
||||
};
|
||||
return (
|
||||
<div>
|
||||
|
||||
<div className='post-with-comments'>
|
||||
<div className='main-post'>
|
||||
|
||||
<div className='user-icon'>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
|
||||
<path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6"/>
|
||||
</svg>
|
||||
<p style={{marginLeft: "5px"}}>
|
||||
UserName
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p >sdgsdgdafhkkafdlhfdhksldfhjsdfh;lsdfl;h<br/>dfk;k;gadfkgjad;dfggj;adfhafd;jhjl;adfhadfl;hadljfhdf<br/>rosgjopspgrosor</p>
|
||||
|
||||
<button className='post-buttons'>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-through-heart-fill" viewBox="0 0 16 16">
|
||||
<path fill-rule="evenodd" d="M2.854 15.854A.5.5 0 0 1 2 15.5V14H.5a.5.5 0 0 1-.354-.854l1.5-1.5A.5.5 0 0 1 2 11.5h1.793l3.103-3.104a.5.5 0 1 1 .708.708L4.5 12.207V14a.5.5 0 0 1-.146.354zM16 3.5a.5.5 0 0 1-.854.354L14 2.707l-1.006 1.006c.236.248.44.531.6.845.562 1.096.585 2.517-.213 4.092-.793 1.563-2.395 3.288-5.105 5.08L8 13.912l-.276-.182A24 24 0 0 1 5.8 12.323L8.31 9.81a1.5 1.5 0 0 0-2.122-2.122L3.657 10.22a9 9 0 0 1-1.039-1.57c-.798-1.576-.775-2.997-.213-4.093C3.426 2.565 6.18 1.809 8 3.233c1.25-.98 2.944-.928 4.212-.152L13.292 2 12.147.854A.5.5 0 0 1 12.5 0h3a.5.5 0 0 1 .5.5z"/>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<button className='comment-button'
|
||||
style={{marginLeft: '5px'}}
|
||||
onClick={handleDropdownToggle1}
|
||||
>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="32" style={{marginLeft: "5px"}} height="32" fill="currentColor" class="bi bi-plus-lg" viewBox="0 0 16 16">
|
||||
<path fill-rule="evenodd" d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2"/>
|
||||
</svg>
|
||||
|
||||
<p className='button-text'> ДОБАВИТЬ КОММЕНТАРИЙ </p>
|
||||
</button>
|
||||
|
||||
{showDropdown1 ? (
|
||||
<div className='add-post'>
|
||||
<AddComment handleDropdownToggle1={handleDropdownToggle1}/>
|
||||
</div>
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
|
||||
<div className='comment'>
|
||||
<div className='user-icon'>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
|
||||
<path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6"/>
|
||||
</svg>
|
||||
<p style={{marginLeft: "5px"}}>
|
||||
UserName
|
||||
</p>
|
||||
</div>
|
||||
<p className='comment-text'>asdgdagadgadddddddddddgad</p>
|
||||
<button className='post-buttons'>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-through-heart-fill" viewBox="0 0 16 16">
|
||||
<path fill-rule="evenodd" d="M2.854 15.854A.5.5 0 0 1 2 15.5V14H.5a.5.5 0 0 1-.354-.854l1.5-1.5A.5.5 0 0 1 2 11.5h1.793l3.103-3.104a.5.5 0 1 1 .708.708L4.5 12.207V14a.5.5 0 0 1-.146.354zM16 3.5a.5.5 0 0 1-.854.354L14 2.707l-1.006 1.006c.236.248.44.531.6.845.562 1.096.585 2.517-.213 4.092-.793 1.563-2.395 3.288-5.105 5.08L8 13.912l-.276-.182A24 24 0 0 1 5.8 12.323L8.31 9.81a1.5 1.5 0 0 0-2.122-2.122L3.657 10.22a9 9 0 0 1-1.039-1.57c-.798-1.576-.775-2.997-.213-4.093C3.426 2.565 6.18 1.809 8 3.233c1.25-.98 2.944-.928 4.212-.152L13.292 2 12.147.854A.5.5 0 0 1 12.5 0h3a.5.5 0 0 1 .5.5z"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Post
|
|
@ -1,15 +0,0 @@
|
|||
import React from "react";
|
||||
import "../css/profile.css"
|
||||
|
||||
function Profile() {
|
||||
return(
|
||||
<div className="container">
|
||||
<label className="rows">Name</label>
|
||||
<p className="name rows">Ivan</p>
|
||||
<label className="rows">Surname</label>
|
||||
<p className="surname rows">Shishkin</p>
|
||||
</div>
|
||||
)
|
||||
|
||||
}
|
||||
export default Profile
|
|
@ -1,42 +0,0 @@
|
|||
.container-form{
|
||||
display: flex;
|
||||
justify-content:center;
|
||||
margin: auto;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
.form{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 3vh;
|
||||
width: 20vw;
|
||||
}
|
||||
.row{
|
||||
margin: 0.2vh;
|
||||
}
|
||||
|
||||
.input{
|
||||
margin: 0.2vh;
|
||||
border-radius: 10px;
|
||||
font-size: 1.2rem;
|
||||
border-width: 2px;
|
||||
border-color: rgb(68, 68, 68);
|
||||
}
|
||||
|
||||
.submit-button{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
justify-items: center;
|
||||
color: rgb(69, 70, 71);
|
||||
background-color: rgb(206, 206, 206);
|
||||
border-width: 0;
|
||||
border-radius: 3vh;
|
||||
margin-top: 1.5vh;
|
||||
padding: 0.7vh 1vw 0.7vh 1vw;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.submit-button:hover{
|
||||
background-color: rgb(197, 197, 197);
|
||||
}
|
|
@ -1,68 +0,0 @@
|
|||
.post {
|
||||
border-style: solid;
|
||||
border-width: 3px;
|
||||
border-color: rgb(202, 202, 202);
|
||||
border-left: 0px;
|
||||
border-right: 0px;
|
||||
border-bottom: 0px;
|
||||
}
|
||||
|
||||
.button-block{
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.post-body{
|
||||
padding: 10px;
|
||||
margin: 5px 0px;
|
||||
border-radius: 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.post-body:hover{
|
||||
background-color: rgb(237, 237, 237);
|
||||
}
|
||||
|
||||
.user-icon{
|
||||
color: rgb(69, 70, 71);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.post-buttons{
|
||||
color: rgb(69, 70, 71);
|
||||
background-color: rgb(206, 206, 206);
|
||||
border-width: 0px;
|
||||
border-radius: 15px;
|
||||
padding: 4px 10px 0px 10px;
|
||||
}
|
||||
|
||||
.post-buttons:hover{
|
||||
background-color: rgb(197, 197, 197);
|
||||
}
|
||||
|
||||
.profile-button{
|
||||
color: rgb(69, 70, 71);
|
||||
background-color: rgb(255, 255, 255);
|
||||
border-width: 0px;
|
||||
border-radius: 30px;
|
||||
padding: 6px 6px 2px 6px;
|
||||
margin: 10px 0px;
|
||||
}
|
||||
|
||||
.profile-button:hover{
|
||||
background-color: rgb(198, 198, 198);
|
||||
}
|
||||
.page{
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.add-post{
|
||||
display: flex;
|
||||
justify-content:center;
|
||||
min-width: 75%;
|
||||
margin-bottom: 20px;
|
||||
background-color: rgb(237, 237, 237);
|
||||
padding: 50px;
|
||||
border-radius: 10px;
|
||||
}
|
|
@ -1,42 +0,0 @@
|
|||
.post-with-comments{
|
||||
border-style: solid;
|
||||
border-width: 3px;
|
||||
border-color: rgb(202, 202, 202);
|
||||
border-left: 0px;
|
||||
border-right: 0px;
|
||||
}
|
||||
.main-post{
|
||||
padding: 10px;
|
||||
margin: 5px 0px;
|
||||
border-radius: 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.comment-button{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: rgb(69, 70, 71);
|
||||
background-color: rgb(206, 206, 206);
|
||||
border-width: 0px;
|
||||
border-radius: 30px;
|
||||
margin: 15px;
|
||||
padding: 8px 10px 6px 10px;
|
||||
}
|
||||
.comment-button:hover{
|
||||
background-color: rgb(197, 197, 197);
|
||||
}
|
||||
.button-text{
|
||||
margin: 0px 10px;
|
||||
font-weight:600;
|
||||
|
||||
}
|
||||
|
||||
.comment-text{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.comment{
|
||||
padding: 10px;
|
||||
background-color: rgb(237, 237, 237);
|
||||
border-radius: 10px;
|
||||
margin-bottom: 15px;
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
.container{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: start;
|
||||
border-style: solid;
|
||||
border-radius: 0;
|
||||
border-width: 3px;
|
||||
border-color: rgb(202, 202, 202);
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.rows{
|
||||
margin: 0.5vh 0 0 0.5vh;
|
||||
}
|
||||
.name{
|
||||
padding-left: 1vw;
|
||||
}
|
||||
|
||||
.surname{
|
||||
padding-left: 1vw;
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import App from './App';
|
||||
import reportWebVitals from './reportWebVitals';
|
||||
|
||||
const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>
|
||||
);
|
||||
|
||||
// If you want to start measuring performance in your app, pass a function
|
||||
// to log results (for example: reportWebVitals(console.log))
|
||||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
||||
reportWebVitals();
|
|
@ -1,13 +0,0 @@
|
|||
import React from 'react'
|
||||
import NavBar from '../components/NavBar'
|
||||
import Auth from "../components/Auth";
|
||||
|
||||
function AuthPage() {
|
||||
return (
|
||||
<div className='page'>
|
||||
<NavBar/>
|
||||
<Auth/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
export default AuthPage
|
|
@ -1,14 +0,0 @@
|
|||
import React from 'react'
|
||||
import Forum from '../components/Forum'
|
||||
import NavBar from '../components/NavBar'
|
||||
|
||||
function ForumPage() {
|
||||
return (
|
||||
<div className='page'>
|
||||
<NavBar/>
|
||||
<Forum/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default ForumPage
|
|
@ -1,14 +0,0 @@
|
|||
import React from 'react'
|
||||
import Post from '../components/Post'
|
||||
import NavBar from '../components/NavBar'
|
||||
|
||||
function ForumPage() {
|
||||
return (
|
||||
<div className='page'>
|
||||
<NavBar/>
|
||||
<Post/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default ForumPage
|
|
@ -1,13 +0,0 @@
|
|||
import React from 'react'
|
||||
import NavBar from '../components/NavBar'
|
||||
import Profile from "../components/Profile";
|
||||
|
||||
function ProfilePage() {
|
||||
return (
|
||||
<div className='page'>
|
||||
<NavBar/>
|
||||
<Profile/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
export default ProfilePage
|
|
@ -1,13 +0,0 @@
|
|||
const reportWebVitals = onPerfEntry => {
|
||||
if (onPerfEntry && onPerfEntry instanceof Function) {
|
||||
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
||||
getCLS(onPerfEntry);
|
||||
getFID(onPerfEntry);
|
||||
getFCP(onPerfEntry);
|
||||
getLCP(onPerfEntry);
|
||||
getTTFB(onPerfEntry);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export default reportWebVitals;
|
Loading…
Reference in a new issue