-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (75 loc) · 2.84 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Local Vendor App</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<link rel="stylesheet" href="styles.css" />
</head>
<style>
.send-bargain-btn {
display: block;
margin: 20px auto;
padding: 10px 20px;
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
</style>
<body>
<nav>
<div class="logo">
<img src="ourlogo.png" alt="Logo" />
</div>
<ul class="nav-links">
<li><a href="#">Home</a></li>
<li><a href="#">List</a></li>
<li><a href="login.html">Vendor</a></li>
<li><a href="login.html">Login</a></li>
</ul>
</nav>
<section class="banner">
<h1 class="banner-text">Close to <span class="red-text">Home,</span><br>Your <span class="green-text">Grocery needs</span><br>Never alone!</h1>
</section>
<div class="categories-container">
<div class="category fruits" >
<h2>Fruits</h2>
<div class="range-buttons">
<button class="range-btn" onclick="getCategoryVendors('Fruits', 5)">Under 5km</button>
<button class="range-btn" onclick="getCategoryVendors('Fruits', 10)">Under 10km</button>
<button class="range-btn" onclick="getCategoryVendors('Fruits', 20)">Under 20km</button>
</div>
</div>
<div class="category snacks">
<h2>Snacks</h2>
<div class="range-buttons">
<button class="range-btn" onclick="getCategoryVendors('Snacks', 5)">Under 5km</button>
<button class="range-btn" onclick="getCategoryVendors('Snacks', 10)">Under 10km</button>
<button class="range-btn" onclick="getCategoryVendors('Snacks', 20)">Under 20km</button>
</div>
</div>
<div class="category veggies">
<h2>Veggies</h2>
<div class="range-buttons">
<button class="range-btn" onclick="getCategoryVendors('Veggies', 5)">Under 5km</button>
<button class="range-btn" onclick="getCategoryVendors('Veggies', 10)">Under 10km</button>
<button class="range-btn" onclick="getCategoryVendors('Veggies', 20)">Under 20km</button>
</div>
</div>
</div>
<div id="map"></div>
<button class="send-bargain-btn" onclick="sendBargainRequest()">Send Bargain Request</button>
<div class="benefits-carousel">
<div class="benefits-slides">
<div class="benefits-slide">Supporting local vendors promotes economic growth</div>
<div class="benefits-slide">Fresh and high-quality products directly from local</div>
</div>
</div>
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script src="script.js"></script>
</body>
</html>