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

Update index.html #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
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
68 changes: 39 additions & 29 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
<!--
Follow me on
Dribbble: https://dribbble.com/supahfunk
Twitter: https://twitter.com/supahfunk
Codepen: https://codepen.io/supah/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Credit Card Checkout</title>
<style>
/* Placeholder styles */
.checkout { width: 300px; margin: 0 auto; }
.credit-card-box { position: relative; width: 100%; height: 200px; }
.flip { perspective: 1000px; }
.front, .back { width: 100%; height: 100%; backface-visibility: hidden; position: absolute; top: 0; left: 0; }
.front { background: lightblue; }
.back { background: lightgray; transform: rotateY(180deg); }
.chip { width: 50px; height: 30px; background: gold; margin: 20px; }
.logo svg { width: 50px; height: 50px; }
.card-holder, .card-expiration-date { margin: 10px 0; }
</style>
</head>
<body>

This example is just for fun.
I realized it for the dailyui challenge
https://dailyui.co/

Fork it if you want, it's free, but I appreciate credits or a retweet

Enjoy :)
-->
<div class="checkout">
<div class="credit-card-box">
<div class="flip">
<!-- Front side of the card -->
<div class="front">
<div class="chip"></div>
<div class="logo">
<svg version="1.1" id="visa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="47.834px" height="47.834px" viewBox="0 0 47.834 47.834" style="enable-background:new 0 0 47.834 47.834;">
<svg version="1.1" id="visa" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
width="47.834px" height="47.834px" viewBox="0 0 47.834 47.834">
<g>
<g>
<path d="M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143
Expand All @@ -29,28 +37,27 @@
c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77
c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092
l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77
C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304
C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161
c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066
h-3.888L19.153,16.8z"/>
C33.126,23.546,34.163,24.783,34.146,26.404z"/>
</g>
</g>
</svg>
</div>
<div class="number"></div>
<div class="number">**** **** **** 1234</div>
<div class="card-holder">
<label for="card-holder">Card holder</label>
<div id="card-holder-display"></div>
<input type="text" id="card-holder" name="card-holder" value="John Doe">
</div>
<div class="card-expiration-date">
<label for="card-expiration-month">Expires</label>
<div id="card-expiration-display"></div>
<input type="text" id="card-expiration-month" name="card-expiration-month" value="12/24">
</div>
</div>

<!-- Back side of the card -->
<div class="back">
<div class="logo">
<svg version="1.1" id="visa" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="47.834px" height="47.834px" viewBox="0 0 47.834 47.834" style="enable-background:new 0 0 47.834 47.834;">
<svg version="1.1" id="visa" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
width="47.834px" height="47.834px" viewBox="0 0 47.834 47.834">
<g>
<g>
<path d="M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143
Expand All @@ -60,12 +67,15 @@
c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77
c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092
l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77
C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304
C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161
c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066
h-3.888L19.153,16.8z"/>
C33.126,23.546,34.163,24.783,34.146,26.404z"/>
</g>
</g>
</svg>
</div>
<
</div>
</div>
</div>
</div>

</body>
</html>