-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
110 lines (107 loc) · 3.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<title>Frontend Mentor | Interactive card details form</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main>
<div id="card-background">
<div class="card card-front">
<img src="./images/card-logo.svg" alt="card-logo"/>
<h1 id="card-number">0000 0000 0000 0000</h1>
<div class="flex-row">
<span id="holder-name-text">Jane Appleseed</span>
<span id="exp-date">00/00</span>
</div>
</div>
<div class="card card-back">
<div id="cvc-container">
<span id="cvc-text">000</span>
</div>
</div>
</div>
<div id="form-container">
<form method="get" id="card-form" class="">
<div class="input-container">
<label class="uppercase" for="holder-name-input"
>Cardholder Name</label
>
<input
class=""
id="holder-name-input"
placeholder="e.g. Jane Appleseed"
type="text"
/>
<span id="holder-error" class="error"></span>
</div>
<div class="input-container">
<label class="uppercase" for="card-number-input">Card Number</label>
<input
class=""
id="card-number-input"
type="text"
inputmode="number"
placeholder="e.g. 1234 5678 9123 0000"
/>
<span id="number-error" class="error"></span>
</div>
<div class="flex-row input-container">
<div id="exp-date">
<label class="uppercase" for="date">Exp. Date (MM/YY)</label>
<div class="flex-row" id="date">
<input
class="uppercase"
type="text"
maxlength="2"
placeholder="MM"
name="month"
id="month"
/>
<input
class=""
type="text"
maxlength="2"
placeholder="YY"
name="year"
id="year"
/>
</div>
<span id="date-error" class="error"></span>
</div>
<div>
<label class="uppercase" for="cvc">CVC</label>
<input
class=""
type="text"
name=""
id="cvc"
placeholder="e.g. 123"
/>
<span id="cvc-error" class="error"></span>
</div>
</div>
<button type="submit" id="confirm-btn">Confirm</button>
</form>
<div id="success-dialog" class="hidden">
<img src="./images/icon-complete.svg" alt="icon"/>
<h2 class="uppercase" id="thanks">Thank you!</h2>
<span class="message">We've added your card details</span>
<button id="continue-btn">Continue</button>
</div>
</div>
</main>
<footer class="attribution">
Coded by <a href="https://github.com/SartHak-0-Sach" target="_blank">Sarthak Sachdev</a>.
</footer>
<script src="./script.js"></script>
</body>
</html>