├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── images │ ├── callcenter.jpg │ ├── hero1.jpg │ ├── hero2.jpg │ ├── hero3.jpg │ ├── hero4.jpg │ └── mainHero.png ├── index.html ├── manifest.json └── robots.txt ├── src ├── API │ ├── howToUse.js │ ├── serviceApi.js │ └── workApi.js ├── Aboutus.js ├── App.js ├── Contact.js ├── Error404.js ├── Footer.js ├── Header.js ├── Home.js ├── HowItWorks.js ├── Services.js ├── index.css ├── index.js ├── navbar.js └── pages │ ├── About.js │ ├── Contact.js │ ├── Error.js │ └── Service.js └── yarn.lock /.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 | ### `yarn start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 13 | 14 | The page will reload if you make edits.\ 15 | You will also see any lint errors in the console. 16 | 17 | ### `yarn 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 | ### `yarn 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 | ### `yarn 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 | ### `yarn 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": "thapapay", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.11.4", 7 | "@testing-library/react": "^11.1.0", 8 | "@testing-library/user-event": "^12.1.10", 9 | "react": "^17.0.2", 10 | "react-dom": "^17.0.2", 11 | "react-router-dom": "^5.2.0", 12 | "react-scripts": "4.0.3", 13 | "web-vitals": "^1.0.1" 14 | }, 15 | "scripts": { 16 | "start": "react-scripts start", 17 | "build": "react-scripts build", 18 | "test": "react-scripts test", 19 | "eject": "react-scripts eject" 20 | }, 21 | "eslintConfig": { 22 | "extends": [ 23 | "react-app", 24 | "react-app/jest" 25 | ] 26 | }, 27 | "browserslist": { 28 | "production": [ 29 | ">0.2%", 30 | "not dead", 31 | "not op_mini all" 32 | ], 33 | "development": [ 34 | "last 1 chrome version", 35 | "last 1 firefox version", 36 | "last 1 safari version" 37 | ] 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thapatechnical/reactfirebaseYoutube/5fee0c43e920267ec6661ba96ecdb13e6aa5114e/public/favicon.ico -------------------------------------------------------------------------------- /public/images/callcenter.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thapatechnical/reactfirebaseYoutube/5fee0c43e920267ec6661ba96ecdb13e6aa5114e/public/images/callcenter.jpg -------------------------------------------------------------------------------- /public/images/hero1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thapatechnical/reactfirebaseYoutube/5fee0c43e920267ec6661ba96ecdb13e6aa5114e/public/images/hero1.jpg -------------------------------------------------------------------------------- /public/images/hero2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thapatechnical/reactfirebaseYoutube/5fee0c43e920267ec6661ba96ecdb13e6aa5114e/public/images/hero2.jpg -------------------------------------------------------------------------------- /public/images/hero3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thapatechnical/reactfirebaseYoutube/5fee0c43e920267ec6661ba96ecdb13e6aa5114e/public/images/hero3.jpg -------------------------------------------------------------------------------- /public/images/hero4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thapatechnical/reactfirebaseYoutube/5fee0c43e920267ec6661ba96ecdb13e6aa5114e/public/images/hero4.jpg -------------------------------------------------------------------------------- /public/images/mainHero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thapatechnical/reactfirebaseYoutube/5fee0c43e920267ec6661ba96ecdb13e6aa5114e/public/images/mainHero.png -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 14 | 15 | 16 | ThapaPay 17 | 18 | 25 | 26 | 32 | 33 | 34 | 35 |
36 | 41 | 46 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /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/API/howToUse.js: -------------------------------------------------------------------------------- 1 | const howToUseApp = [ 2 | { 3 | id: 1, 4 | title: "Sign in", 5 | info: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?Lorem ipsum, Etquia quis?Lorem ipsum, Etquia quis?", 6 | }, 7 | { 8 | id: 2, 9 | title: "Add your bank Account", 10 | info: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?Lorem ipsum, dolor sit amet consectetur adipisicing elit.", 11 | }, 12 | { 13 | id: 3, 14 | title: "Send payment request", 15 | info: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?Lorem ipsum, consectetur adipisicing elit. Etquia quis?Lorem ipsum?", 16 | }, 17 | ]; 18 | 19 | export default howToUseApp; 20 | -------------------------------------------------------------------------------- /src/API/serviceApi.js: -------------------------------------------------------------------------------- 1 | const serviceapi = [ 2 | { 3 | id: 1, 4 | logo: "fas fa-download", 5 | title: "Register for free.", 6 | info: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?", 7 | }, 8 | { 9 | id: 2, 10 | logo: "fas fa-user-check", 11 | title: "Verify your identity ", 12 | info: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?", 13 | }, 14 | { 15 | id: 3, 16 | logo: "fas fa-money-check-alt", 17 | title: "Add recipient's bank details.", 18 | info: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?", 19 | }, 20 | { 21 | id: 4, 22 | logo: "fab fa-amazon-pay", 23 | title: "Pay for your transfer.", 24 | info: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?", 25 | }, 26 | { 27 | id: 5, 28 | logo: "fas fa-hand-holding-usd", 29 | title: "choose an amount to send.", 30 | info: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?", 31 | }, 32 | { 33 | id: 6, 34 | logo: "fas fa-globe", 35 | title: "That's it.", 36 | info: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?", 37 | }, 38 | ]; 39 | 40 | export default serviceapi; 41 | -------------------------------------------------------------------------------- /src/API/workApi.js: -------------------------------------------------------------------------------- 1 | const workapi = [ 2 | { 3 | id: 1, 4 | logo: "fas fa-download", 5 | title: "Downlaod App", 6 | info: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?", 7 | }, 8 | { 9 | id: 2, 10 | logo: "fas fa-chalkboard-teacher", 11 | title: "Complete the Instruction ", 12 | info: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?", 13 | }, 14 | { 15 | id: 3, 16 | logo: "fas fa-donate", 17 | title: "Receive your funds", 18 | info: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?Lorem ipsum, dolor sit amet consectetur adipisicing elit. Etquia quis?", 19 | }, 20 | ]; 21 | 22 | export default workapi; 23 | -------------------------------------------------------------------------------- /src/Aboutus.js: -------------------------------------------------------------------------------- 1 | import React, { useState } from "react"; 2 | import howToUseApp from "./API/howToUse.js"; 3 | 4 | const Aboutus = () => { 5 | const [aboutData, setAboutData] = useState(howToUseApp); 6 | return ( 7 | <> 8 |
9 |
10 |
11 |
12 | aboutusIMg 13 |
14 | 15 | {/* 1section right side data */} 16 |
17 |

18 | -- AVAILABLE @ GOOGLE AND IOS APP STORE ONLY 19 |

20 |

How to use the App?

21 | 22 | {aboutData.map((curElem) => { 23 | const { id, title, info } = curElem; 24 | return ( 25 | <> 26 |
27 |
{id}
28 |
29 |

{title}

30 |

{info}

31 |
32 |
33 | 34 | ); 35 | })} 36 | 37 |
38 | 39 |
40 |
41 |
42 |
43 | 44 | {/* 2nd part of bayt us section */} 45 | 46 |
47 |
48 |
49 | {/* 1section right side data */} 50 |
51 |

-- SUPPORT IN ANY LANGUAGES

52 |

53 | World class support is
available 24/7 54 |

55 | 56 | {aboutData.map((curElem) => { 57 | const { id, title, info } = curElem; 58 | return ( 59 | <> 60 |
61 |
{id}
62 |
63 |

{title}

64 |

{info}

65 |
66 |
67 | 68 | ); 69 | })} 70 | 71 |
72 | 73 |
74 | 75 | {/* images section */} 76 |
77 | aboutusIMg 78 |
79 |
80 |
81 |
82 | 83 | ); 84 | }; 85 | 86 | export default Aboutus; 87 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import Home from "./Home"; 3 | import { Route, Switch } from "react-router"; 4 | import About from "./pages/About"; 5 | import Contact from "./pages/Contact"; 6 | import Service from "./pages/Service"; 7 | import Error from "./pages/Error"; 8 | 9 | const App = () => { 10 | return ( 11 | <> 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | ); 21 | }; 22 | 23 | export default App; 24 | -------------------------------------------------------------------------------- /src/Contact.js: -------------------------------------------------------------------------------- 1 | import React, { useState } from "react"; 2 | 3 | const Contact = () => { 4 | const [userData, setUserData] = useState({ 5 | firstName: "", 6 | lastName: "", 7 | phone: "", 8 | email: "", 9 | address: "", 10 | message: "", 11 | }); 12 | 13 | let name, value; 14 | const postUserData = (event) => { 15 | name = event.target.name; 16 | value = event.target.value; 17 | 18 | setUserData({ ...userData, [name]: value }); 19 | }; 20 | 21 | // connect with firebase 22 | const submitData = async (event) => { 23 | event.preventDefault(); 24 | const { firstName, lastName, phone, email, address, message } = userData; 25 | 26 | if (firstName && lastName && phone && email && address && message) { 27 | const res = fetch( 28 | "https://reactfirebasewebsite-default-rtdb.firebaseio.com/userDataRecords.json", 29 | { 30 | method: "POST", 31 | headers: { 32 | "Content-Type": "application/json", 33 | }, 34 | body: JSON.stringify({ 35 | firstName, 36 | lastName, 37 | phone, 38 | email, 39 | address, 40 | message, 41 | }), 42 | } 43 | ); 44 | 45 | if (res) { 46 | setUserData({ 47 | firstName: "", 48 | lastName: "", 49 | phone: "", 50 | email: "", 51 | address: "", 52 | message: "", 53 | }); 54 | alert("Data Stored"); 55 | } else { 56 | alert("plz fill the data"); 57 | } 58 | } else { 59 | alert("plz fill the data"); 60 | } 61 | }; 62 | 63 | return ( 64 | <> 65 |
66 |
67 |
68 |
69 |
70 |
71 |

72 | Connect With Our
Sales Team. 73 |

74 |

75 | Lorem ipsum dolor sit amet consectetur adipisicing elit. 76 | Deserunt eaque alias similique. 77 |

78 |
79 | contatUsImg 84 |
85 |
86 | 87 | {/* right side contact form */} 88 |
89 |
90 |
91 |
92 | 101 |
102 |
103 | 112 |
113 |
114 |
115 |
116 | 125 |
126 |
127 | 136 |
137 |
138 |
139 |
140 | 149 |
150 |
151 | 152 |
153 |
154 | 163 |
164 |
165 |
166 | 172 | 178 |
179 | 180 | 186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 | 194 | ); 195 | }; 196 | 197 | export default Contact; 198 | -------------------------------------------------------------------------------- /src/Error404.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { NavLink } from "react-router-dom"; 3 | 4 | const Error404 = () => { 5 | return ( 6 | <> 7 |
8 |
9 |
10 |

404

11 |
12 |

WE ARE SORRY, PAGE NOT FOUND!

13 |

14 | THE PAGE YOU ARE LOOKING FOR MIGHT HAVE BEEN REMOVED HAD ITS NAME 15 | CHANGED OR IS TEMPORARILY UNAVAILABLE. 16 |

17 | back to homepage 18 |
19 |
20 | 21 | ); 22 | }; 23 | 24 | export default Error404; 25 | -------------------------------------------------------------------------------- /src/Footer.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const Footer = () => { 4 | return ( 5 | <> 6 | 97 | 98 | ); 99 | }; 100 | 101 | export default Footer; 102 | -------------------------------------------------------------------------------- /src/Header.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const Header = () => { 4 | return ( 5 | <> 6 |
7 |
8 |
9 |
10 |

11 | Online Payment Made
Easy For You. 12 |

13 |

14 | Lorem ipsum, dolor sit amet consectetur adipisicing elit. Et, 15 | quia quis? Ipsa officia ad deserunt voluptate quam, nisi odio 16 | officiis tempora recusandae voluptate quam, nisi odio officiis 17 | tempora recusandae 18 |

19 |

Get early access for you

20 |
21 | 26 |
Get it now
27 |
28 |
29 | {/* --------------- main header right side-------------- */} 30 |
31 | heroimg 36 | heroimg4 41 |
42 |
43 |
44 |
45 | 46 | ); 47 | }; 48 | 49 | export default Header; 50 | -------------------------------------------------------------------------------- /src/Home.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import Navbar from "./navbar"; 3 | import Header from "./Header"; 4 | import HowItWorks from "./HowItWorks"; 5 | import Aboutus from "./Aboutus"; 6 | import Services from "./Services"; 7 | import Contact from "./Contact"; 8 | import Footer from "./Footer"; 9 | 10 | const Home = () => { 11 | return ( 12 | <> 13 | 14 |
15 | 16 | 17 | 18 | 19 |