-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (54 loc) · 1.87 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Card</title>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400&display=swap" rel="stylesheet">
</head>
<body>
<div class="card">
<div class="card-front">
<div class="card-header">
<div class="sim">
<img src="icons8-sim-kartenchip-40.png" alt="">
</div>
<div class="logo">
<img src="Visa.png" alt="">
</div>
</div>
<div class="card-body">
<pre> 1234 5678 9012 3456</pre>
</div>
<div class="card-footer">
<div class="user-name">
<div class="title">card holder</div>
<div class="name">Ak Moorthi</div>
</div>
<div class="date">
<div class="title">expires</div>
<div class="exp-date">09/15</div>
</div>
</div>
</div>
<div class="card-back">
<div class="card-back-title">For customer service , call +91-1234567890</div>
<div class="card-back-header">
</div>
<div class="card-back-body">
<div class="bar"></div>
<p>1234</p>
</div>
<div class="card-back-footer">
<p>Lorem ipsum dolor Lorem ipsum, dolor sit amet consectetur adipisicing elit. Vel, eum. sit amet consectetur adipisicing elit. Tempore, ut?</p>
</div>
</div>
</div>
<script>
let card=document.querySelector(".card");
card.addEventListener("click",()=>card.classList.toggle("flip"));
</script>
</body>
</html>