├── .gitignore ├── README.md ├── backend └── app.js ├── hooks └── useFetch.jsx ├── package-lock.json ├── package.json ├── public └── index.html └── src ├── App.css ├── App.jsx ├── card.css ├── components ├── 404.jsx ├── About.jsx ├── Blog_detaills.jsx ├── Header.jsx ├── Lobby.jsx ├── card.jsx ├── footer.jsx └── home.jsx ├── index.css └── index.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 | -------------------------------------------------------------------------------- /backend/app.js: -------------------------------------------------------------------------------- 1 | 2 | const express=require('express'); 3 | const app=express(); 4 | 5 | 6 | app.get('/',(req,res)=>{ 7 | res.send('Hello World') 8 | }); 9 | 10 | app.get("/home",(req,res)=>{ 11 | res.send('Home Page') 12 | }); 13 | 14 | 15 | app.listen(3000,()=>{ 16 | console.log('Server is running on ' + "http://localhost:3000") 17 | }); -------------------------------------------------------------------------------- /hooks/useFetch.jsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | const useFetch =(url) => { 4 | return fetch(url) ; 5 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tuto", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@fortawesome/fontawesome-svg-core": "^6.3.0", 7 | "@fortawesome/free-regular-svg-icons": "^6.3.0", 8 | "@fortawesome/free-solid-svg-icons": "^6.3.0", 9 | "@fortawesome/react-fontawesome": "^0.2.0", 10 | "@testing-library/jest-dom": "^5.16.5", 11 | "@testing-library/react": "^13.4.0", 12 | "@testing-library/user-event": "^13.5.0", 13 | "express": "^4.18.2", 14 | "react": "^18.2.0", 15 | "react-dom": "^18.2.0", 16 | "react-router-dom": "^6.8.2", 17 | "react-scripts": "5.0.1", 18 | "web-vitals": "^2.1.4" 19 | }, 20 | "scripts": { 21 | "start": "react-scripts start", 22 | "build": "react-scripts build", 23 | "test": "react-scripts test", 24 | "eject": "react-scripts eject" 25 | }, 26 | "eslintConfig": { 27 | "extends": [ 28 | "react-app", 29 | "react-app/jest" 30 | ] 31 | }, 32 | "browserslist": { 33 | "production": [ 34 | ">0.2%", 35 | "not dead", 36 | "not op_mini all" 37 | ], 38 | "development": [ 39 | "last 1 chrome version", 40 | "last 1 firefox version", 41 | "last 1 safari version" 42 | ] 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | React App 12 | 13 | 14 | 15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | /* make a variable ?*/ 2 | --root{ 3 | --bg-color: #66347F; 4 | --Text-color: green; 5 | --Text-Color-small: #fff; 6 | } 7 | .Container{ 8 | padding-left: 100px; 9 | background-color: var(--bg-color); 10 | padding-right: 100px; 11 | font-family: 'Baloo Paaji 2', cursive; 12 | } 13 | 14 | 15 | 16 | 17 | .dotted{ 18 | background-color: #66347F; 19 | height: 8px; 20 | width: 8px; 21 | border-radius: 100%; 22 | margin-left: 1px; 23 | margin-right: 1px; 24 | animation: jump infinite 1s alternate; 25 | } 26 | 27 | @keyframes jump{ 28 | from{ 29 | transform: translateY(10px); 30 | } 31 | to{ 32 | transform: translateY(0px); 33 | } 34 | } 35 | 36 | 37 | 38 | .dottedContainer{ 39 | display: flex; 40 | flex-direction: row; 41 | justify-content: space-around; 42 | align-items: center; 43 | margin: 10px auto; 44 | padding: 0px 600px; 45 | animation: rot infinite 2s alternate-reverse; 46 | 47 | } 48 | @keyframes rot{ 49 | from{ 50 | transform: RotateY(0deg); 51 | } 52 | to{ 53 | transform: RotateY(45deg); 54 | } 55 | } 56 | 57 | 58 | ul{ 59 | list-style-type: none; 60 | font-size: 30px; 61 | display: flex; 62 | flex-direction: row; 63 | justify-content: space-around; 64 | align-items: center; 65 | margin: 0; 66 | padding: 0; 67 | overflow: hidden; 68 | } 69 | 70 | .header{ 71 | display: flex; 72 | flex-direction: row; 73 | justify-content: space-around; 74 | align-items: center; 75 | color: var(--Text-color); 76 | } 77 | .header li{ 78 | display: flex; 79 | flex-direction: row; 80 | justify-content: space-around; 81 | align-items: center; 82 | 83 | padding: 0 20px; 84 | } 85 | .header li a{ 86 | color:var(--Text-color); 87 | text-decoration: none; 88 | } 89 | .header li a:hover{ 90 | color: #66347F; 91 | } 92 | .header .logo{ 93 | font-size: 30px; 94 | } 95 | 96 | 97 | .DataList{ 98 | display: flex; 99 | flex-direction: column; 100 | justify-content: space-around; 101 | align-items: center; 102 | flex-wrap: wrap; 103 | margin-top: 40px; 104 | margin-bottom: 40px; 105 | font-size: 30px; 106 | color:#000 107 | } 108 | 109 | 110 | .Home{ 111 | margin-top: 10px; 112 | margin-bottom: 10px; 113 | padding: 30px; 114 | text-align: center; 115 | background-color: #f5f5f5; 116 | } 117 | 118 | 119 | .Home h2{ 120 | font-size: 40px; 121 | font-weight: 600; 122 | margin-bottom: 20px; 123 | color:#66347F; 124 | } 125 | .Home button{ 126 | padding: 10px 20px; 127 | background-color: #000; 128 | color: #fff; 129 | border: none; 130 | border-radius: 5px; 131 | font-size: 20px; 132 | font-weight: 600; 133 | cursor: pointer; 134 | } 135 | .footer { 136 | text-align: center; 137 | padding: 0px 450px; 138 | 139 | } 140 | 141 | .footer h5 { 142 | font-size:23px 143 | } 144 | 145 | .footer a{ 146 | color: #000; 147 | text-decoration: none; 148 | font-size: 19px; 149 | font-weight: 600; 150 | margin: 0 10px; 151 | } 152 | 153 | 154 | 155 | .Page404{ 156 | text-align: center; 157 | padding: 30px; 158 | background-color: #f5f5f5; 159 | } 160 | 161 | 162 | .Page404 p{ 163 | font-size: 40px; 164 | font-weight: 700; 165 | margin-bottom: 0; 166 | color:#66347F; 167 | } 168 | .Page404 a{ 169 | text-decoration: none; 170 | } 171 | 172 | div .buttons{ 173 | display: flex; 174 | flex-direction: row; 175 | justify-content: space-around; 176 | align-items: center; 177 | padding: 0px 450px; 178 | 179 | } -------------------------------------------------------------------------------- /src/App.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import './App.css' 3 | import Header from './components/Header' 4 | import Home from './components/home' 5 | import Footer from './components/footer' 6 | import About from './components/About' 7 | import Lobby from './components/Lobby' 8 | import {BrowserRouter as Router,Route,Routes} from 'react-router-dom' 9 | import BlogDetaills from './components/Blog_detaills' 10 | import Page404 from './components/404' 11 | 12 | export default function App() { 13 | 14 | return ( 15 |
16 | 17 |
18 | 19 | }/> 20 | }/> 21 | }/> 22 | }/> 23 | }/> 24 | 25 |
28 | ) 29 | } 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/card.css: -------------------------------------------------------------------------------- 1 | @import url("https://fonts.googleapis.com/css2?family=Baloo+Paaji+2:wght@400;500&display=swap"); 2 | 3 | .containerS { 4 | display: grid; 5 | grid-template-columns: 300px 300px 300px; 6 | grid-gap: 50px; 7 | justify-content: center; 8 | align-items: center; 9 | height: fit-content; 10 | padding: 100px; 11 | font-family: 'Baloo Paaji 2', cursive; 12 | } 13 | 14 | 15 | .card { 16 | background-color: #222831; 17 | height: fit-content; 18 | border-radius: 5px; 19 | display: flex; 20 | border-radius: 20px; 21 | padding: 20px; 22 | padding-bottom: 0px; 23 | flex-direction: column; 24 | align-items: center; 25 | box-shadow: rgba(0, 0, 0, 0.7); 26 | color: white; 27 | } 28 | 29 | .card__name { 30 | margin-top: 15px; 31 | font-size: 1.5em; 32 | } 33 | 34 | .card__image { 35 | background-size: cover; 36 | height: 160px; 37 | width: 160px; 38 | border-radius: 50%; 39 | border: 5px solid #272133; 40 | margin-top: 20px; 41 | box-shadow: 0 10px 50px rgba(235, 25, 110, 1); 42 | } 43 | 44 | 45 | .draw-border { 46 | box-shadow: inset 0 0 0 4px #58cdd1; 47 | color: #58afd1; 48 | -webkit-transition: color 0.25s 0.0833333333s; 49 | transition: color 0.25s 0.0833333333s; 50 | position: relative; 51 | } 52 | 53 | .draw-border::before, 54 | .draw-border::after { 55 | border: 0 solid transparent; 56 | box-sizing: border-box; 57 | content: ''; 58 | pointer-events: none; 59 | position: absolute; 60 | width: 0rem; 61 | height: 0; 62 | bottom: 0; 63 | right: 0; 64 | } 65 | 66 | .draw-border::before { 67 | border-bottom-width: 4px; 68 | border-left-width: 4px; 69 | } 70 | 71 | .draw-border::after { 72 | border-top-width: 4px; 73 | border-right-width: 4px; 74 | } 75 | 76 | .draw-border:hover { 77 | color: #ffe593; 78 | } 79 | 80 | .draw-border:hover::before, 81 | .draw-border:hover::after { 82 | border-color: #eb196e; 83 | -webkit-transition: border-color 0s, width 0.25s, height 0.25s; 84 | transition: border-color 0s, width 0.25s, height 0.25s; 85 | width: 100%; 86 | height: 100%; 87 | } 88 | 89 | .draw-border:hover::before { 90 | -webkit-transition-delay: 0s, 0s, 0.25s; 91 | transition-delay: 0s, 0s, 0.25s; 92 | } 93 | 94 | .draw-border:hover::after { 95 | -webkit-transition-delay: 0s, 0.25s, 0s; 96 | transition-delay: 0s, 0.25s, 0s; 97 | } 98 | 99 | .btn { 100 | background: none; 101 | border: none; 102 | cursor: pointer; 103 | line-height: 1.5; 104 | font: 700 1.2rem 'Roboto Slab', sans-serif; 105 | padding: 0.75em 2em; 106 | letter-spacing: 0.05rem; 107 | margin: 1em; 108 | width: 13rem; 109 | text-decoration: none; 110 | } 111 | 112 | .btn:focus { 113 | outline: 2px dotted #55d7dc; 114 | } 115 | 116 | 117 | .social-icons { 118 | padding: 0; 119 | list-style: none; 120 | margin: 1em; 121 | } 122 | 123 | .social-icons li { 124 | display: inline-block; 125 | margin: 0.15em; 126 | position: relative; 127 | font-size: 1em; 128 | } 129 | 130 | .social-icons i { 131 | color: #fff; 132 | position: absolute; 133 | top: 0.95em; 134 | left: 0.96em; 135 | transition: all 265ms ease-out; 136 | } 137 | 138 | .social-icons a { 139 | display: inline-block; 140 | } 141 | 142 | .social-icons a:before { 143 | transform: scale(1); 144 | -ms-transform: scale(1); 145 | -webkit-transform: scale(1); 146 | content: " "; 147 | width: 45px; 148 | height: 45px; 149 | border-radius: 100%; 150 | display: block; 151 | background: linear-gradient(45deg, #ff003c, #c648c8); 152 | transition: all 265ms ease-out; 153 | } 154 | 155 | .social-icons a:hover:before { 156 | transform: scale(0); 157 | transition: all 265ms ease-in; 158 | } 159 | 160 | .social-icons a:hover i { 161 | transform: scale(2.2); 162 | -ms-transform: scale(2.2); 163 | -webkit-transform: scale(2.2); 164 | color: #ff003c; 165 | background: -webkit-linear-gradient(45deg, #ff003c, #c648c8); 166 | -webkit-text-fill-color: transparent; 167 | transition: all 265ms ease-in; 168 | } 169 | 170 | .grid-container { 171 | display: grid; 172 | grid-template-columns: 1fr 1fr; 173 | grid-gap: 20px; 174 | font-size: 1.2em; 175 | } 176 | -------------------------------------------------------------------------------- /src/components/404.jsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | import React from 'react' 4 | import { Link } from 'react-router-dom' 5 | 6 | export default function Page404() { 7 | return ( 8 | // create me a 404 page 9 |
10 |

404

11 |

Page Not Found

12 | 13 |

14 | Back to Home Page ... 15 |

16 | 17 |
18 | ) 19 | } 20 | -------------------------------------------------------------------------------- /src/components/About.jsx: -------------------------------------------------------------------------------- 1 | import React ,{useEffect}from 'react' 2 | // import {useNavigate} from 'react-router-dom' 3 | import '../App.css' 4 | import '../card.css' 5 | 6 | export default function About() { 7 | // const navigator=useNavigate(); 8 | // navigator.push('/about'); 9 | // we can also make our custom Error Handler 10 | // error for custom error message and message for ux 11 | // const [error, setError] = React.useState(null); 12 | // const [isLoaded, setIsLoaded] = React.useState(false); 13 | 14 | 15 | const [data, setData] = React.useState([]); 16 | const [Shown, setShown] = React.useState(false); 17 | 18 | // its better to make a custom hook for fetching data 19 | // and use it in all components 20 | // so we can maintain our code easily in one place 21 | // just create a file for custom hooks and import it in all components 22 | // and use it 23 | // 2. we can also use abort Controller here to prevent a bug from happening : trying to fetch the data a certain page when we moved to other one 24 | useEffect(() => { 25 | fetch("https://dummyjson.com/users").then((response) => { 26 | return response.json(); 27 | }).then((Newdata) => { 28 | setData(Newdata["users"]) 29 | }).catch((err) => { 30 | console.log(err.message); 31 | }); 32 | }, []); 33 | return ( 34 |
35 |

About

36 |
37 |

Content

38 | 41 | { 42 | Shown ? 43 | : 71 |
72 |
73 |
74 |
75 |
76 | 77 | } 78 |
79 | 80 |
81 | ) 82 | } 83 | 84 | 85 | -------------------------------------------------------------------------------- /src/components/Blog_detaills.jsx: -------------------------------------------------------------------------------- 1 | const BlogDetaills = () => { 2 | return ( 3 |
4 |

Blog Details

5 |
6 | ); 7 | } 8 | 9 | export default BlogDetaills; -------------------------------------------------------------------------------- /src/components/Header.jsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | import React from 'react' 4 | import {Link} from 'react-router-dom' 5 | 6 | export default function Header() { 7 | return ( 8 |
9 |
10 |

Farz

11 |
12 | 19 |
20 | ) 21 | } 22 | -------------------------------------------------------------------------------- /src/components/Lobby.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export default function Lobby() { 4 | 5 | 6 | 7 | 8 | return ( 9 |
10 |

Lobby

11 |

Content

12 | 13 |
14 | ) 15 | } 16 | -------------------------------------------------------------------------------- /src/components/card.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import '../card.css' 3 | import {Link} from 'react-router-dom' 4 | export default function card(props) { 5 | return ( 6 |
7 | Person 8 |

{props.info.name}

9 |
10 | 11 |
12 | {props.info.posts} Post 13 |
14 | 15 |
16 | {props.info.likes} Likes 17 |
18 | 19 |
20 | 26 | Profile 27 | {/* */} 28 |
29 | ) 30 | } 31 | -------------------------------------------------------------------------------- /src/components/footer.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect } from 'react' 2 | 3 | export default function Footer() { 4 | const[year,setYear]=React.useState(0); 5 | 6 | const getDate=()=>{ 7 | // GET current Year 8 | const date = new Date(); 9 | const year = date.getFullYear(); 10 | return year; 11 | } 12 | useEffect(() => { 13 | setYear(getDate()); 14 | },[]) 15 | return ( 16 |
17 |
Copyright reserved {year} @
18 | 19 | 25 |
26 | ) 27 | } -------------------------------------------------------------------------------- /src/components/home.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect } from "react"; 2 | import Card from "./card"; 3 | import "../card.css"; 4 | 5 | 6 | 7 | export default function Home() { 8 | const [counter, setCounter] = React.useState(0); 9 | // const [counter, setCounter] = React.useState(0); 10 | const data=[ 11 | { name:"Souhaib", posts:"30" ,likes:"555" ,imgUrl:"https://scontent.falg7-1.fna.fbcdn.net/v/t39.30808-6/307093216_906100407017815_1270206489116100985_n.jpg?_nc_cat=107&ccb=1-7&_nc_sid=09cbfe&_nc_eui2=AeGyyeXcAb1IuAvdgQrbnnwMTWNY4rSVlGdNY1jitJWUZ0-fMCI0xni6oObH1RMvg7xn4jIzWgroSVr2E8F3A0yL&_nc_ohc=rv-TMGnMeD8AX8WgvWM&_nc_ht=scontent.falg7-1.fna&oh=00_AfDH7Rorwwkm7T-fOzryBkqhlLTxWXmc5TaKUmrFsbkaVg&oe=640D55EF" 12 | }, 13 | { name:"Rayane", posts:"30" ,likes:"555" ,imgUrl:"https://scontent.falg7-1.fna.fbcdn.net/v/t1.6435-9/37748817_207094393308785_7612488765159768064_n.jpg?_nc_cat=109&ccb=1-7&_nc_sid=174925&_nc_eui2=AeG_DnflFwuomy1nj38WzmPtnVxsdiZJZWOdXGx2JkllYxt9AIPb-UdzQ5TdEZUt0Z-C9m3YY74q7S5y22uqS8V8&_nc_ohc=AS8e8GpFjIoAX-H-h0s&_nc_ht=scontent.falg7-1.fna&oh=00_AfDz_V9WVjGyw2KQZ4w7i4C3M1AyTO7f9U0kjSP5ZDoTkQ&oe=642FFD0B", 14 | }, 15 | { 16 | name:"Fares", posts:"30" ,likes:"555" ,imgUrl:"https://scontent.falg7-1.fna.fbcdn.net/v/t39.30808-6/308563704_1300263990513693_4278023934451233394_n.jpg?_nc_cat=109&ccb=1-7&_nc_sid=09cbfe&_nc_eui2=AeFGs4ImGlb00WYq6X6d3jwlzjiFWuqS4TvOOIVa6pLhO1dawEN63xFqanTHjYabDUPQwflK-9n_q8DQHWsrx739&_nc_ohc=MesV5soPAtEAX_P6XoT&_nc_ht=scontent.falg7-1.fna&oh=00_AfBVpBNJ0ijpn0JbXSymdUfRso8RLe7u2e9oYdCNlMYilw&oe=640D9792" 17 | }, 18 | 19 | 20 | ] 21 | 22 | useEffect( 23 | ()=>{ 24 | 25 | }, 26 | [] 27 | ); 28 | 29 | const addCounter = () => { 30 | // if(counter < data.length){ 31 | // setNewData([...newData, data[counter]]) 32 | // setCounter(counter + 1); 33 | // } 34 | // genetae random number every 2 seconds 35 | 36 | setNewData( [...newData, data[Math.floor(Math.random() * data.length)] ] ) 37 | setCounter(counter + 1); 38 | 39 | } 40 | 41 | const DeleteCounter=()=>{ 42 | if(counter > 0){ 43 | setCounter(counter - 1); 44 | setNewData(newData.slice(0, newData.length - 1)); 45 | } 46 | } 47 | const [newData, setNewData] = React.useState([]); 48 | return ( 49 | 50 |
51 |

52 | Home 53 |

54 |
55 | 58 | 59 | 62 |
63 |

64 | Current Cards: {counter} 65 |

66 |
67 | 68 | { 69 | newData.map((item,index) => { 70 | return 71 | }) 72 | } 73 | 74 |
75 |
76 | ) 77 | } -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | 6 | 7 | const root = ReactDOM.createRoot(document.getElementById('root')); 8 | root.render(); 9 | 10 | --------------------------------------------------------------------------------