forked from anthonyl8/nest-finder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresultspage.html
195 lines (191 loc) · 8.99 KB
/
resultspage.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
<!DOCTYPE html>
<html>
<head>
<title>House</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400;500;600;700;800&family=Jersey+25&family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
<link rel= "stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Jersey+25&family=Michroma&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<header class="navbar">
<div class="navbar-logo">
<img src="icons/NestFinder.png" alt="NestFinder Logo">
</div>
<div class="navbar-icons">
<img src="icons/Bell.png" alt="Notification" class="navbar-icon">
<img src="icons/user-icon.png" alt="User Profile" class="navbar-icon">
</div>
</header>
<div class="search">
<input type="text" placeholder="Search or enter key words" class="search-bar">
<button class="search-button">Search</button>
</div>
<p class="sub-title">Filter settings</p>
<div class="filter-section">
<div class="dropdown">
<button id = "dropdown1" class="dropbtn" placeholder="Type"> --Number of Bedrooms-- <strong>v</strong></button>
<div class="dropdown-content">
<a href="#" data-value = ">1 bedroom">At least 1 bedroom</a>
<a href="#" data-value = ">2 bedrooms">At least 2 bedrooms</a>
<a href="#" data-value = ">3 bedrooms">At least 3 bedrooms</a>
</div>
</div>
<div class="dropdown">
<button id = "dropdown2" class="dropbtn" placeholder="Room Budget"> --Total Room Budget-- <strong>v</strong></button>
<div class="dropdown-content">
<a href="#" data-value = "<$2000">Less than $2000</a>
<a href="#" data-value = "<$2500">Less than $2500</a>
<a href="#" data-value = "<$3000">Less than $3000</a>
</div>
</div>
<div class="dropdown">
<button id = "dropdown3" class="dropbtn" placeholder="Distance from UBC"> --Distance from UBC-- <strong>v</strong></button>
<div class="dropdown-content">
<a href="#" data-value = "<0.5 km">Within 0.5 km</a>
<a href="#" data-value = "<1 km">Within 1 km</a>
<a href="#" data-value = "<1.5 km">Within 1.5 km</a>
<a href="#" data-value = "<2 km">Within 2 km</a>
<a href="#" data-value = "<2.5 km">Within 2.5 km</a>
</div>
</div>
</div>
<div class="results">
<a class="listing-link" href="housepage.html" target="_blank">
<div class="result-box">
<img class="result-img" src="images/result-img-1.png">
<div class="result-text">
<p class="result-heading">1 Bed 1 Bath - Apartment Round</p>
<p class="result-price">from <u><strong>$2,600</strong></u> a month</p>
<p class="result-distance">~1.3 km from UBC</p>
</div>
</div>
</a>
<a class="listing-link" href="housepage.html" target="_blank">
<div class="result-box">
<img class="result-img" src="images/result-img-2.png">
<div class="result-text">
<p class="result-heading">2 Bed/2 Bath Apartment</p>
<p class="result-price">from <u><strong>$4,100</strong></u> a month</p>
<p class="result-distance">~1.5 km from UBC</p>
</div>
</div>
</a>
<a class="listing-link" href="housepage.html" target="_blank">
<div class="result-box">
<img class="result-img" src="images/result-img-3.png">
<div class="result-text">
<p class="result-heading">1 Bed 1 Bath - Apartment</p>
<p class="result-price">from <u><strong>$2,200</strong> </u>a month</p>
<p class="result-distance">~0.5 km from UBC</p>
</div>
</div>
</a>
<a class="listing-link" href="housepage.html" target="_blank">
<div class="result-box">
<img class="result-img" src="images/result-img-4.jpeg">
<div class="result-text">
<p class="result-heading">2 Beds 2 Baths House</p>
<p class="result-price">from <u><strong>$3,200</strong> </u>a month</p>
<p class="result-distance">~0.5 km from UBC</p>
</div>
</div>
</a>
<a class="listing-link" href="housepage.html" target="_blank">
<div class="result-box">
<img class="result-img" src="images/result-img-5.jpeg">
<div class="result-text">
<p class="result-heading">1 Bed 1 Bath - House</p>
<p class="result-price">from <u><strong>$750</strong> </u>a month</p>
<p class="result-distance">~1.2 km from UBC</p>
</div>
</div>
</a>
<a class="listing-link" href="housepage.html" target="_blank">
<div class="result-box">
<img class="result-img" src="images/result-img-6.jpeg">
<div class="result-text">
<p class="result-heading">2 bed 2 bath</p>
<p class="result-price">from <u><strong>$3,400</strong> </u>a month</p>
<p class="result-distance">~1.4 km from UBC</p>
</div>
</div>
</a>
<a class="listing-link" href="housepage.html" target="_blank">
<div class="result-box">
<img class="result-img" src="images/result-img-7.jpeg">
<div class="result-text">
<p class="result-heading">Fully Furnished 2 Bedroom Upper Level Suite with Balconies</p>
<p class="result-price">from <u><strong>$5,995</strong> </u>a month</p>
<p class="result-distance">~1.5 km from UBC</p>
</div>
</div>
</a>
<a class="listing-link" href="housepage.html" target="_blank">
<div class="result-box">
<img class="result-img" src="images/result-img-8.jpeg">
<div class="result-text">
<p class="result-heading">1 Bedroom Suite with City Views and Hotel Amenities</p>
<p class="result-price">from <u><strong>$3,195</strong> </u>a month</p>
<p class="result-distance">~0.7 km from UBC</p>
</div>
</div>
</a>
<a class="listing-link" href="housepage.html" target="_blank">
<div class="result-box">
<img class="result-img" src="images/result-img-9.jpeg">
<div class="result-text">
<p class="result-heading">Private room for rent</p>
<p class="result-price">from <u><strong>$750</strong> </u>a month</p>
<p class="result-distance">~0.3 km from UBC</p>
</div>
</div>
</a>
</div>
<footer class="footer">
<div class="footer-content">
<div class="footer-text">
<h1>NestFinder</h1>
<p>Follow us to stay updated on upcoming events and changes!</p>
</div>
<div class="footer-icons">
<a href="https://portal.nwplus.io" target="_blank"><img src="icons/linkedin-footer.png" alt="LinkedIn Icon" class="social-footer"></a>
<a href="https://portal.nwplus.io" target="_blank"><img src="icons/facebook-footer.png" alt="Facebook Icon" class="social-footer"></a>
<a href="https://portal.nwplus.io" target="_blank"><img src="icons/tiktok-footer.png" alt="TikTok Icon" class="social-footer"></a>
<a href="https://portal.nwplus.io" target="_blank"><img src="icons/instagram-footer.png" alt="Instagram Icon" class="social-footer"></a>
</div>
</div>
</footer>
<script>
document.querySelectorAll('.dropbtn').forEach(button => {
button.addEventListener('click', function() {
this.nextElementSibling.classList.toggle('show');
});
});
document.querySelectorAll('.dropdown-content a').forEach(item => {
item.addEventListener('click', function(e) {
e.preventDefault();
const dropdownButton = this.closest('.dropdown').querySelector('.dropbtn');
dropdownButton.textContent = this.dataset.value;
this.parentElement.classList.remove('show');
});
});
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
</body>
</html>