Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Enki #53

Open
wants to merge 67 commits into
base: card-stateful-componet
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
f63d178
Update README.md
jasminmif Oct 29, 2019
51562d9
Update README.md
jasminmif Oct 29, 2019
e6d2b82
Merge pull request #1 from jasminmif/card-stateful-componet
jasminmif Oct 31, 2019
551ffbd
Add CSS transition to Card Holder and Expiration Date
jasminmif Nov 4, 2019
ab71fbd
Fix the issue with Expires Transition on Month Update
jasminmif Nov 4, 2019
1ffe8e1
Card Fade Up animation improvement
jasminmif Nov 5, 2019
b6ce3b3
Mask Credit Card Number
jasminmif Nov 6, 2019
29fc72c
Readme updates
jasminmif Nov 9, 2019
88f5e95
Libraries used
jasminmif Nov 9, 2019
ce09c7d
Links bullets
jasminmif Nov 9, 2019
e8be975
Readme improvements
jasminmif Nov 9, 2019
8570453
Add Images and gif display
jasminmif Nov 9, 2019
fda7d66
Credit Card CVV background random
jasminmif Nov 9, 2019
2dc7afd
Credit Card CVV background random
jasminmif Nov 9, 2019
cff00e5
Merge branch 'master' of github.com:jasminmif/react-interactive-paycard
jasminmif Nov 9, 2019
ad6e753
Refactor cardType
Nov 10, 2019
9a5b9c9
Merge pull request #2 from zachkirsch/refactor-card-type
jasminmif Nov 10, 2019
71eda56
[ImgBot] Optimize images
ImgBotApp Nov 10, 2019
6c3cb36
Fix ESLint warnings
MichaelDeBoey Nov 10, 2019
a7e19cc
Merge pull request #3 from MichaelDeBoey/imgbot
jasminmif Nov 10, 2019
c127d67
Merge pull request #4 from MichaelDeBoey/fix-eslint
jasminmif Nov 10, 2019
69821d5
Create LICENSE
jasminmif Nov 11, 2019
3983dc3
Merge pull request #7 from jasminmif/add-license-1
jasminmif Nov 11, 2019
1171710
Fix issue where modifying card number anywhere
timiscoding Nov 13, 2019
537fd89
Fix clicking card elements input focus
timiscoding Nov 13, 2019
64ad2a1
Merge pull request #9 from timiscoding/fix-card-num-cursor-jump
jasminmif Nov 13, 2019
1a68422
Adding npm install command (can be helpful for beginners)
StefanSelfTaught Nov 13, 2019
9abda08
Merge pull request #10 from StefanSelfTaught/Readme
jasminmif Nov 14, 2019
cdb4bce
Update index.js
jobintweets Nov 15, 2019
8cbe924
Change export method and move components into index.js files
jetonk Nov 15, 2019
94adcec
Merge pull request #17 from jetonk/improve-exports
jasminmif Nov 15, 2019
06de3b5
Merge pull request #15 from jobintweets/patch-1
jasminmif Nov 15, 2019
a502ca6
Zoom in-out animation on CVV field
jasminmif Dec 23, 2019
94c347a
Add Sandbox Url to readme
jasminmif Dec 25, 2019
e90bfad
Merge pull request #24 from jasminmif/stars-animation
jasminmif Dec 25, 2019
abd1def
Update README.md
jasminmif Dec 25, 2019
ba861e5
Code Refactor
jasminmif Apr 20, 2020
ab63727
Convert from Class to Functional components and code improvements
jasminmif Apr 20, 2020
33fb974
Card Component refactor to functional component and use hooks
jasminmif Apr 25, 2020
1ce0431
Move out of state constants like Month and Years used in dropdowns
jasminmif Apr 26, 2020
5af6aab
Bubble up card references to Parent component
jasminmif Apr 26, 2020
9c2f337
Remove card holder split to array variable
jasminmif Apr 26, 2020
e1ebc64
Merge pull request #25 from jasminmif/functional-components
jasminmif Apr 26, 2020
b830d50
Remove unececary useCallback
jasminmif Apr 26, 2020
b15c7af
Merge branch 'master' of github.com:jasminmif/react-interactive-paycard
jasminmif Apr 26, 2020
df1695d
Remove unused dependency array on callback func
jasminmif Apr 26, 2020
c12c7a6
diners club card-type added
May 26, 2020
4b1f1f3
Merge pull request #27 from vilmacio22/feature/card-type-diners
jasminmif May 28, 2020
d029fd2
Bump node-sass from 4.13.0 to 7.0.0
dependabot[bot] Feb 11, 2022
6a8b72d
Bump handlebars from 4.5.0 to 4.7.7
dependabot[bot] Feb 11, 2022
ee29998
Bump ajv from 6.10.2 to 6.12.6
dependabot[bot] Feb 14, 2022
56a2dcf
Bump follow-redirects from 1.9.0 to 1.14.8
dependabot[bot] Feb 14, 2022
6ad51cd
Merge pull request #35 from jasminmif/dependabot/npm_and_yarn/follow-…
jasminmif Feb 14, 2022
fc6a90b
Bump ws from 5.2.2 to 5.2.3
dependabot[bot] Feb 14, 2022
86de38b
Bump tmpl from 1.0.4 to 1.0.5
dependabot[bot] Feb 14, 2022
e168450
Bump merge-deep from 3.0.2 to 3.0.3
dependabot[bot] Feb 14, 2022
1cfb864
Bump url-parse from 1.4.7 to 1.5.10
dependabot[bot] Feb 27, 2022
fd37d0c
Merge pull request #40 from jasminmif/dependabot/npm_and_yarn/url-par…
jasminmif Apr 6, 2022
22ba276
Merge pull request #37 from jasminmif/dependabot/npm_and_yarn/tmpl-1.0.5
jasminmif Apr 6, 2022
eebcdf0
Merge pull request #38 from jasminmif/dependabot/npm_and_yarn/merge-d…
jasminmif Apr 6, 2022
5cf7774
Bump lodash from 4.17.15 to 4.17.21
dependabot[bot] Apr 6, 2022
ec8d98b
Merge pull request #36 from jasminmif/dependabot/npm_and_yarn/ws-5.2.3
jasminmif Apr 6, 2022
cb0a03f
Merge pull request #41 from jasminmif/dependabot/npm_and_yarn/lodash-…
jasminmif Apr 6, 2022
bbf512d
Merge pull request #34 from jasminmif/dependabot/npm_and_yarn/ajv-6.12.6
jasminmif Apr 6, 2022
72a0aee
Merge pull request #33 from jasminmif/dependabot/npm_and_yarn/handleb…
jasminmif Apr 6, 2022
473081e
Merge pull request #32 from jasminmif/dependabot/npm_and_yarn/node-sa…
jasminmif Apr 6, 2022
50bbc5b
Create Enki
Anunakiler Nov 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"prettier.singleQuote": true,
"javascript.preferences.quoteStyle": "single",
"prettier.tabWidth": 4
}
1 change: 1 addition & 0 deletions Enki
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enki
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 jasminmif

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
69 changes: 21 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
# react-interactive-paycard

Inspired from a vue project [vue-interactive-paycard](https://github.com/muhammederdem/vue-interactive-paycard), I decided to recreate the same on React as a part time fun project.
I did some minor changes on the animations and optimizations on the code.

A fantastic credit card form with smooth and sweet micro-interactions. Includes number formatting, validation and automatic card type detection. Built with reactjs and also fully responsive

### Demo
[https://codesandbox.io/s/github/jasminmif/react-interactive-paycard/tree/master/?fontsize=14&hidenavigation=1&theme=dark](https://codesandbox.io/s/github/jasminmif/react-interactive-paycard/tree/master/?fontsize=14&hidenavigation=1&theme=dark)
![](demo.gif)


## Libraries used

- [react](https://github.com/facebook/react)
- [react-transition-group](https://github.com/reactjs/react-transition-group)

## Available Scripts

In the project directory, you can run:

### `npm install`

Installs all the required packages.
You must run this command before start the development mode.

### `npm start`

Runs the app in the development mode.<br />
Expand All @@ -12,57 +32,10 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.<br />
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

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.

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.

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.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `npm run build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
Binary file added demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading