project
This commit is contained in:
		
							
								
								
									
										37
									
								
								src/App.jsx
									
									
									
									
									
								
							
							
						
						
									
										37
									
								
								src/App.jsx
									
									
									
									
									
								
							| @@ -1,33 +1,22 @@ | ||||
| import { useState } from 'react' | ||||
| import reactLogo from './assets/react.svg' | ||||
| import viteLogo from '/vite.svg' | ||||
|  | ||||
| import { BrowserRouter, Routes, Route } from "react-router-dom"; | ||||
| import BeingPage from "./Components/BeingPage/index.jsx"; | ||||
| import HomePage from "./Components/HomePage/index.jsx"; | ||||
| import './App.css' | ||||
|  | ||||
| function App() { | ||||
|   const [count, setCount] = useState(0) | ||||
|  | ||||
|  | ||||
|   return ( | ||||
|     <> | ||||
|       <div> | ||||
|         <a href="https://vitejs.dev" target="_blank"> | ||||
|           <img src={viteLogo} className="logo" alt="Vite logo" /> | ||||
|         </a> | ||||
|         <a href="https://react.dev" target="_blank"> | ||||
|           <img src={reactLogo} className="logo react" alt="React logo" /> | ||||
|         </a> | ||||
|       </div> | ||||
|       <h1>Vite + React</h1> | ||||
|       <div className="card"> | ||||
|         <button onClick={() => setCount((count) => count + 1)}> | ||||
|           count is {count} | ||||
|         </button> | ||||
|         <p> | ||||
|           Edit <code>src/App.jsx</code> and save to test HMR | ||||
|         </p> | ||||
|       </div> | ||||
|       <p className="read-the-docs"> | ||||
|         Click on the Vite and React logos to learn more | ||||
|       </p> | ||||
|       <BrowserRouter> | ||||
|         <Routes> | ||||
|           <Route path="/being" element={<BeingPage />}/> | ||||
|           <Route path="/home" element={<HomePage />}/> | ||||
|         </Routes> | ||||
|       </BrowserRouter> | ||||
|        | ||||
|  | ||||
|     </> | ||||
|   ) | ||||
| } | ||||
|   | ||||
							
								
								
									
										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
									
								
							
							
								
								
									
										12
									
								
								src/Components/HomePage/index.jsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								src/Components/HomePage/index.jsx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
|  | ||||
| import styles from "./style.module.scss"; | ||||
|  | ||||
|  | ||||
| const HomePage = () => { | ||||
|     return ( | ||||
|  | ||||
|         <div className={styles.title}>dadada</div> | ||||
|  | ||||
|     ) | ||||
| } | ||||
| 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; | ||||
| } | ||||
|  | ||||
							
								
								
									
										1
									
								
								src/Components/css/module.style.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/Components/css/module.style.css
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| .title{font-size:100px}/*# sourceMappingURL=module.style.css.map */ | ||||
							
								
								
									
										1
									
								
								src/Components/css/module.style.css.map
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/Components/css/module.style.css.map
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"sources":["../HomePage/module.style.scss"],"names":[],"mappings":"AAEA,OACI,eAAA","file":"module.style.css"} | ||||
		Reference in New Issue
	
	Block a user