-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
128 lines (76 loc) · 3.35 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
125
126
127
128
<!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="sass/main.css">
<script defer src="app.js"></script>
<title>Frontend Mentor | Interactive card details form</title>
<!-- 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="container">
<div class="img-section">
<div class="card-dummy">
<img src="images/card-logo.svg" alt="avatar">
<div class="card-text">
<h1 id="dummy-card-number">0000 0000 0000 0000</h1>
<div class="name-exp">
<span id="dummy-card-name">Jane Appleseed</span>
<span id="dummy-card-exp"><span>00</span>/<span>00</span></span>
</div>
</div>
</div>
<div class="card-back">
<img src="images/bg-card-back.png" alt="card-back">
<p id="dummy-card-cvc">000</p>
</div>
</div>
<div class="form-section">
<div class="complete-state">
<img src="images/icon-complete.svg" alt="complete">
<h1>Thank you!</h1>
<p>We've added your card details </p>
<button type="button" class="btns" id="continue-btn">Continue</button>
</div>
<div class="form">
<div class="input-field">
<label>Cardholder Name</label>
<input type="text" placeholder="e.g. Jane Appleseed" id="inputFieldName" maxlength="30">
</div>
<div class="input-field">
<label>Card Number</label>
<input type="text" placeholder="e.g. 1234 5678 9123 0000" maxlength="19" id="inputFieldCardNumber">
</div>
<div class="small-input-fields">
<div class="input-field small">
<label>Exp. Date (MM/YY)</label>
<span>
<input type="number" placeholder="MM" min="1" max="12"maxlength="2" id="inputFieldMonth">
<input type="number" placeholder="YY" min="22" max="99" maxlength="2" id="inputFieldYear">
</span>
</div>
<div class="input-field small"><label>CVC</label>
<input type="number" placeholder="e.g. 123" maxlength="3" id="inputFieldCvc">
</div>
</div>
<button type="submit" id="confirm-btn" class="btns">Confirm</button>
</div>
</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.github.com/gautamjuyal">Gautam Juyal</a>.
</div>
</body>
</html>