-
Notifications
You must be signed in to change notification settings - Fork 0
/
HomeScreen.html
112 lines (105 loc) · 4.66 KB
/
HomeScreen.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
<html>
<head>
<title>HomeScreen</title>
<link rel="stylesheet" href="CSS/homescreen.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
</head>
<body class="text-center" style="margin-top: 5%; background-color: #F5F6F9;">
<!--Net Banking-->
<div class="mx-auto card-container col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 col-xxl-12"
id="net_banking"
style="width: 500px; margin-top: 50px;"
onclick="navigate('Upi')"
onmouseover="onMouseHover('net_banking', '#F1BCBD')"
onmouseout="onMouseOut('net_banking')">
<div class="flex-container">
<div>
<div class="card-title-container" style="color: #F05454">
UPI
</div>
<div class="card-subtitle-container" style="color: #F05454">
Transcation
</div>
<div class="card-footer-container" style="color: #939393; font-weight: bold;">
Pay more using Net banking
</div>
</div>
<div style="width: 15%; ">
<img src="./debit-card.png" width="100%">
</div>
</div>
</div>
<!--Credit Card-->
<div class="mx-auto card-container col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 col-xxl-12"
id="credit_card"
style="width: 500px; margin-top: 20px;"
onclick="navigate('Credit')"
onmouseover="onMouseHover('credit_card', '#A7B7E0')"
onmouseout="onMouseOut('credit_card')">
<div class="flex-container">
<div>
<div class="card-title-container" style="color: #466DD2">
Credit
</div>
<div class="card-subtitle-container" style="color: #466DD2">
Card
</div>
<div class="card-footer-container" style="color: #939393; font-weight: bold;">
Pay more using Credit card
</div>
</div>
<div style="width: 15%; ">
<img src="./debit-card.png" width="100%">
</div>
</div>
</div>
<!--Debit Card-->
<div class="mx-auto card-container col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 col-xxl-12"
id="debit_card"
style="width: 500px; margin-top: 20px;"
onclick="navigate('Debit')"
onmouseover="onMouseHover('debit_card', '#ECC29C')"
onmouseout="onMouseOut('debit_card')">
<div class="flex-container">
<div>
<div class="card-title-container" style="color: #F48A28">
Debit
</div>
<div class="card-subtitle-container" style="color: #F48A28">
Card
</div>
<div class="card-footer-container" style="color: #939393; font-weight: bold;">
Pay more using Debit card
</div>
</div>
<div style="width: 15%; ">
<img src="./debit-card.png" width="100%">
</div>
</div>
</div>
</body>
</html>
<script>
function onMouseHover(card_id, color) {
document.getElementById(card_id).style.backgroundColor = color;
}
function onMouseOut(card_id) {
document.getElementById(card_id).style.backgroundColor = '#ECEDEF';
}
function navigate(screen) {
if (screen == "Debit") {
console.log("debit card selected.");
localStorage.setItem("screen", "Debit");
window.location.href = "CreditCardScreen.html";
} else if (screen == "Credit") {
console.log("credit card selected.");
localStorage.setItem("screen", "Credit");
window.location.href = "CreditCardScreen.html";
} else if (screen == "Upi") {
window.location.href = "UPIScreen.html";
}
}
//transform: scale(1.2);
</script>