-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (61 loc) · 2.44 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<title>Frontend Mentor | Interactive card details form</title>
<link rel="stylesheet" type="text/css" href="style.css">
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
</style>
</head>
<body>
<main class="flex">
<div class="card-front">
<img src="images/card-logo.svg" alt="logo">
<p class="card-num">0000 0000 0000 0000</p>
<div class="card-details">
<p class="card-name">Jane Appleseed</p>
<p class="card-date">00/00</p>
</div>
</div>
<div class="card-back">
<p>000</p>
</div>
<form>
<label for="card-name">CARDHOLDER NAME</label><br>
<input type="text" id="card-name" name="card-holder-name" placeholder="e.g. Jane Appleseed"><br>
<p></p>
<label for="card-no">CARD NUMBER</label><br>
<input type="text" id="card-no" name="card-no" placeholder="e.g. 1234 5678 9123 0000" maxlength="19"><br>
<p></p>
<div>
<label for="exp-mm">EXP. DATE (MM/YY)</label>
<label for="card-cvc">CVC</label>
<div class="exp-date">
<input type="text" id="exp-mm" name="exp-mm" placeholder="MM" maxlength="2">
<input type="text" id="exp-yy" name="exp-yy" placeholder="YY" maxlength="2">
</div>
<input type="text" id="card-cvc" name="card-cvc" placeholder="e.g. 123" maxlength="3"><br>
<p></p>
<p></p>
</div>
<input type="submit" id="submit" value="Confirm" class="btn">
</form>
<div class="success hidden">
<img src="images/icon-complete.svg" alt="Complete">
<p>THANK YOU!</p>
<p>We've added your card details</p>
<button class="btn">Continue</button>
</div>
</main>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://www.frontendmentor.io/profile/ak47sc" target="_blank">Akash H</a>.
</div>
<script src="script.js"></script>
</body>
</html>