Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +40 -0
- Birthday-Wisher/.gitignore +23 -0
- Birthday-Wisher/LICENSE +21 -0
- Birthday-Wisher/README.md +46 -0
- Birthday-Wisher/package-lock.json +0 -0
- Birthday-Wisher/package.json +35 -0
- Birthday-Wisher/public/_redirects +1 -0
- Birthday-Wisher/public/favicon.ico +0 -0
- Birthday-Wisher/public/index.html +40 -0
- Birthday-Wisher/public/logo192.png +3 -0
- Birthday-Wisher/public/logo512.png +3 -0
- Birthday-Wisher/public/manifest.json +25 -0
- Birthday-Wisher/public/robots.txt +3 -0
- Birthday-Wisher/screenshots/countdown.png +3 -0
- Birthday-Wisher/screenshots/duma.png +3 -0
- Birthday-Wisher/screenshots/generate.png +3 -0
- Birthday-Wisher/screenshots/wishPage.png +3 -0
- Birthday-Wisher/src/App.css +148 -0
- Birthday-Wisher/src/App.js +24 -0
- Birthday-Wisher/src/Birthday.jsx +125 -0
- Birthday-Wisher/src/Countdown.jsx +36 -0
- Birthday-Wisher/src/Generate.jsx +68 -0
- Birthday-Wisher/src/RouterBirthday.jsx +14 -0
- Birthday-Wisher/src/Wish.jsx +11 -0
- Birthday-Wisher/src/githubLogo.svg +1 -0
- Birthday-Wisher/src/index.css +13 -0
- Birthday-Wisher/src/index.js +14 -0
- Easy-Consulting-react/.gitignore +23 -0
- Easy-Consulting-react/README.md +114 -0
- Easy-Consulting-react/package-lock.json +0 -0
- Easy-Consulting-react/package.json +68 -0
- Easy-Consulting-react/public/favicon.ico +0 -0
- Easy-Consulting-react/public/index.html +43 -0
- Easy-Consulting-react/public/logo192.png +3 -0
- Easy-Consulting-react/public/logo512.png +3 -0
- Easy-Consulting-react/public/manifest.json +25 -0
- Easy-Consulting-react/public/robots.txt +3 -0
- Easy-Consulting-react/src/App.css +38 -0
- Easy-Consulting-react/src/App.js +32 -0
- Easy-Consulting-react/src/App.test.js +8 -0
- Easy-Consulting-react/src/Assets/404.svg +1 -0
- Easy-Consulting-react/src/Assets/about.svg +1 -0
- Easy-Consulting-react/src/Assets/bg.png +3 -0
- Easy-Consulting-react/src/Assets/contact.svg +1 -0
- Easy-Consulting-react/src/Assets/footerbg.png +3 -0
- Easy-Consulting-react/src/Assets/info.svg +50 -0
- Easy-Consulting-react/src/Assets/log.svg +1 -0
- Easy-Consulting-react/src/Assets/register.svg +1 -0
- Easy-Consulting-react/src/Assets/s1.png +3 -0
- Easy-Consulting-react/src/Assets/s2.png +3 -0
.gitattributes
CHANGED
|
@@ -57,3 +57,43 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
Reactive-Resume/apps/client/public/sample-resumes/ditto.pdf filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
Reactive-Resume/apps/client/public/templates/pdf/azurill.pdf filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
Reactive-Resume/apps/client/public/templates/pdf/bronzor.pdf filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
Reactive-Resume/apps/client/public/templates/pdf/chikorita.pdf filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
Reactive-Resume/apps/client/public/templates/pdf/ditto.pdf filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
Reactive-Resume/apps/client/public/templates/pdf/gengar.pdf filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
Reactive-Resume/apps/client/public/templates/pdf/glalie.pdf filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
Reactive-Resume/apps/client/public/templates/pdf/kakuna.pdf filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
Reactive-Resume/apps/client/public/templates/pdf/leafish.pdf filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
Reactive-Resume/apps/client/public/templates/pdf/nosepass.pdf filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
Reactive-Resume/apps/client/public/templates/pdf/onyx.pdf filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
Reactive-Resume/apps/client/public/templates/pdf/pikachu.pdf filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
Reactive-Resume/apps/client/public/templates/pdf/rhyhorn.pdf filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
ant-design/components/locale/__tests__/__snapshots__/index.test.tsx.snap filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
netflix-clone-using-react/public/images/misc/video-tv.m4v filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
next.js/examples/cms-buttercms/css/fonts/LineIcons.eot filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
next.js/examples/cms-buttercms/css/fonts/LineIcons.ttf filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
next.js/examples/with-supertokens/assets/fonts/MenloRegular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
next.js/examples/with-three-js/public/glb/flamingo.glb filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
next.js/examples/with-three-js/public/glb/parrot.glb filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
next.js/examples/with-three-js/public/glb/stork.glb filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
nivo/branding/nivo-logo.ai filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
react-boilerplate/app/images/favicon.ico filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
react-material-dashboard/public/favicon.ico filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
react-query/media/logo.sketch filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
react-spring/demo/public/switch.glb filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
react-spring/demo/src/sandboxes/webgl-switch/public/switch.glb filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
react-testing-library/other/design[[:space:]]files/cheat-sheet.afpub filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
slate/docs/images/logo.sketch filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
v4/src/fonts/SFMono/SFMono-Medium.ttf filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
v4/src/fonts/SFMono/SFMono-MediumItalic.ttf filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
v4/src/fonts/SFMono/SFMono-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
v4/src/fonts/SFMono/SFMono-RegularItalic.ttf filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
v4/src/fonts/SFMono/SFMono-Semibold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
v4/src/fonts/SFMono/SFMono-SemiboldItalic.ttf filter=lfs diff=lfs merge=lfs -text
|
| 95 |
+
v4/static/resume.pdf filter=lfs diff=lfs merge=lfs -text
|
| 96 |
+
v4/static/slides/intro-to-webdev-workshop.pdf filter=lfs diff=lfs merge=lfs -text
|
| 97 |
+
wp-calypso/desktop/resource/icon.icns filter=lfs diff=lfs merge=lfs -text
|
| 98 |
+
wp-calypso/desktop/resource/icon.ico filter=lfs diff=lfs merge=lfs -text
|
| 99 |
+
wp-calypso/test/e2e/image-uploads/test-unsupported-file-01.mkv filter=lfs diff=lfs merge=lfs -text
|
Birthday-Wisher/.gitignore
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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*
|
Birthday-Wisher/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2020 Deepankar Bhade
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
Birthday-Wisher/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🎉Birthday Wisher with Countdown!🎉
|
| 2 |
+
|
| 3 |
+
Made with React with Hooks.
|
| 4 |
+
|
| 5 |
+
## Getting started
|
| 6 |
+
|
| 7 |
+
You can view a live demo over at https://birthday-wisher.netlify.app/
|
| 8 |
+
|
| 9 |
+
To get It running locally:
|
| 10 |
+
|
| 11 |
+
- Clone this repo
|
| 12 |
+
- `npm install` to install all req'd dependencies
|
| 13 |
+
- `npm start` to start the local server (this project uses create-react-app)
|
| 14 |
+
|
| 15 |
+
## Usage:
|
| 16 |
+
|
| 17 |
+
Visit [https://birthday-wisher.netlify.app/]()
|
| 18 |
+
|
| 19 |
+
Click on Generate Link
|
| 20 |
+
or Head to [https://birthday-wisher.netlify.app/generate]()
|
| 21 |
+
|
| 22 |
+
Enter the `name , day , month of birthday`
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
|
| 26 |
+
Click on Generate Link
|
| 27 |
+
|
| 28 |
+
You Can see a Link being generated Copy or Visit the link by Clicking on the Button
|
| 29 |
+
|
| 30 |
+
And There You Go ! 🎉
|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
|
| 34 |
+
## ScreenShot of Coutdown Timer⏲️
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
|
| 38 |
+
## Birthday Wisher🎂
|
| 39 |
+
|
| 40 |
+
Loads this Page Instead of Coutdown on the Birthday
|
| 41 |
+

|
| 42 |
+
|
| 43 |
+
It's Fully Responsive and you change styles in the `app.css`
|
| 44 |
+
|
| 45 |
+
Wishing Component Page : `Wish.jsx`
|
| 46 |
+
Countdown Compenent Page : `Countdown.jsx`
|
Birthday-Wisher/package-lock.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Birthday-Wisher/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "birthday-wisher",
|
| 3 |
+
"version": "0.1.0",
|
| 4 |
+
"private": true,
|
| 5 |
+
"dependencies": {
|
| 6 |
+
"@testing-library/jest-dom": "^4.2.4",
|
| 7 |
+
"@testing-library/react": "^9.5.0",
|
| 8 |
+
"@testing-library/user-event": "^7.2.1",
|
| 9 |
+
"react": "^16.13.1",
|
| 10 |
+
"react-dom": "^16.13.1",
|
| 11 |
+
"react-router-dom": "^5.2.0",
|
| 12 |
+
"react-scripts": "3.4.3"
|
| 13 |
+
},
|
| 14 |
+
"scripts": {
|
| 15 |
+
"start": "react-scripts start",
|
| 16 |
+
"build": "react-scripts build",
|
| 17 |
+
"test": "react-scripts test",
|
| 18 |
+
"eject": "react-scripts eject"
|
| 19 |
+
},
|
| 20 |
+
"eslintConfig": {
|
| 21 |
+
"extends": "react-app"
|
| 22 |
+
},
|
| 23 |
+
"browserslist": {
|
| 24 |
+
"production": [
|
| 25 |
+
">0.2%",
|
| 26 |
+
"not dead",
|
| 27 |
+
"not op_mini all"
|
| 28 |
+
],
|
| 29 |
+
"development": [
|
| 30 |
+
"last 1 chrome version",
|
| 31 |
+
"last 1 firefox version",
|
| 32 |
+
"last 1 safari version"
|
| 33 |
+
]
|
| 34 |
+
}
|
| 35 |
+
}
|
Birthday-Wisher/public/_redirects
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
/* /index.html 200
|
Birthday-Wisher/public/favicon.ico
ADDED
|
|
Birthday-Wisher/public/index.html
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 7 |
+
<meta name="theme-color" content="#000000" />
|
| 8 |
+
<meta name="description" content="Birthday Countdown & Wisher" />
|
| 9 |
+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
| 10 |
+
<!--
|
| 11 |
+
manifest.json provides metadata used when your web app is installed on a
|
| 12 |
+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
| 13 |
+
-->
|
| 14 |
+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
| 15 |
+
<!--
|
| 16 |
+
Notice the use of %PUBLIC_URL% in the tags above.
|
| 17 |
+
It will be replaced with the URL of the `public` folder during the build.
|
| 18 |
+
Only files inside the `public` folder can be referenced from the HTML.
|
| 19 |
+
|
| 20 |
+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
| 21 |
+
work correctly both with client-side routing and a non-root public URL.
|
| 22 |
+
Learn how to configure a non-root public URL by running `npm run build`.
|
| 23 |
+
-->
|
| 24 |
+
<title>Birthday Coutdown & Wisher</title>
|
| 25 |
+
</head>
|
| 26 |
+
<body>
|
| 27 |
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
| 28 |
+
<div id="root"></div>
|
| 29 |
+
<!--
|
| 30 |
+
This HTML file is a template.
|
| 31 |
+
If you open it directly in the browser, you will see an empty page.
|
| 32 |
+
|
| 33 |
+
You can add webfonts, meta tags, or analytics to this file.
|
| 34 |
+
The build step will place the bundled scripts into the <body> tag.
|
| 35 |
+
|
| 36 |
+
To begin the development, run `npm start` or `yarn start`.
|
| 37 |
+
To create a production bundle, use `npm run build` or `yarn build`.
|
| 38 |
+
-->
|
| 39 |
+
</body>
|
| 40 |
+
</html>
|
Birthday-Wisher/public/logo192.png
ADDED
|
Git LFS Details
|
Birthday-Wisher/public/logo512.png
ADDED
|
Git LFS Details
|
Birthday-Wisher/public/manifest.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
}
|
Birthday-Wisher/public/robots.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# https://www.robotstxt.org/robotstxt.html
|
| 2 |
+
User-agent: *
|
| 3 |
+
Disallow:
|
Birthday-Wisher/screenshots/countdown.png
ADDED
|
Git LFS Details
|
Birthday-Wisher/screenshots/duma.png
ADDED
|
Git LFS Details
|
Birthday-Wisher/screenshots/generate.png
ADDED
|
Git LFS Details
|
Birthday-Wisher/screenshots/wishPage.png
ADDED
|
Git LFS Details
|
Birthday-Wisher/src/App.css
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200&display=swap');
|
| 2 |
+
|
| 3 |
+
/* VARIABLES */
|
| 4 |
+
:root {
|
| 5 |
+
--main-bg-color-dark: #212529;
|
| 6 |
+
--main-text-color-dark: #e8e8e8;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
* {
|
| 10 |
+
box-sizing: border-box;
|
| 11 |
+
margin: 0;
|
| 12 |
+
padding: 0;
|
| 13 |
+
}
|
| 14 |
+
body {
|
| 15 |
+
font-family: 'Montserrat', sans-serif;
|
| 16 |
+
background-color: var(--main-bg-color-dark);
|
| 17 |
+
color: var(--main-text-color-dark);
|
| 18 |
+
background-color: #1d1d1d;
|
| 19 |
+
}
|
| 20 |
+
.page {
|
| 21 |
+
width: 100%;
|
| 22 |
+
height: 100vh;
|
| 23 |
+
display: flex;
|
| 24 |
+
flex-direction: column;
|
| 25 |
+
justify-content: center;
|
| 26 |
+
align-items: center;
|
| 27 |
+
text-align: center;
|
| 28 |
+
}
|
| 29 |
+
.heading {
|
| 30 |
+
font-size: 45px;
|
| 31 |
+
}
|
| 32 |
+
.highlight {
|
| 33 |
+
color: #7f78d2;
|
| 34 |
+
}
|
| 35 |
+
.countdown-wrapper {
|
| 36 |
+
max-width: 800px;
|
| 37 |
+
display: flex;
|
| 38 |
+
flex-direction: row;
|
| 39 |
+
flex-wrap: wrap;
|
| 40 |
+
justify-content: space-around;
|
| 41 |
+
margin: 40px 0;
|
| 42 |
+
}
|
| 43 |
+
.countdown-box {
|
| 44 |
+
background-color: #413c69;
|
| 45 |
+
font-size: 50px;
|
| 46 |
+
font-weight: 700;
|
| 47 |
+
color: #dcd6f7;
|
| 48 |
+
border-radius: 15px;
|
| 49 |
+
width: 160px;
|
| 50 |
+
height: 160px;
|
| 51 |
+
margin: 10px;
|
| 52 |
+
display: flex;
|
| 53 |
+
flex-direction: column;
|
| 54 |
+
justify-content: center;
|
| 55 |
+
align-items: center;
|
| 56 |
+
text-align: center;
|
| 57 |
+
}
|
| 58 |
+
.legend {
|
| 59 |
+
font-size: 30px;
|
| 60 |
+
color: #a6b1e1;
|
| 61 |
+
}
|
| 62 |
+
.wish-message {
|
| 63 |
+
font-size: 45px;
|
| 64 |
+
font-weight: 700;
|
| 65 |
+
}
|
| 66 |
+
.birthdate {
|
| 67 |
+
font-size: 25px;
|
| 68 |
+
font-weight: 600;
|
| 69 |
+
color: #7f78d2;
|
| 70 |
+
}
|
| 71 |
+
.credits {
|
| 72 |
+
margin-top: 15px;
|
| 73 |
+
}
|
| 74 |
+
.github-logo {
|
| 75 |
+
opacity: 0.5;
|
| 76 |
+
width: 50px;
|
| 77 |
+
}
|
| 78 |
+
.github-logo:hover {
|
| 79 |
+
opacity: 1;
|
| 80 |
+
}
|
| 81 |
+
.form {
|
| 82 |
+
display: flex;
|
| 83 |
+
flex-direction: column;
|
| 84 |
+
justify-content: center;
|
| 85 |
+
align-items: center;
|
| 86 |
+
text-align: center;
|
| 87 |
+
margin-top: 20px;
|
| 88 |
+
}
|
| 89 |
+
.form input {
|
| 90 |
+
margin: 10px;
|
| 91 |
+
}
|
| 92 |
+
input {
|
| 93 |
+
color: var(--main-text-color-dark);
|
| 94 |
+
outline: none;
|
| 95 |
+
width: 300px;
|
| 96 |
+
height: 40px;
|
| 97 |
+
background-color: transparent;
|
| 98 |
+
border: 1px rgba(255, 255, 255, 0.2) solid;
|
| 99 |
+
border-radius: 5px;
|
| 100 |
+
padding-left: 10px;
|
| 101 |
+
padding-right: 10px;
|
| 102 |
+
font-size: 18px;
|
| 103 |
+
}
|
| 104 |
+
select {
|
| 105 |
+
width: 300px;
|
| 106 |
+
height: 40px;
|
| 107 |
+
background-color: transparent;
|
| 108 |
+
color: rgba(255, 255, 255, 0.527);
|
| 109 |
+
font-family: Montserrat, sans-serif;
|
| 110 |
+
border: 1px rgba(255, 255, 255, 0.164) solid;
|
| 111 |
+
padding-left: 20px;
|
| 112 |
+
-webkit-appearance: none;
|
| 113 |
+
-moz-appearance: none;
|
| 114 |
+
border-radius: 5px;
|
| 115 |
+
font-size: 18px;
|
| 116 |
+
margin-top: 10px;
|
| 117 |
+
outline: none;
|
| 118 |
+
}
|
| 119 |
+
input:focus,
|
| 120 |
+
select:focus,
|
| 121 |
+
.btn:focus {
|
| 122 |
+
border: 1px rgba(255, 255, 255, 1) solid;
|
| 123 |
+
transition: all 0.5s;
|
| 124 |
+
}
|
| 125 |
+
.btn {
|
| 126 |
+
width: 300px;
|
| 127 |
+
height: 40px;
|
| 128 |
+
margin-top: 20px;
|
| 129 |
+
outline: none;
|
| 130 |
+
border: 1px rgba(255, 255, 255, 0.2) solid;
|
| 131 |
+
background-color: transparent;
|
| 132 |
+
border-radius: 5px;
|
| 133 |
+
color: rgba(255, 255, 255, 0.719);
|
| 134 |
+
font-size: 18px;
|
| 135 |
+
font-weight: 700;
|
| 136 |
+
}
|
| 137 |
+
.btn:hover {
|
| 138 |
+
color: white;
|
| 139 |
+
}
|
| 140 |
+
a {
|
| 141 |
+
color: #7f78d2;
|
| 142 |
+
font-weight: bold;
|
| 143 |
+
margin-top: 20px;
|
| 144 |
+
}
|
| 145 |
+
.gen-link {
|
| 146 |
+
margin-top: 20px;
|
| 147 |
+
font-size: 400;
|
| 148 |
+
}
|
Birthday-Wisher/src/App.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from 'react';
|
| 2 |
+
import './App.css';
|
| 3 |
+
import Birthday from './Birthday';
|
| 4 |
+
import { Route, Switch } from 'react-router-dom';
|
| 5 |
+
import RouterBirthday from './RouterBirthday';
|
| 6 |
+
import Generate from './Generate';
|
| 7 |
+
|
| 8 |
+
function App() {
|
| 9 |
+
return (
|
| 10 |
+
<div className='App'>
|
| 11 |
+
<Switch>
|
| 12 |
+
<Route exact path='/' component={Birthday} />
|
| 13 |
+
<Route
|
| 14 |
+
exact
|
| 15 |
+
path='/birthday/:name?/:day?/:month?'
|
| 16 |
+
component={RouterBirthday}
|
| 17 |
+
/>
|
| 18 |
+
<Route exact path='/generate' component={Generate} />
|
| 19 |
+
</Switch>
|
| 20 |
+
</div>
|
| 21 |
+
);
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
export default App;
|
Birthday-Wisher/src/Birthday.jsx
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React, { useState, useEffect } from 'react';
|
| 2 |
+
import Countdown from './Countdown';
|
| 3 |
+
import githubLogo from './githubLogo.svg';
|
| 4 |
+
import { Link } from 'react-router-dom';
|
| 5 |
+
|
| 6 |
+
const Birthday = ({ name, day, month }) => {
|
| 7 |
+
// useState Hooks
|
| 8 |
+
const [state, setState] = useState({
|
| 9 |
+
seconds: 0,
|
| 10 |
+
hours: 0,
|
| 11 |
+
minutes: 0,
|
| 12 |
+
days: 0,
|
| 13 |
+
isItBday: false,
|
| 14 |
+
});
|
| 15 |
+
|
| 16 |
+
if (name === undefined || day === undefined || month === undefined) {
|
| 17 |
+
// This is if not enough params are provided
|
| 18 |
+
name = 'Deepankar'; // Name of the Person
|
| 19 |
+
month = 6; // Month of the Birthday
|
| 20 |
+
day = 14; // Day of the Birthday
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
// get current time
|
| 24 |
+
const currentTime = new Date();
|
| 25 |
+
// get current year
|
| 26 |
+
const currentYear = currentTime.getFullYear();
|
| 27 |
+
|
| 28 |
+
// Getting the Birthday in Data Object
|
| 29 |
+
// WE subtract 1 from momnth ; Months start from 0 in Date Object
|
| 30 |
+
// Bithday Boolean
|
| 31 |
+
const isItBday =
|
| 32 |
+
currentTime.getDate() === day && currentTime.getMonth() === month - 1;
|
| 33 |
+
|
| 34 |
+
useEffect(() => {
|
| 35 |
+
setInterval(() => {
|
| 36 |
+
const countdown = () => {
|
| 37 |
+
// Getting the Current Date
|
| 38 |
+
const dateAtm = new Date();
|
| 39 |
+
|
| 40 |
+
// if the Birthday has passed
|
| 41 |
+
// then set the Birthday countdown for next year
|
| 42 |
+
let birthdayDay = new Date(currentYear, month - 1, day);
|
| 43 |
+
if (dateAtm > birthdayDay) {
|
| 44 |
+
birthdayDay = new Date(currentYear + 1, month - 1, day);
|
| 45 |
+
} else if (dateAtm.getFullYear() === birthdayDay.getFullYear() + 1) {
|
| 46 |
+
birthdayDay = new Date(currentYear, month - 1, day);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
// Getitng Current Time
|
| 50 |
+
const currentTime = dateAtm.getTime();
|
| 51 |
+
// Getting Birthdays Time
|
| 52 |
+
const birthdayTime = birthdayDay.getTime();
|
| 53 |
+
|
| 54 |
+
// Time remaining for the Birthday
|
| 55 |
+
const timeRemaining = birthdayTime - currentTime;
|
| 56 |
+
|
| 57 |
+
let seconds = Math.floor(timeRemaining / 1000);
|
| 58 |
+
let minutes = Math.floor(seconds / 60);
|
| 59 |
+
let hours = Math.floor(minutes / 60);
|
| 60 |
+
let days = Math.floor(hours / 24);
|
| 61 |
+
|
| 62 |
+
seconds %= 60;
|
| 63 |
+
minutes %= 60;
|
| 64 |
+
hours %= 24;
|
| 65 |
+
|
| 66 |
+
// Setting States
|
| 67 |
+
setState((prevState) => ({
|
| 68 |
+
...prevState,
|
| 69 |
+
seconds,
|
| 70 |
+
minutes,
|
| 71 |
+
hours,
|
| 72 |
+
days,
|
| 73 |
+
isItBday,
|
| 74 |
+
}));
|
| 75 |
+
// console.log(`${days}:${hours}:${minutes}:${seconds} , ${isItBday}`);
|
| 76 |
+
};
|
| 77 |
+
if (!isItBday) {
|
| 78 |
+
countdown();
|
| 79 |
+
} else {
|
| 80 |
+
setState((prevState) => ({
|
| 81 |
+
...prevState,
|
| 82 |
+
isItBday: true,
|
| 83 |
+
}));
|
| 84 |
+
}
|
| 85 |
+
}, 1000);
|
| 86 |
+
}, [currentYear, day, isItBday, month]);
|
| 87 |
+
|
| 88 |
+
let birth = new Date(currentYear, month - 1, day);
|
| 89 |
+
const monthNames = [
|
| 90 |
+
'January',
|
| 91 |
+
'February',
|
| 92 |
+
'March',
|
| 93 |
+
'April',
|
| 94 |
+
'May',
|
| 95 |
+
'June',
|
| 96 |
+
'July',
|
| 97 |
+
'August',
|
| 98 |
+
'September',
|
| 99 |
+
'October',
|
| 100 |
+
'November',
|
| 101 |
+
'December',
|
| 102 |
+
];
|
| 103 |
+
let monthBday = monthNames[birth.getMonth()];
|
| 104 |
+
|
| 105 |
+
return (
|
| 106 |
+
<div className='page'>
|
| 107 |
+
<Countdown countdownData={state} name={name} />
|
| 108 |
+
{!isItBday && (
|
| 109 |
+
<>
|
| 110 |
+
<div className='birthdate'>
|
| 111 |
+
Birth-Date: {day} {monthBday} {currentYear}
|
| 112 |
+
</div>
|
| 113 |
+
<div className='credits'>
|
| 114 |
+
<a href='https://github.com/Deep-Codes'>
|
| 115 |
+
<img src={githubLogo} alt='Github-Logo' className='github-logo' />
|
| 116 |
+
</a>
|
| 117 |
+
</div>
|
| 118 |
+
<Link to='/generate'>Generate Here</Link>
|
| 119 |
+
</>
|
| 120 |
+
)}
|
| 121 |
+
</div>
|
| 122 |
+
);
|
| 123 |
+
};
|
| 124 |
+
|
| 125 |
+
export default Birthday;
|
Birthday-Wisher/src/Countdown.jsx
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from 'react';
|
| 2 |
+
import Wish from './Wish';
|
| 3 |
+
|
| 4 |
+
const Countdown = ({ countdownData, name }) => {
|
| 5 |
+
if (!countdownData.isItBday) {
|
| 6 |
+
return (
|
| 7 |
+
<div>
|
| 8 |
+
<h1 className='heading'>
|
| 9 |
+
Countdown to <span className='highlight'>{name}'s</span> Birthday
|
| 10 |
+
</h1>
|
| 11 |
+
<div className='countdown-wrapper'>
|
| 12 |
+
<div className='countdown-box'>
|
| 13 |
+
{countdownData.days}
|
| 14 |
+
<span className='legend'>Days</span>
|
| 15 |
+
</div>
|
| 16 |
+
<div className='countdown-box'>
|
| 17 |
+
{countdownData.hours}
|
| 18 |
+
<span className='legend'>Hours</span>
|
| 19 |
+
</div>
|
| 20 |
+
<div className='countdown-box'>
|
| 21 |
+
{countdownData.minutes}
|
| 22 |
+
<span className='legend'>Minutes</span>
|
| 23 |
+
</div>
|
| 24 |
+
<div className='countdown-box'>
|
| 25 |
+
{countdownData.seconds}
|
| 26 |
+
<span className='legend'>Seconds</span>
|
| 27 |
+
</div>
|
| 28 |
+
</div>
|
| 29 |
+
</div>
|
| 30 |
+
);
|
| 31 |
+
} else {
|
| 32 |
+
return <Wish name={name} />;
|
| 33 |
+
}
|
| 34 |
+
};
|
| 35 |
+
|
| 36 |
+
export default Countdown;
|
Birthday-Wisher/src/Generate.jsx
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React, { useState } from 'react';
|
| 2 |
+
import { Link } from 'react-router-dom';
|
| 3 |
+
|
| 4 |
+
const Generate = () => {
|
| 5 |
+
const [name, setName] = useState('');
|
| 6 |
+
const [day, setDay] = useState(1);
|
| 7 |
+
const [month, setMonth] = useState(1);
|
| 8 |
+
const [link, setLink] = useState('');
|
| 9 |
+
const generateLink = () => {
|
| 10 |
+
setLink(
|
| 11 |
+
`https://birthday-wisher.netlify.app/birthday/${name}/${day}/${month}`
|
| 12 |
+
);
|
| 13 |
+
};
|
| 14 |
+
return (
|
| 15 |
+
<div className='page'>
|
| 16 |
+
<h1>Generate Here</h1>
|
| 17 |
+
<div className='form'>
|
| 18 |
+
<input
|
| 19 |
+
type='text'
|
| 20 |
+
placeholder='Enter Name'
|
| 21 |
+
value={name}
|
| 22 |
+
onChange={(e) => setName(e.target.value)}
|
| 23 |
+
/>
|
| 24 |
+
<input
|
| 25 |
+
type='number'
|
| 26 |
+
placeholder='Enter Day'
|
| 27 |
+
value={day}
|
| 28 |
+
onChange={(e) => setDay(e.target.value)}
|
| 29 |
+
max={31}
|
| 30 |
+
min={1}
|
| 31 |
+
/>
|
| 32 |
+
<select value={month} onChange={(e) => setMonth(e.target.value)}>
|
| 33 |
+
<option value=''>Select Month</option>
|
| 34 |
+
<option selected value='1'>
|
| 35 |
+
January
|
| 36 |
+
</option>
|
| 37 |
+
<option value='2'>February</option>
|
| 38 |
+
<option value='3'>March</option>
|
| 39 |
+
<option value='4'>April</option>
|
| 40 |
+
<option value='5'>May</option>
|
| 41 |
+
<option value='6'>June</option>
|
| 42 |
+
<option value='7'>July</option>
|
| 43 |
+
<option value='8'>August</option>
|
| 44 |
+
<option value='9'>September</option>
|
| 45 |
+
<option value='10'>October</option>
|
| 46 |
+
<option value='11'>November</option>
|
| 47 |
+
<option value='12'>December</option>
|
| 48 |
+
</select>
|
| 49 |
+
</div>
|
| 50 |
+
<button className='btn' onClick={() => generateLink()}>
|
| 51 |
+
Generate Link
|
| 52 |
+
</button>
|
| 53 |
+
|
| 54 |
+
{link !== '' ? (
|
| 55 |
+
<>
|
| 56 |
+
<p className='gen-link'>{link}</p>
|
| 57 |
+
<Link to={`birthday/${name}/${day}/${month}`}>
|
| 58 |
+
<button className='btn'>Visit Link</button>
|
| 59 |
+
</Link>
|
| 60 |
+
</>
|
| 61 |
+
) : (
|
| 62 |
+
''
|
| 63 |
+
)}
|
| 64 |
+
</div>
|
| 65 |
+
);
|
| 66 |
+
};
|
| 67 |
+
|
| 68 |
+
export default Generate;
|
Birthday-Wisher/src/RouterBirthday.jsx
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from 'react';
|
| 2 |
+
import Birthday from './Birthday';
|
| 3 |
+
|
| 4 |
+
const RouterBirthday = (props) => {
|
| 5 |
+
const { params } = props.match;
|
| 6 |
+
const { name, day, month } = params;
|
| 7 |
+
return (
|
| 8 |
+
<>
|
| 9 |
+
<Birthday name={name} month={month} day={day} />
|
| 10 |
+
</>
|
| 11 |
+
);
|
| 12 |
+
};
|
| 13 |
+
|
| 14 |
+
export default RouterBirthday;
|
Birthday-Wisher/src/Wish.jsx
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from 'react';
|
| 2 |
+
|
| 3 |
+
const Wish = ({ name }) => {
|
| 4 |
+
return (
|
| 5 |
+
<div className='wish-message'>
|
| 6 |
+
HAPPY BIRTHDAY <span className='highlight'>{name.toUpperCase()}</span> !!!
|
| 7 |
+
</div>
|
| 8 |
+
);
|
| 9 |
+
};
|
| 10 |
+
|
| 11 |
+
export default Wish;
|
Birthday-Wisher/src/githubLogo.svg
ADDED
|
|
Birthday-Wisher/src/index.css
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
}
|
Birthday-Wisher/src/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from 'react';
|
| 2 |
+
import ReactDOM from 'react-dom';
|
| 3 |
+
import './index.css';
|
| 4 |
+
import App from './App';
|
| 5 |
+
import { BrowserRouter } from 'react-router-dom';
|
| 6 |
+
|
| 7 |
+
ReactDOM.render(
|
| 8 |
+
<React.StrictMode>
|
| 9 |
+
<BrowserRouter>
|
| 10 |
+
<App />
|
| 11 |
+
</BrowserRouter>
|
| 12 |
+
</React.StrictMode>,
|
| 13 |
+
document.getElementById('root')
|
| 14 |
+
);
|
Easy-Consulting-react/.gitignore
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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*
|
Easy-Consulting-react/README.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- PROJECT LOGO -->
|
| 2 |
+
<br />
|
| 3 |
+
<div align="center">
|
| 4 |
+
<a href="#">
|
| 5 |
+
<img src="https://image.freepik.com/free-vector/triangle-letter-ag-free-logo-design_8035-1.jpg" alt="Logo" width="80" height="80">
|
| 6 |
+
</a>
|
| 7 |
+
|
| 8 |
+
<h3 align="center">Easy Consulting</h3>
|
| 9 |
+
|
| 10 |
+
<p align="center">
|
| 11 |
+
A Technonogly agency fullstack website build in react, mui , bootstrap and nodejs
|
| 12 |
+
<br />
|
| 13 |
+
<a href="https://github.com/Ujjalzaman/Easy-Consulting-react"><strong>Explore the code here »</strong></a>
|
| 14 |
+
<br />
|
| 15 |
+
<a href="https://github.com/Ujjalzaman/easy-consult-server-express-mongo"><strong>Backend code here »</strong></a>
|
| 16 |
+
<br />
|
| 17 |
+
<a href="https://wonderful-kowalevski-8c905c.netlify.app/">View Demo</a>
|
| 18 |
+
·
|
| 19 |
+
<a href="https://github.com/Ujjalzaman/Easy-Consulting-react/issues">Report Bug</a>
|
| 20 |
+
·
|
| 21 |
+
<a href="https://github.com/Ujjalzaman/Easy-Consulting-react/issues">Request Feature</a>
|
| 22 |
+
</p>
|
| 23 |
+
</div>
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
## Tech Stack
|
| 27 |
+
- [React](https://facebook.github.io/react/)
|
| 28 |
+
- [JavaScripp(ES6)](https://facebook.github.io/react/)
|
| 29 |
+
- [Firebase](https://firebase.google.com/)
|
| 30 |
+
- [Firestore](https://firebase.google.com/docs/firestore)
|
| 31 |
+
- [Firebase Authentication](https://firebase.google.com/docs/auth)
|
| 32 |
+
- [Material-UI](https://material-ui.com/)
|
| 33 |
+
- [Webpack](https://webpack.js.org/)
|
| 34 |
+
- [FileSaver](https://www.npmjs.com/package/file-saver)
|
| 35 |
+
- [React-Bootstrape](#)
|
| 36 |
+
- [Context API](#)
|
| 37 |
+
- [stripe](#)
|
| 38 |
+
- [React-router-dom v-6](#)
|
| 39 |
+
- [Express](#)
|
| 40 |
+
- [MongoDb](#)
|
| 41 |
+
- [Node.js](#)
|
| 42 |
+
- [More...](#)
|
| 43 |
+
|
| 44 |
+
### Installation
|
| 45 |
+
|
| 46 |
+
_Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services._
|
| 47 |
+
|
| 48 |
+
1. Clone the repo
|
| 49 |
+
```sh
|
| 50 |
+
git clone https://github.com/Ujjalzaman/Easy-Consulting-react
|
| 51 |
+
```
|
| 52 |
+
2. Install NPM packages
|
| 53 |
+
```sh
|
| 54 |
+
npm install
|
| 55 |
+
```
|
| 56 |
+
or
|
| 57 |
+
```sh
|
| 58 |
+
yarn add
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
3. Start the project
|
| 62 |
+
```sh
|
| 63 |
+
npm start
|
| 64 |
+
```
|
| 65 |
+
or
|
| 66 |
+
```sh
|
| 67 |
+
yarn start
|
| 68 |
+
```
|
| 69 |
+
<p align="left">For this project you have to create firebase console for authentication , mongodb for database and stripe for payment gateway.</p>
|
| 70 |
+
<p>After then put all the credential env file respectly for backend keep them in root folder</p>
|
| 71 |
+
<p>create a jsx file in root and add here firbase config info</p>
|
| 72 |
+
<p>eventully if you having any issues startin this project fill free to contact me. love to help you.</p>
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
<!-- CONTRIBUTING -->
|
| 76 |
+
## Contributing
|
| 77 |
+
|
| 78 |
+
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
|
| 79 |
+
|
| 80 |
+
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
|
| 81 |
+
Don't forget to give the project a star! Thanks again!
|
| 82 |
+
|
| 83 |
+
1. Fork the Project
|
| 84 |
+
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
|
| 85 |
+
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
|
| 86 |
+
4. Push to the Branch (`git push origin feature/AmazingFeature`)
|
| 87 |
+
5. Open a Pull Request
|
| 88 |
+
|
| 89 |
+
<!-- ABOUT THE PROJECT -->
|
| 90 |
+
## Features
|
| 91 |
+
This is fullstack softawre agency project. i have build this site in my leisure time only cool. that's why did'nt have much time added much functionalilty. but in future i will try add here more things.
|
| 92 |
+
here i have implement context api for data handling. my plan was using redux or graphql using. but this is only testing project and i have time conflict that's why can't add that features.
|
| 93 |
+
also love to add typeScript. right now my machine taking little time while compile typescript file, it's too hard me that using that site without typescript.
|
| 94 |
+
|
| 95 |
+
What you get here:
|
| 96 |
+
* implement responsive ui with first loading including backend
|
| 97 |
+
* * MUI provides styling and building Material-UI components quickly and easily
|
| 98 |
+
* Most of the UI created react-bootstrap as well row css.
|
| 99 |
+
* Few cases used MUI but in future i will add more MUI features here.:smile:
|
| 100 |
+
* Responsive landing page.
|
| 101 |
+
* user can give review, can purchase a product and see there status.
|
| 102 |
+
* there most interting part is Login Page. this is amazing design and authentication system.
|
| 103 |
+
* job portal site.
|
| 104 |
+
* all the input are have to validate.
|
| 105 |
+
* authenttication system(login, logout, signup, reset email, OTP, subscribe).
|
| 106 |
+
* payement system(here used only Stripe in near will add more payment gateway)
|
| 107 |
+
* Deffrent for Dasboard(Admin and User)
|
| 108 |
+
* in dashboard Admin has all kinds of access(CRUD operations, add admin, manage orders and many more)
|
| 109 |
+
|
| 110 |
+
## Contact
|
| 111 |
+
|
| 112 |
+
ujjal zaman - [Linkdeind](www.linkedin.com/in/ujjal-zaman)
|
| 113 |
+
|
| 114 |
+
Project Link: [https://github.com/Ujjalzaman/Easy-Consulting-react](https://github.com/Ujjalzaman/Easy-Consulting-react)
|
Easy-Consulting-react/package-lock.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Easy-Consulting-react/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "client",
|
| 3 |
+
"version": "0.1.0",
|
| 4 |
+
"private": true,
|
| 5 |
+
"dependencies": {
|
| 6 |
+
"@emotion/react": "^11.6.0",
|
| 7 |
+
"@emotion/styled": "^11.6.0",
|
| 8 |
+
"@fortawesome/fontawesome-svg-core": "^1.2.36",
|
| 9 |
+
"@fortawesome/free-brands-svg-icons": "^5.15.4",
|
| 10 |
+
"@fortawesome/free-regular-svg-icons": "^5.15.4",
|
| 11 |
+
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
| 12 |
+
"@fortawesome/react-fontawesome": "^0.1.16",
|
| 13 |
+
"@mui/icons-material": "^5.1.1",
|
| 14 |
+
"@mui/material": "^5.1.1",
|
| 15 |
+
"@stripe/react-stripe-js": "^1.6.0",
|
| 16 |
+
"@stripe/stripe-js": "^1.21.1",
|
| 17 |
+
"@testing-library/jest-dom": "^5.11.4",
|
| 18 |
+
"@testing-library/react": "^11.1.0",
|
| 19 |
+
"@testing-library/user-event": "^12.1.10",
|
| 20 |
+
"axios": "^0.24.0",
|
| 21 |
+
"bootstrap": "^5.1.3",
|
| 22 |
+
"firebase": "^9.4.1",
|
| 23 |
+
"jwt-decode": "^3.1.2",
|
| 24 |
+
"react": "^17.0.2",
|
| 25 |
+
"react-bootstrap": "^2.0.2",
|
| 26 |
+
"react-content-loader": "^6.0.3",
|
| 27 |
+
"react-countup": "^6.1.0",
|
| 28 |
+
"react-dom": "^17.0.2",
|
| 29 |
+
"react-hook-form": "^7.19.5",
|
| 30 |
+
"react-hot-toast": "^2.1.1",
|
| 31 |
+
"react-lazy-load-image-component": "^1.5.1",
|
| 32 |
+
"react-loader-spinner": "^4.0.0",
|
| 33 |
+
"react-reveal": "^1.2.2",
|
| 34 |
+
"react-router-dom": "^6.0.2",
|
| 35 |
+
"react-scripts": "4.0.3",
|
| 36 |
+
"react-syntax-highlighter": "^15.4.5",
|
| 37 |
+
"react-typed": "^1.2.0",
|
| 38 |
+
"swal": "^0.1.0",
|
| 39 |
+
"sweetalert": "^2.1.2",
|
| 40 |
+
"sweetalert2": "^11.1.10",
|
| 41 |
+
"swiper": "6.8.4",
|
| 42 |
+
"web-vitals": "^1.0.1"
|
| 43 |
+
},
|
| 44 |
+
"scripts": {
|
| 45 |
+
"start": "react-scripts start",
|
| 46 |
+
"build": "react-scripts build",
|
| 47 |
+
"test": "react-scripts test",
|
| 48 |
+
"eject": "react-scripts eject"
|
| 49 |
+
},
|
| 50 |
+
"eslintConfig": {
|
| 51 |
+
"extends": [
|
| 52 |
+
"react-app",
|
| 53 |
+
"react-app/jest"
|
| 54 |
+
]
|
| 55 |
+
},
|
| 56 |
+
"browserslist": {
|
| 57 |
+
"production": [
|
| 58 |
+
">0.2%",
|
| 59 |
+
"not dead",
|
| 60 |
+
"not op_mini all"
|
| 61 |
+
],
|
| 62 |
+
"development": [
|
| 63 |
+
"last 1 chrome version",
|
| 64 |
+
"last 1 firefox version",
|
| 65 |
+
"last 1 safari version"
|
| 66 |
+
]
|
| 67 |
+
}
|
| 68 |
+
}
|
Easy-Consulting-react/public/favicon.ico
ADDED
|
|
Easy-Consulting-react/public/index.html
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 7 |
+
<meta name="theme-color" content="#000000" />
|
| 8 |
+
<meta
|
| 9 |
+
name="description"
|
| 10 |
+
content="Web site created using create-react-app"
|
| 11 |
+
/>
|
| 12 |
+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
| 13 |
+
<!--
|
| 14 |
+
manifest.json provides metadata used when your web app is installed on a
|
| 15 |
+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
| 16 |
+
-->
|
| 17 |
+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
| 18 |
+
<!--
|
| 19 |
+
Notice the use of %PUBLIC_URL% in the tags above.
|
| 20 |
+
It will be replaced with the URL of the `public` folder during the build.
|
| 21 |
+
Only files inside the `public` folder can be referenced from the HTML.
|
| 22 |
+
|
| 23 |
+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
| 24 |
+
work correctly both with client-side routing and a non-root public URL.
|
| 25 |
+
Learn how to configure a non-root public URL by running `npm run build`.
|
| 26 |
+
-->
|
| 27 |
+
<title>React App</title>
|
| 28 |
+
</head>
|
| 29 |
+
<body>
|
| 30 |
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
| 31 |
+
<div id="root"></div>
|
| 32 |
+
<!--
|
| 33 |
+
This HTML file is a template.
|
| 34 |
+
If you open it directly in the browser, you will see an empty page.
|
| 35 |
+
|
| 36 |
+
You can add webfonts, meta tags, or analytics to this file.
|
| 37 |
+
The build step will place the bundled scripts into the <body> tag.
|
| 38 |
+
|
| 39 |
+
To begin the development, run `npm start` or `yarn start`.
|
| 40 |
+
To create a production bundle, use `npm run build` or `yarn build`.
|
| 41 |
+
-->
|
| 42 |
+
</body>
|
| 43 |
+
</html>
|
Easy-Consulting-react/public/logo192.png
ADDED
|
Git LFS Details
|
Easy-Consulting-react/public/logo512.png
ADDED
|
Git LFS Details
|
Easy-Consulting-react/public/manifest.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
}
|
Easy-Consulting-react/public/robots.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# https://www.robotstxt.org/robotstxt.html
|
| 2 |
+
User-agent: *
|
| 3 |
+
Disallow:
|
Easy-Consulting-react/src/App.css
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.App {
|
| 2 |
+
text-align: center;
|
| 3 |
+
}
|
| 4 |
+
|
| 5 |
+
.App-logo {
|
| 6 |
+
height: 40vmin;
|
| 7 |
+
pointer-events: none;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
@media (prefers-reduced-motion: no-preference) {
|
| 11 |
+
.App-logo {
|
| 12 |
+
animation: App-logo-spin infinite 20s linear;
|
| 13 |
+
}
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
.App-header {
|
| 17 |
+
background-color: #282c34;
|
| 18 |
+
min-height: 100vh;
|
| 19 |
+
display: flex;
|
| 20 |
+
flex-direction: column;
|
| 21 |
+
align-items: center;
|
| 22 |
+
justify-content: center;
|
| 23 |
+
font-size: calc(10px + 2vmin);
|
| 24 |
+
color: white;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
.App-link {
|
| 28 |
+
color: #61dafb;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
@keyframes App-logo-spin {
|
| 32 |
+
from {
|
| 33 |
+
transform: rotate(0deg);
|
| 34 |
+
}
|
| 35 |
+
to {
|
| 36 |
+
transform: rotate(360deg);
|
| 37 |
+
}
|
| 38 |
+
}
|
Easy-Consulting-react/src/App.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Home from "../src/component/Home/Home/Home";
|
| 2 |
+
import { Routes, Route } from "react-router-dom";
|
| 3 |
+
import React, { createContext } from "react";
|
| 4 |
+
import About from "./component/Home/About/About";
|
| 5 |
+
import Dashboard from "./component/Dashoboard/Dashboard/Dashboard";
|
| 6 |
+
import LoginModal from "./component/Login/LoginModal";
|
| 7 |
+
import PrivateRoute from "./component/Login/PrivateRoute";
|
| 8 |
+
import NotFound from "./component/NotFound";
|
| 9 |
+
export const UserContext = createContext();
|
| 10 |
+
|
| 11 |
+
const App = () => {
|
| 12 |
+
return (
|
| 13 |
+
<div>
|
| 14 |
+
<Routes>
|
| 15 |
+
<Route path="/" element={<Home />} />
|
| 16 |
+
<Route path="/about" element={<About />} />
|
| 17 |
+
<Route path="/login" element={<LoginModal />} />
|
| 18 |
+
<Route
|
| 19 |
+
path="/dashboard/*"
|
| 20 |
+
element={
|
| 21 |
+
<PrivateRoute redirectTo="/login">
|
| 22 |
+
<Dashboard />
|
| 23 |
+
</PrivateRoute>
|
| 24 |
+
}
|
| 25 |
+
/>
|
| 26 |
+
<Route path="*" element={<NotFound />} />
|
| 27 |
+
</Routes>
|
| 28 |
+
</div>
|
| 29 |
+
);
|
| 30 |
+
};
|
| 31 |
+
|
| 32 |
+
export default App;
|
Easy-Consulting-react/src/App.test.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { render, screen } from '@testing-library/react';
|
| 2 |
+
import App from './App';
|
| 3 |
+
|
| 4 |
+
test('renders learn react link', () => {
|
| 5 |
+
render(<App />);
|
| 6 |
+
const linkElement = screen.getByText(/learn react/i);
|
| 7 |
+
expect(linkElement).toBeInTheDocument();
|
| 8 |
+
});
|
Easy-Consulting-react/src/Assets/404.svg
ADDED
|
|
Easy-Consulting-react/src/Assets/about.svg
ADDED
|
|
Easy-Consulting-react/src/Assets/bg.png
ADDED
|
Git LFS Details
|
Easy-Consulting-react/src/Assets/contact.svg
ADDED
|
|
Easy-Consulting-react/src/Assets/footerbg.png
ADDED
|
Git LFS Details
|
Easy-Consulting-react/src/Assets/info.svg
ADDED
|
|
Easy-Consulting-react/src/Assets/log.svg
ADDED
|
|
Easy-Consulting-react/src/Assets/register.svg
ADDED
|
|
Easy-Consulting-react/src/Assets/s1.png
ADDED
|
Git LFS Details
|
Easy-Consulting-react/src/Assets/s2.png
ADDED
|
Git LFS Details
|