├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt └── src ├── App.js ├── App.scss ├── Assets ├── braun.jpg ├── charlotte.jpg ├── fined.jpg ├── jascript.pdf ├── javascriptTricks.pdf ├── roman.jpg ├── ronda.jpg ├── sasha.jpg └── seth.jpg ├── Components ├── Card │ └── Card.jsx ├── Description │ └── Description.jsx ├── Footer │ ├── Footer.jsx │ └── footer.css ├── Gallery │ └── Gallery.jsx └── Navigation │ ├── Navigation.jsx │ └── navigation.scss ├── Pages ├── Aboutpage │ ├── Aboutpage.jsx │ └── about.css └── Homepage │ ├── Homepage.jsx │ └── homepage.scss ├── index.js └── setupTests.js /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `npm start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser. 13 | 14 | The page will reload when you make changes.\ 15 | You may also see any lint errors in the console. 16 | 17 | ### `npm test` 18 | 19 | Launches the test runner in the interactive watch mode.\ 20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 21 | 22 | ### `npm run build` 23 | 24 | Builds the app for production to the `build` folder.\ 25 | It correctly bundles React in production mode and optimizes the build for the best performance. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `npm run eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can't go back!** 35 | 36 | 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. 37 | 38 | 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. 39 | 40 | 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. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | 48 | ### Code Splitting 49 | 50 | 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) 51 | 52 | ### Analyzing the Bundle Size 53 | 54 | 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) 55 | 56 | ### Making a Progressive Web App 57 | 58 | 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) 59 | 60 | ### Advanced Configuration 61 | 62 | 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) 63 | 64 | ### Deployment 65 | 66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 67 | 68 | ### `npm run build` fails to minify 69 | 70 | 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) 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-traing", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.16.5", 7 | "@testing-library/react": "^13.4.0", 8 | "@testing-library/user-event": "^13.5.0", 9 | "node-sass": "^7.0.3", 10 | "react": "^18.2.0", 11 | "react-dom": "^18.2.0", 12 | "react-router-dom": "^6.4.2", 13 | "react-scripts": "5.0.1", 14 | "styled-components": "^5.3.6", 15 | "web-vitals": "^2.1.4" 16 | }, 17 | "scripts": { 18 | "start": "react-scripts start", 19 | "build": "react-scripts build", 20 | "test": "react-scripts test", 21 | "eject": "react-scripts eject" 22 | }, 23 | "eslintConfig": { 24 | "extends": [ 25 | "react-app", 26 | "react-app/jest" 27 | ] 28 | }, 29 | "browserslist": { 30 | "production": [ 31 | ">0.2%", 32 | "not dead", 33 | "not op_mini all" 34 | ], 35 | "development": [ 36 | "last 1 chrome version", 37 | "last 1 firefox version", 38 | "last 1 safari version" 39 | ] 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olingomaxwell1999/react-traing/464d0ca8330649e50e606362f37a5c94e8358009/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olingomaxwell1999/react-traing/464d0ca8330649e50e606362f37a5c94e8358009/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olingomaxwell1999/react-traing/464d0ca8330649e50e606362f37a5c94e8358009/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import {BrowserRouter, Routes, Route} from 'react-router-dom' 2 | import Navigation from './Components/Navigation/Navigation' 3 | import Footer from './Components/Footer/Footer' 4 | import Homepage from './Pages/Homepage/Homepage' 5 | import Aboutpage from './Pages/Aboutpage/Aboutpage' 6 | import './App.scss'; 7 | 8 | function App() { 9 | return ( 10 |
11 | 12 | 13 | 14 | } /> 15 | } /> 16 | 17 |
20 | ); 21 | } 22 | 23 | export default App; 24 | -------------------------------------------------------------------------------- /src/App.scss: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | box-sizing: border-box; 5 | overflow: hidden; 6 | } 7 | -------------------------------------------------------------------------------- /src/Assets/braun.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olingomaxwell1999/react-traing/464d0ca8330649e50e606362f37a5c94e8358009/src/Assets/braun.jpg -------------------------------------------------------------------------------- /src/Assets/charlotte.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olingomaxwell1999/react-traing/464d0ca8330649e50e606362f37a5c94e8358009/src/Assets/charlotte.jpg -------------------------------------------------------------------------------- /src/Assets/fined.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olingomaxwell1999/react-traing/464d0ca8330649e50e606362f37a5c94e8358009/src/Assets/fined.jpg -------------------------------------------------------------------------------- /src/Assets/jascript.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olingomaxwell1999/react-traing/464d0ca8330649e50e606362f37a5c94e8358009/src/Assets/jascript.pdf -------------------------------------------------------------------------------- /src/Assets/javascriptTricks.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olingomaxwell1999/react-traing/464d0ca8330649e50e606362f37a5c94e8358009/src/Assets/javascriptTricks.pdf -------------------------------------------------------------------------------- /src/Assets/roman.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olingomaxwell1999/react-traing/464d0ca8330649e50e606362f37a5c94e8358009/src/Assets/roman.jpg -------------------------------------------------------------------------------- /src/Assets/ronda.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olingomaxwell1999/react-traing/464d0ca8330649e50e606362f37a5c94e8358009/src/Assets/ronda.jpg -------------------------------------------------------------------------------- /src/Assets/sasha.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olingomaxwell1999/react-traing/464d0ca8330649e50e606362f37a5c94e8358009/src/Assets/sasha.jpg -------------------------------------------------------------------------------- /src/Assets/seth.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olingomaxwell1999/react-traing/464d0ca8330649e50e606362f37a5c94e8358009/src/Assets/seth.jpg -------------------------------------------------------------------------------- /src/Components/Card/Card.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | import styled from 'styled-components' 4 | import Description from '../Description/Description' 5 | 6 | ///Imports 7 | 8 | function Card({img,name,age}) { 9 | //write js here 10 | const Container = styled.img` 11 | height: 200px; 12 | width: 200px; 13 | object-fit: cover; 14 | border: 10px solid blue; 15 | border-radius: 10px; 16 | ` 17 | // const Title = styled.h1` 18 | // font-size: 30px; 19 | // color: blue; 20 | // ` 21 | 22 | // const Age = styled.h3` 23 | // font-size: 20px; 24 | // color: blue; 25 | // ` 26 | return ( 27 | //Html and Css 28 |
29 | 30 | 31 | 32 |
33 | ) 34 | } 35 | 36 | export default Card -------------------------------------------------------------------------------- /src/Components/Description/Description.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | function Description({title,age}) { 4 | return ( 5 |
6 |

{title}

7 |

{age}

8 |
9 | ) 10 | } 11 | 12 | export default Description -------------------------------------------------------------------------------- /src/Components/Footer/Footer.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import './footer.css' 3 | 4 | function Footer() { 5 | return ( 6 |
Footer
7 | ) 8 | } 9 | 10 | export default Footer -------------------------------------------------------------------------------- /src/Components/Footer/footer.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olingomaxwell1999/react-traing/464d0ca8330649e50e606362f37a5c94e8358009/src/Components/Footer/footer.css -------------------------------------------------------------------------------- /src/Components/Gallery/Gallery.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import Card from '../Card/Card' 3 | import Sasha from '../../Assets/sasha.jpg' 4 | import Ronda from '../../Assets/ronda.jpg' 5 | import Charlotte from '../../Assets/charlotte.jpg' 6 | import Fined from '../../Assets/fined.jpg' 7 | import Seth from '../../Assets/seth.jpg' 8 | import Braun from '../../Assets/braun.jpg' 9 | import Roman from '../../Assets/roman.jpg' 10 | import styled from 'styled-components' 11 | import { Link } from 'react-router-dom' 12 | 13 | function Gallery() { 14 | 15 | let wrestlers = [ 16 | { 17 | img: Sasha , 18 | name: 'Sasha Banks', 19 | gender: 'female', 20 | age: 30 21 | }, 22 | { 23 | img: Ronda , 24 | name: 'Ronda Rousey', 25 | gender: 'female', 26 | age: 35 27 | }, 28 | { 29 | img: Charlotte, 30 | name: 'Charlotte Flair', 31 | gender: 'female', 32 | age: 36 33 | }, 34 | { 35 | img: Braun, 36 | name: 'Braun Stroman', 37 | gender: 'male', 38 | age: 39 39 | }, 40 | { 41 | img: Seth, 42 | name: 'Seth Rollings', 43 | gender: 'male', 44 | age: 36 45 | }, 46 | { 47 | img: Fined, 48 | name: 'The Fined', 49 | gender: 'male', 50 | age: 35 51 | }, 52 | { 53 | img: Roman, 54 | name: 'Roman Reigns', 55 | gender: 'male', 56 | age: 37 57 | } 58 | ] 59 | 60 | const Div = styled.div` 61 | min-height:100vh; 62 | width:100%; 63 | padding: 20px 30px; 64 | display: flex; 65 | gap: 20px; 66 | flex-wrap: wrap; 67 | overflow: hidden; 68 | margin-bottom: 30px; 69 | ` 70 | 71 | // const name = 'sasha banks' 72 | 73 | return ( 74 |
75 | { 76 | wrestlers.map((wrestler, i) => ( 77 | 78 | )) 79 | } 80 | 81 | 84 |
85 | ) 86 | } 87 | 88 | export default Gallery -------------------------------------------------------------------------------- /src/Components/Navigation/Navigation.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import './navigation.scss' 3 | import {Link} from 'react-router-dom' 4 | 5 | function Navigation() { 6 | return ( 7 | 18 | ) 19 | } 20 | 21 | export default Navigation -------------------------------------------------------------------------------- /src/Components/Navigation/navigation.scss: -------------------------------------------------------------------------------- 1 | .navigation { 2 | height: 50px; 3 | width: 100%; 4 | background-color: aqua; 5 | display: flex; 6 | align-items: center; 7 | justify-content: center; 8 | 9 | ul { 10 | display: flex; 11 | list-style: none; 12 | 13 | li { 14 | margin-right: 20px; 15 | text-transform: uppercase; 16 | font-size: 25px; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Pages/Aboutpage/Aboutpage.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import './about.css' 3 | 4 | function Aboutpage() { 5 | return ( 6 |
Aboutpage
7 | ) 8 | } 9 | 10 | export default Aboutpage -------------------------------------------------------------------------------- /src/Pages/Aboutpage/about.css: -------------------------------------------------------------------------------- 1 | .about{ 2 | min-height: 100vh; 3 | width: 100%; 4 | } -------------------------------------------------------------------------------- /src/Pages/Homepage/Homepage.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import Gallery from '../../Components/Gallery/Gallery' 3 | import './homepage.scss' 4 | 5 | function Homepage() { 6 | return ( 7 |
8 | 9 | 10 | 11 |
12 | ) 13 | } 14 | 15 | export default Homepage -------------------------------------------------------------------------------- /src/Pages/Homepage/homepage.scss: -------------------------------------------------------------------------------- 1 | .home { 2 | min-height: 100vh; 3 | 4 | .btn { 5 | padding: 10px 20px; 6 | font-size: 20px; 7 | text-transform: capitalize; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import App from './App'; 4 | 5 | const root = ReactDOM.createRoot(document.getElementById('root')); 6 | root.render( 7 | 8 | 9 | 10 | ); 11 | 12 | // If you want to start measuring performance in your app, pass a function 13 | // to log results (for example: reportWebVitals(console.log)) 14 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 15 | 16 | -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | --------------------------------------------------------------------------------