-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (99 loc) · 4.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Frontend Mentor | Interactive card details form</title>
<style>
.attribution {
font-size: 11px;
text-align: center;
position: absolute;
bottom: 5%;
left: 50%;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
</style>
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/visa.css">
</head>
<body>
<div class="container">
<!-- Start Side Section -->
<div class="side">
<div class="content">
<div class="front-card">
<div class="card-content">
<svg width="84" height="47" fill="none" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="23.478" cy="23.5" rx="23.478" ry="23.5" fill="#fff" />
<path
d="M83.5 23.5c0 5.565-4.507 10.075-10.065 10.075-5.559 0-10.065-4.51-10.065-10.075 0-5.565 4.506-10.075 10.065-10.075 5.558 0 10.065 4.51 10.065 10.075Z"
stroke="#fff" />
</svg>
<img src="images/bg-card-front.png" alt="">
<p class="num-card"><span class="num-card-1">0000</span> <span class="num-card-2">0000</span> <span class="num-card-3">0000</span> <span class="num-card-4">0000</span></p>
<p class="holder-name">Your Name</p>
<span class="exp-date"><span class="month">00</span>/<span class="year">00</span></span>
</div>
</div>
<div class="back-card">
<div class="card-content">
<p class="cvc">000</p>
<img src="images/bg-card-back.png" alt="">
</div>
</div>
</div>
</div>
<!-- End Side Section -->
<!-- Start Content -->
<div class="content">
<form>
<div class="name">
<label for="name">cardholder name</label><br>
<input type="text" name="name" id="name" placeholder="e.g. Osama Eid">
<p class="nameErrMsg">Wrong name, enter a valid name</p>
<p class="nameBlankErrMsg">Can't be blank</p>
</div>
<br>
<div class="num">
<label for="num">card number</label><br>
<input type="text" name="num" id="num" minlength="16" maxlength="16" placeholder="e.g. 1234567891230000">
<p class="numErrMsg">Wrong format, numbers only</p>
<p class="numBlankErrMsg">Can't be blank</p>
</div>
<br>
<div class="foot">
<div class="date">
<label for="date">exp. date (mm/yy)</label><br>
<input type="text" name="mm" id="date" placeholder="MM" maxlength="2">
<p class="monthErrMsg">Wrong Month</p>
<input type="text" name="yy" id="date" placeholder="YY" minlength="2" maxlength="2">
<p class="yearErrMsg">Wrong Year</p>
<p class="monthAndYearErrMsg">Wrong Month & Year</p>
<p class="dateBlankErrMsg">Can't be blank</p>
</div>
<div class="cvc">
<label for="cvc">cvc</label>
<input type="text" name="cvc" id="cvc" placeholder="e.g. 123" minlength="3" maxlength="3">
<p class="cvcBlankErrMsg">Can't be blank</p>
<p class="cvcErrMsg">Wrong format, numbers only</p>
<br>
</div>
</div>
<br>
<button type="submit">Confirm</button>
</form>
</div>
<!-- End Content -->
<!-- <div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="mailto: [email protected]">Osama Eid</a>.
</div> -->
<!-- </div> -->
<script src="js/visa.js"></script>
</body>
</html>