g
This commit is contained in:
		
							
								
								
									
										31
									
								
								src/App.jsx
									
									
									
									
									
								
							
							
						
						
									
										31
									
								
								src/App.jsx
									
									
									
									
									
								
							| @@ -1,6 +1,4 @@ | ||||
| import { useState } from 'react' | ||||
| import reactLogo from './assets/react.svg' | ||||
| import viteLogo from '/vite.svg' | ||||
|  | ||||
| import './App.css' | ||||
| import FetchUtils from './components/fetchUtils/FetchUtils' | ||||
| import TableMeets from './components/TableMeets' | ||||
| @@ -8,39 +6,16 @@ import { BrowserRouter, Routes, Route } from "react-router-dom"; | ||||
| import BeingPage from "./Components/BeingPage/index.jsx"; | ||||
| import HomePage from "./Components/HomePage/index.jsx"; | ||||
|  | ||||
| const events = [ | ||||
|   { | ||||
|     id: 1, | ||||
|     date: '10.10.2022', | ||||
|     time: '14:00', | ||||
|     title: 'Мероприятие 1', | ||||
|     speaker: 'Спикер 1', | ||||
|     avatar: 'speaker1.jpg', | ||||
|     description: 'Описание мероприятия 1', | ||||
|     isExpanded: true, | ||||
|   }, | ||||
|   { | ||||
|     id: 2, | ||||
|     date: '11.10.2022', | ||||
|     time: '15:30', | ||||
|     title: 'Мероприятие 2', | ||||
|     speaker: 'Спикер 2', | ||||
|     avatar: 'speaker2.jpg', | ||||
|     description: 'Описание мероприятия 2', | ||||
|     isExpanded: true, | ||||
|   }, | ||||
|   // Добавьте другие мероприятия сюда | ||||
| ]; | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| function App() { | ||||
|   const [count, setCount] = useState(0) | ||||
|  | ||||
|   return ( | ||||
|     <> | ||||
|       {/* <FetchUtils /> */} | ||||
|       <TableMeets  events={ events } /> | ||||
|        | ||||
|       <BrowserRouter> | ||||
|         <Routes> | ||||
|           <Route path="/being" element={<BeingPage />}/> | ||||
|   | ||||
							
								
								
									
										10
									
								
								src/Components/BeingPage/index.jsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								src/Components/BeingPage/index.jsx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| import React from "react" | ||||
| import styles from "./style.module.scss"; | ||||
|  | ||||
| const BeingPage = () => { | ||||
|     return ( | ||||
|         <div>Hello world</div> | ||||
|     ) | ||||
| } | ||||
|  | ||||
| export default BeingPage | ||||
							
								
								
									
										0
									
								
								src/Components/BeingPage/style.module.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								src/Components/BeingPage/style.module.scss
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										38
									
								
								src/Components/HomePage/index.jsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								src/Components/HomePage/index.jsx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| import Header from "../Header"; | ||||
| import styles from "./style.module.scss"; | ||||
| import TableMeets from '../TableMeets' | ||||
| const events = [ | ||||
|     { | ||||
|       id: 1, | ||||
|       date: '10.10.2022', | ||||
|       time: '14:00', | ||||
|       title: 'Мероприятие 1', | ||||
|       speaker: 'Спикер 1', | ||||
|       avatar: 'speaker1.jpg', | ||||
|       description: 'Описание мероприятия 1', | ||||
|       isExpanded: true, | ||||
|     }, | ||||
|     { | ||||
|       id: 2, | ||||
|       date: '11.10.2022', | ||||
|       time: '15:30', | ||||
|       title: 'Мероприятие 2', | ||||
|       speaker: 'Спикер 2', | ||||
|       avatar: 'speaker2.jpg', | ||||
|       description: 'Описание мероприятия 2', | ||||
|       isExpanded: true, | ||||
|     }, | ||||
|     // Добавьте другие мероприятия сюда | ||||
|   ]; | ||||
| const HomePage = () => { | ||||
|     return ( | ||||
|     <> | ||||
|         <Header></Header> | ||||
|         <TableMeets  events={ events } /> | ||||
|          | ||||
|     </> | ||||
|      | ||||
|  | ||||
|     ) | ||||
| } | ||||
| export default HomePage; | ||||
							
								
								
									
										6
									
								
								src/Components/HomePage/style.module.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								src/Components/HomePage/style.module.scss
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
|  | ||||
|  | ||||
| .title { | ||||
|     font-size: 100px; | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user