-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathprofile.html
258 lines (214 loc) · 7.56 KB
/
profile.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AgroPulse℠</title>
<link rel="icon" type="image/png" href="assets/images/favicon.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
::-moz-selection { /* Code for Firefox */
color: #F8FFF8;
background: #4CAF50;
}
::selection {
color: #F8FFF8;
background: #4CAF50;
}
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #F8FFF8;
}
header {
background-color: #45a049;
color: #fff;
padding: 10px;
display: flex;
justify-content: space-between;
align-items: center;
}
#navbar-left {
display: flex;
align-items: center;
}
#navbar-left h1 {
margin: 0;
}
#navbar-right {
display: flex;
align-items: center;
}
#user-profile, #notifications {
background-color: transparent;
border: none;
cursor: pointer;
margin-left: 20px;
color: #fff;
font-size: 18px;
}
#dashboard-container {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
padding: 20px;
}
h2 {
color: #45a049;
}
p {
color: #666;
}
#pageHeader {
font-family: "Times New Roman", Times, serif;
letter-spacing: .5px;
font-weight: bold;
text-align: center;
margin: 10px;
font-size: 5vh;
}
#profile-picture {
display: flex;
justify-content: center;
align-items: center;
margin: 20px;
}
.circle {
width: 150px;
height: 150px;
border-radius: 50%;
overflow: hidden;
position: relative;
}
.circle img {
width: 100%;
height: auto;
border: 2px solid #45a049; /* Adjust the border color as needed */
border-radius: 50%;
}
#profile-form {
padding: 20px;
}
#profile-form label {
font-weight: bold;
margin-bottom: 5px;
display: block;
float: left; /* Adjust the label alignment */
width: 30%; /* Adjust the label width */
text-align: right; /* Align the labels to the right */
margin-right: 2%; /* Add some spacing between labels and fields */
}
#profile-form input,
#profile-form select {
width: 65%; /* Adjust the field width */
padding: 8px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
float: left; /* Align the fields to the left */
}
#profile-form:after {
content: "";
display: table;
clear: both;
}
#logout-button-container {
text-align: center; /* Center the button */
margin-top: 20px; /* Adjust the margin as needed */
}
#logout-button {
background-color: #45a049;
color: #fff;
border: none;
padding: 10px 15px;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s;
}
#logout-button:hover {
background-color: #4CAF50;
}
/* Media queries for responsiveness */
@media only screen and (max-width: 768px) {
#profile-form {
grid-template-columns: repeat(2, 1fr); /* Change to single column layout on smaller screens */
padding: 20px 10px 15px;
}
}
</style>
</head>
<body>
<header>
<div id="navbar-left">
<h1>AgroPulse℠</h1>
</div>
<div id="navbar-right">
<a href="setting.html"><button id="user-profile"><i class="fas fa-gear"></i></button></a>
<a href="#"><button id="notifications"><i class="fas fa-bell"></i></button></a>
<a href="index.html"><button id="notifications"><i class="fas fa-home"></i></button></a>
</div>
</header>
<h2 id="pageHeader">Profile</h2>
<!-- Profile picture -->
<div id="profile-picture">
<div class="circle">
<img src="assets/images/favicon.png" alt="Profile Picture">
</div>
</div>
<!-- Profile form -->
<form id="profile-form">
<label for="name">Name:</label>
<input type="text" id="name" name="name" placeholder="Enter your name" required>
<label for="phone-number">Phone Number:</label>
<input type="tel" id="phone-number" name="phone-number" placeholder="Enter your phone number" required>
<label for="aadhaar-number">Aadhaar Number:</label>
<input type="text" id="aadhaar-number" name="aadhaar-number" placeholder="Enter Aadhaar number" required>
<label for="region">Region:</label>
<input type="text" id="region" name="region" placeholder="Enter your region" required>
<label for="crop-type">Crop Types:</label>
<select id="crop-type" name="crop-type" required>
<option value="">Select Crop Type</option>
<option value="Wheat">Wheat</option>
<option value="Rice">Rice</option>
<!-- Add more options as needed -->
</select>
<label for="crop-name">Crop Names:</label>
<select id="crop-name" name="crop-name" required>
<option value="">Select Crop Name</option>
<!-- Options will be dynamically populated based on the selected Crop Type -->
</select>
<label for="farm-parameters">Farm Parameters:</label>
<input type="text" id="farm-parameters" name="farm-parameters" placeholder="Enter farm parameters" required>
<label for="preferred-tenure">Preferred Tenure:</label>
<select id="preferred-tenure" name="preferred-tenure" required>
<option value="">Select Preferred Tenure</option>
<option value="1 Year">1 Year</option>
<option value="2 Years">2 Years</option>
<!-- Add more options as needed -->
</select>
</form>
<!-- Logout button container -->
<div id="logout-button-container">
<button id="logout-button" onclick="logout()">Log Out</button>
</div>
<!-- Disable Right Click -->
<script>
document.addEventListener('contextmenu', function (e) {
e.preventDefault();
});
function logout() {
window.location.href = 'login.html';
alert('Logout button clicked. Add your logout logic.');
}
</script>
</body>
</html>
<!-- Literature Survey
// Ref no. | Author | Title | Outcome | Limitations |
// [1] | author name 1 , Et. al. [Year] | ... | ... | ... |
// [2]
springer, elsewhere -->