-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
154 lines (138 loc) · 4.44 KB
/
popup.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html>
<head>
<title>Settings</title>
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f7f8fa;
color: #2c3e50;
padding: 1.5rem;
line-height: 1.4;
width: 320px;
margin: 0 auto;
font-size: 1rem; /* Increased font size */
overflow-x: hidden;
}
fieldset {
border: none;
padding: 1.5rem;
margin-bottom: 1rem;
border-radius: 5px;
background-color: #ffffff;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
legend {
font-weight: bold;
color: #2c3e50;
padding: 0 0.8rem;
font-size: 1.1rem; /* Increased font size */
}
label {
display: block;
margin-bottom: 0.7rem;
font-weight: 500;
color: #5c6f7f;
font-size: 1rem; /* Increased font size */
}
input[type="number"],
input[type="checkbox"] {
margin-top: 0.2rem;
}
input[type="number"] {
width: calc(100% - 1.5rem);
padding: 0.4rem 0.7rem;
border: 1px solid #e0e0e0;
border-radius: 4px;
font-size: 1rem; /* Increased font size */
color: #555;
transition: border-color 0.3s, box-shadow 0.3s;
}
input[type="number"]:focus {
border-color: #007BFF;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
input[type="checkbox"] {
margin-left: 0.5rem;
transform: scale(1.2);
}
p {
margin-bottom: 0.8rem;
font-size: 1rem; /* Increased font size */
color: #5c6f7f;
}
strong {
color: #2c3e50;
font-size: 1rem; /* Increased font size */
}
button {
display: block;
width: 100%;
padding: 0.6rem 0.8rem;
background-color: #007BFF;
color: #fff;
border: none;
border-radius: 4px;
font-size: 1rem; /* Increased font size */
cursor: pointer;
transition: background-color 0.3s, box-shadow 0.3s;
text-align: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
button:hover {
background-color: #0056b3;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
button:focus {
outline: none;
box-shadow: 0px 0px 4px #007BFF;
}
#feedbackMessage {
font-size: 1rem; /* Increased font size */
color: #5c6f7f;
}
</style>
</head>
<body>
<form id="settingsForm">
<fieldset>
<legend>Work Details</legend>
<label>
Monthly Income:
<input type="number" id="monthlyIncome" min="0" placeholder="e.g. 2500" required>
</label>
<label>
Weekly Workdays:
<input type="number" id="weeklyWorkdays" min="1" max="7" placeholder="1-7" required>
</label>
<label>
Daily Work Hours:
<input type="number" id="dailyWorkHours" min="1" max="24" placeholder="1-24" required>
</label>
<label>
Daily Commute (in minutes):
<input type="number" id="dailyCommuteMinutes" min="0" max="600" placeholder="e.g. 60" required>
</label>
<label>
Monthly Commute Cost:
<input type="number" id="monthlyCommuteCost" min="0" placeholder="e.g. 50" required>
</label>
<label>
Vacation Days:
<input type="number" id="vacationDays" min="0" max="200" placeholder="e.g. 20" required>
</label>
</fieldset>
<fieldset>
<legend>Extension Settings</legend>
<label>
Enable Extension:
<input type="checkbox" id="onOffSwitch">
</label>
</fieldset>
<p>You only have about <strong>487</strong> usable hours per month. Spend them wisely.</p>
<button type="submit" id="save">Save</button>
</form>
<p id="feedbackMessage" style="color: green;"></p>
</body>
</html>
<script src="popup.js"></script>