-
Notifications
You must be signed in to change notification settings - Fork 0
/
MallCustomerTypeFinder.html
89 lines (89 loc) · 2.71 KB
/
MallCustomerTypeFinder.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mall Customer Type Finder</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
background-color: #f4f4f4;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
h1 {
font-size: 3em;
color: #333;
text-align: center;
}
#customerForm {
background: white;
padding: 2em;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: center;
}
.form-group {
display: flex;
align-items: center;
margin-bottom: 1.5em;
}
label {
font-size: 1.2em;
margin-right: 1em;
text-transform: uppercase;
width: 150px; /* Adjust width as needed */
text-align: right;
}
input[type="number"] {
font-size: 1.2em;
padding: 0.5em;
border: 1px solid #ccc;
border-radius: 4px;
width: 100%;
max-width: 300px;
box-sizing: border-box;
}
button {
font-size: 1.2em;
padding: 0.5em 1em;
border: none;
border-radius: 4px;
background-color: #007BFF;
color: white;
cursor: pointer;
transition: background-color 0.3s ease;
margin: 0.5em;
}
button:hover {
background-color: #0056b3;
}
</style>
<script>
function showAlert(event) {
event.preventDefault(); // Prevent form submission
alert("Your customer type may be:");
}
</script>
</head>
<body>
<form id="customerForm" onsubmit="showAlert(event)">
<h1>Mall Customer Type Finder</h1>
<div class="form-group">
<label for="incomeInput">Annual Income:</label>
<input type="number" id="incomeInput" name="income" required>
</div>
<div class="form-group">
<label for="scoreInput">Spending Score:</label>
<input type="number" id="scoreInput" name="score" required>
</div>
<button type="submit">Submit</button>
</form>
</body>
</html>