-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
124 lines (117 loc) · 3.62 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!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"
/>
<link rel="stylesheet" href="styles.css" />
<title>Frontend Mentor | Interactive card details form</title>
</head>
<body>
<img
class="bg-img"
src="images/bg-main-desktop.png"
alt="background image for desktop view"
/>
<img
class="bg-img-xs"
src="images/bg-main-mobile.png"
alt="background image for mobile view"
/>
<div class="container">
<section class="card-display">
<div class="card-front">
<img
class="card-front-img"
src="images/bg-card-front.png"
alt="display of card front"
/>
<img
class="card-logo"
src="images/card-logo.svg"
alt="logo on the card"
/>
<p class="card-number-display">1234 5678 9123 0000</p>
<p class="cardholder-display">John Wick's Dog</p>
<p class="expiry-month-display">00</p>
<p class="expiry-divider-display">/</p>
<p class="expiry-year-display">0000</p>
</div>
<div class="card-back">
<img class="card-back-img" src="images/bg-card-back.png" alt="" />
<p class="cvc-display">000</p>
</div>
</section>
<section class="card-details">
<form id="myForm" action="/action_page.php" name="myForm">
<label for="cardholder-name"> CARDHOLDER NAME</label>
<input
id="cardholder-name"
class="cardholder-name"
type="text"
name="cardholder-name"
placeholder="John Wick's Dog"
oninput="inputName()"
/>
<p id="errorMsg"></p>
<label class="card-number" for="card-number"> CARD NUMBER</label>
<input
id="card-number"
class="card-number"
type="text"
name="card-number"
placeholder="1234 5678 9123 0000"
oninput="inputCardNum()"
/>
<p id="card-num-error"></p>
<div class="flex">
<label class="expiry-date" for="expiry-date">
EXP. DATE (MM/YYYY)<br />
<input
class="expiry"
type="text"
name="expiry-date"
placeholder="MM"
oninput="inputMM()"
/>
<input
class="expiry"
type="text"
name="expiry-date"
placeholder="YYYY"
oninput="inputYY()"
/>
<p id="expiry-error"></p>
</label>
<label class="cvc" for="cvc">
CVC<br />
<input
id="cvc"
class="cvc"
type="text"
name="cvc"
placeholder="123"
oninput="inputCvc()"
/>
<p id="error-cvc"></p>
</label>
</div>
<button id="submit">Confirm</button>
</form>
<div id="thank-you" class="thank-you hidden">
<img src="images/icon-complete.svg" alt="" />
<h2 id="thank-you-header">Thank You!</h2>
<p>We've added your card details</p>
<button id="continue">Continue</button>
</div>
</section>
</div>
<script src="script.js"></script>
</body>
</html>