-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (104 loc) · 3.9 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
<!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="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500&display=swap"
rel="stylesheet"
/>
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png" />
<link rel="stylesheet" href="css/style.css" />
<title>Frontend Mentor | Interactive card details form</title>
<script type="module" defer src="./js/main.js"></script>
</head>
<body>
<section class="card-detail">
<div class="card-detail_container">
<div class="cards">
<div>
<div class="back-card">
<p id="cvc">000</p>
</div>
<div class="front-card">
<img class="logo-card" src="images/card-logo.svg" alt="" />
<p id="card-number">0000 0000 0000 0000</p>
<div>
<p id="card-holder">Jane Appleseed</p>
<!-- <p id="card-date">00/00</p> -->
<p><span id="card-month">00</span>/<span id="card-year">00</span></p>
</div>
</div>
</div>
</div>
<div class="state_container">
<!-- state start -->
<div class="state-start">
<form action="" class="card-form" name="cardForm">
<div class="input-group">
<label for="name">Cardholder Name</label>
<input
type="text"
name="cardholderName"
id="name"
placeholder="e.g. Jane Appleseed"
maxlength="40"
/>
<p class="errorMessage"></p>
</div>
<div class="input-group">
<label for="card">Card Number</label>
<input
type="text"
name="cardNumber"
id="card"
placeholder="e.g. 1234 5678 9123 0000"
maxlength="19"
/>
<p class="errorMessage"></p>
</div>
<div>
<div class="input-group">
<label for="date-card">Exp. Date (MM/YY)</label>
<input
type="text"
name="expMonth"
id="date-card"
placeholder="MM"
maxlength="2"
/>
<input type="text" name="expYear" id="date-card" placeholder="YY" maxlength="2" />
<p class="errorMessage"></p>
</div>
<div class="input-group">
<label for="cvc">CVC</label>
<input type="text" name="cvc" id="cvc" placeholder="e.g. 123" maxlength="3" />
<p class="errorMessage"></p>
</div>
</div>
<input name="submit" type="submit" value="Confirm" />
</form>
</div>
<!-- Completed state start -->
<!-- thank you state -->
<div class="thank-you-state hidden">
<img src="images/icon-complete.svg" alt="" />
<p>Thank you!</p>
<p>We've added your card details</p>
<button id="continue">Continue</button>
</div>
<!-- Completed thank you state -->
</div>
</div>
<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/arn28" target="_blank">Arnold Balabarca</a>.
</div>
</section>
</body>
</html>