Skip to content

Commit

Permalink
adding card visualization demo on card_visual.html https://github.com…
Browse files Browse the repository at this point in the history
  • Loading branch information
ackuser committed Apr 11, 2015
1 parent 609400e commit ac37150
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .bowerrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"json": "bower.json",
"directory": "components"
"directory": "bower-omponents"
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ build/Release
# Deployed apps should consider commenting this line out:
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
node_modules
bower_components
components
44 changes: 44 additions & 0 deletions sample/card_visual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html>
<head>
<title>Card &ndash; the better way to collect credit cards</title>
<meta name="viewport" content="initial-scale=1">
</head>
<body>
<style>
.demo-container {
width: 100%;
max-width: 350px;
margin: 50px auto;
}
form {
margin: 30px;
}
input {
width: 200px;
margin: 10px auto;
display: block;
}
</style>
<div class="demo-container">
<div class="card-wrapper"></div>

<div class="form-container active">
<form action="">
<input placeholder="Card number" type="text" name="number">
<input placeholder="Full name" type="text" name="name">
<input placeholder="MM/YY" type="text" name="expiry">
<input placeholder="CVC" type="text" name="cvc">
</form>
</div>
</div>

<script src="../node_modules/card/lib/js/card.js"></script>
<script>
new Card({
form: document.querySelector('form'),
container: '.card-wrapper'
});
</script>
</body>
</html>

0 comments on commit ac37150

Please sign in to comment.