-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.html
155 lines (155 loc) · 4.9 KB
/
post.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JustforFun - Publish a Ride</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
<style>
body, html {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #f0f7f0;
}
.header {
background-color: #4CAF50;
color: white;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 24px;
font-weight: bold;
}
.nav-links {
display: flex;
}
.nav-links a {
color: white;
text-decoration: none;
margin-left: 20px;
}
.main-content {
max-width: 600px;
margin: 15px auto;
background-color: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 {
color: #4CAF50;
text-align: center;
margin-bottom: 30px;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
color: #333;
}
.input-wrapper {
position: relative;
}
.input-wrapper i {
position: absolute;
left: 10px;
top: 50%;
transform: translateY(-50%);
color: #4CAF50;
}
input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"] {
width: 100%;
padding: 10px 10px 10px 35px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 16px;
box-sizing: border-box;
}
input[type="number"] {
appearance: textfield;
}
button {
background-color: #4CAF50;
color: white;
border: none;
padding: 12px 20px;
width: 100%;
font-size: 18px;
border-radius: 4px;
cursor: pointer;
}
button i {
margin-right: 10px;
}
.footer {
background-color: #4CAF50;
color: white;
text-align: center;
padding: 15px;
position: fixed;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<div class="main-content">
<h1>Publish a Ride</h1>
<form id="rideForm">
<div class="form-group">
<label for="from">From</label>
<div class="input-wrapper">
<i class="fas fa-map-marker-alt"></i>
<input type="text" id="from" name="from" placeholder="Enter departure city" required>
</div>
</div>
<div class="form-group">
<label for="to">To</label>
<div class="input-wrapper">
<i class="fas fa-map-pin"></i>
<input type="text" id="to" name="to" placeholder="Enter destination city" required>
</div>
</div>
<div class="form-group">
<label for="seats">Available seats</label>
<div class="input-wrapper">
<i class="fas fa-users"></i>
<input type="number" id="seats" name="seats" placeholder="Number of seats" min="1" required>
</div>
</div>
<div class="form-group">
<label for="price">Price</label>
<div class="input-wrapper">
<i class="fas fa-dollar-sign"></i>
<input type="number" id="price" name="price" placeholder="Price per seat" min="0" step="0.01" required>
</div>
</div>
<div class="form-group">
<label for="departureDate">Departure Date</label>
<div class="input-wrapper">
<i class="fas fa-calendar-alt"></i>
<input type="date" id="departureDate" name="departureDate" required>
</div>
</div>
<div class="form-group">
<label for="departureTime">Departure Time</label>
<div class="input-wrapper">
<i class="fas fa-clock"></i>
<input type="time" id="departureTime" name="departureTime" required>
</div>
</div>
<button type="submit"><i class="fas fa-paper-plane"></i> Publish Ride</button>
</form>
</div>
<script src="post.js"></script>
</body>
</html>