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 #14

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
201 changes: 126 additions & 75 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,84 +1,135 @@
<div class="checkout">
<div class="credit-card-box">
<div class="flip">
<!-- Front 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" width="47.834px" height="47.834px" viewBox="0 0 47.834 47.834">
<!-- SVG content -->
</svg>
</div>
<div class="number">XXXX XXXX XXXX XXXX</div>
<div class="card-holder">
<label for="card-holder">Card holder</label>
<div id="display-card-holder">John Doe</div>
</div>
<div class="card-expiration-date">
<label for="card-expiration-month">Expires</label>
<div id="display-expiration">MM/YY</div>
</div>
</div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Checkout Page</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>

<!--
Follow me on
Dribbble: https://dribbble.com/supahfunk
Twitter: https://twitter.com/supahfunk
Codepen: https://codepen.io/supah/

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

<!-- Back of the Card -->
<div class="back">
<div class="strip"></div>
<div class="ccv">
<label for="ccv">CCV</label>
<div id="display-ccv">XXX</div>
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">
<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;">
<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
c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01
c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z
M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228
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"/>
</g>
</g>
</svg>
</div>
<div class="number"></div>
<div class="card-holder">
<label>Card holder</label>
<div></div>
</div>
<div class="card-expiration-date">
<label>Expires</label>
<div></div>
</div>
</div>
<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;">
<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
c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01
c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z
M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228
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"/>
</g>
</g>
</svg>
</div>
<div class="ccv">
<label>CCV</label>
<input type="number" id="ccv" class="input-ccv" maxlength="3" />
</div>
</div>
</div>
</div>
</div>
</div>

<!-- Form for card details -->
<form class="form" autocomplete="off" novalidate>
<fieldset>
<label for="card-number">Card Number</label>
<input type="text" id="card-number" class="input-cart-number" maxlength="4" placeholder="XXXX" />
<input type="text" id="card-number-1" class="input-cart-number" maxlength="4" placeholder="XXXX" />
<input type="text" id="card-number-2" class="input-cart-number" maxlength="4" placeholder="XXXX" />
<input type="text" id="card-number-3" class="input-cart-number" maxlength="4" placeholder="XXXX" />
</fieldset>
<div class="form">
<h2>Checkout</h2>
<form id="checkout-form">
<label for="card-number">Card Number</label>
<input type="text" id="card-number" class="input-cart-number" maxlength="19" />

<fieldset>
<label for="card-holder">Card holder</label>
<input type="text" id="card-holder" placeholder="Card Holder Name" required />
</fieldset>
<label for="card-holder">Card Holder</label>
<input type="text" id="card-holder" class="input-cart-holder" />

<fieldset class="fieldset-expiration">
<label for="card-expiration-month">Expiration date</label>
<div class="select">
<select id="card-expiration-month" required>
<option value="" disabled selected>MM</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
<label for="expiration-date">Expiration Date</label>
<select id="expiration-month" class="input-expiration">
<option value="">Month</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>

<select id="card-expiration-year" required>
<option value="" disabled selected>YY</option>
<option value="23">2023</option>
<option value="24">2024</option>
<option value="25">2025</option>
</select>
</div>
</fieldset>
<select id="expiration-year" class="input-expiration">
<option value="">Year</option>
<option value="2024">2024</option>
<option value="2025">2025</option>
<option value="2026">2026</option>
<option value="2027">2027</option>
<option value="2028">2028</option>
</select>

<fieldset>
<label for="ccv">CCV</label>
<input type="text" id="ccv" maxlength="3" placeholder="XXX" required />
</fieldset>

<button type="submit" class="submit-button">Submit Payment</button>
</form>
<button type="submit" class="btn">Pay Now</button>
</form>
</div>
</div>

<script src="script.js"></script>
</body>
</html>