|
1 | 1 | <template>
|
2 | 2 | <div>
|
3 | 3 | <Header/>
|
4 |
| - <div class="pad-15-hor pad-15-ver search-parent"> |
5 |
| - <div class="search-bar"> |
6 |
| - <b-form-input |
7 |
| - @input="search_text()" |
8 |
| - v-model="search.text" |
9 |
| - type="text" |
10 |
| - placeholder="Search by Name" |
11 |
| - ></b-form-input> |
12 |
| - <span class="search-icon"> |
13 |
| - <i class="fas fa-search"></i> |
14 |
| - </span> |
15 |
| - </div> |
16 |
| - <div> |
17 |
| - <span class="bold">Total Likes:</span> |
18 |
| - {{likes.count}} |
19 |
| - <span class="bold">Hits:</span> |
20 |
| - {{likes.hit}} |
21 |
| - </div> |
22 |
| - <div> |
23 |
| - <b-form-select @input="sort()" v-model="search.filter" :options="options"/> |
| 4 | + <div class="search"> |
| 5 | + <div class="pad-15-hor pad-15-ver search-parent"> |
| 6 | + <div class="search-bar" > |
| 7 | + <b-form-input |
| 8 | + @input="search_text()" |
| 9 | + v-model="search.text" |
| 10 | + type="text" |
| 11 | + placeholder="Search by Name" |
| 12 | + ></b-form-input> |
| 13 | + <span class="search-icon"> |
| 14 | + <i class="fas fa-search"></i> |
| 15 | + </span> |
| 16 | + </div> |
| 17 | + <div> |
| 18 | + <span class="bold">Total Likes:</span> |
| 19 | + {{likes.count}} |
| 20 | + <span class="bold">Hits:</span> |
| 21 | + {{likes.hit}} |
| 22 | + </div> |
| 23 | + <div> |
| 24 | + <b-form-select @input="sort()" v-model="search.filter" :options="options"/> |
| 25 | + </div> |
24 | 26 | </div>
|
25 | 27 | </div>
|
26 | 28 |
|
27 | 29 | <div class="container-fluid">
|
28 | 30 | <div class="row">
|
29 |
| - <div class="col-md-6 pad-15-ver" v-for="wonder in wonders_data" :key="wonder.id"> |
| 31 | + <div class="col-md-6 pad-15-ver card" v-for="wonder in wonders_data" :key="wonder.id"> |
30 | 32 | <div
|
31 | 33 | class="card-inner"
|
32 | 34 | @mouseover="show_hover(true,wonder.id)"
|
@@ -180,101 +182,8 @@ export default {
|
180 | 182 |
|
181 | 183 |
|
182 | 184 |
|
183 |
| -<style scoped> |
184 |
| -.header { |
185 |
| - display: flex; |
186 |
| - flex-flow: row wrap; |
187 |
| - justify-content: space-between; |
188 |
| -} |
189 |
| -
|
190 |
| -.search-parent { |
191 |
| - display: flex; |
192 |
| - flex-flow: row wrap; |
193 |
| - justify-content: space-between; |
194 |
| - background-color: lightgray; |
195 |
| -} |
196 |
| -
|
197 |
| -.card-inner { |
198 |
| - position: relative; |
199 |
| - overflow: hidden; |
200 |
| - box-shadow: 2px 2px 8px grey; |
201 |
| -} |
202 |
| -
|
203 |
| -.card-img { |
204 |
| - width: 100%; |
205 |
| -} |
206 |
| -
|
207 |
| -.card-bottom { |
208 |
| - position: absolute; |
209 |
| - bottom: 0; |
210 |
| - left: 0; |
211 |
| - height: 30px; |
212 |
| - width: 100%; |
213 |
| - background-color: white; |
214 |
| - opacity: 0.7; |
215 |
| - display: flex; |
216 |
| - justify-content: space-between; |
217 |
| -} |
218 |
| -
|
219 |
| -.card-hover { |
220 |
| - position: absolute; |
221 |
| - right: 15px; |
222 |
| - left: 15px; |
223 |
| - top: 15px; |
224 |
| - bottom: 15px; |
225 |
| - background-color: white; |
226 |
| - opacity: 0.7; |
227 |
| - display: flex; |
228 |
| - flex-flow: column wrap; |
229 |
| - justify-content: center; |
230 |
| - align-items: center; |
231 |
| -} |
232 |
| -.absolute-star { |
233 |
| - position: absolute; |
234 |
| - top: 10px; |
235 |
| - right: 10px; |
236 |
| -} |
237 |
| -
|
238 |
| -.card-hover p { |
239 |
| - font-size: 10px; |
240 |
| - text-align: center; |
241 |
| -} |
242 |
| -
|
243 |
| -.bold { |
244 |
| - font-weight: 500; |
245 |
| -} |
246 |
| -
|
247 |
| -.rating-div { |
248 |
| - width: 200px; |
249 |
| -} |
250 |
| -
|
251 |
| -.search-bar { |
252 |
| - position: relative; |
253 |
| -} |
254 |
| -.search-bar input { |
255 |
| - padding-left: 30px; |
256 |
| -} |
257 |
| -
|
258 |
| -.search-icon { |
259 |
| - position: absolute; |
260 |
| - top: 8px; |
261 |
| - left: 8px; |
262 |
| -} |
263 |
| -
|
264 |
| -@media screen and (max-width: 550px) { |
265 |
| - .search-parent { |
266 |
| - display: flex; |
267 |
| - flex-flow: column wrap; |
268 |
| - justify-content: center; |
269 |
| - align-items: center; |
270 |
| - background-color: lightgray; |
271 |
| - } |
272 |
| -
|
273 |
| - .search-parent div { |
274 |
| - width: 100%; |
275 |
| - text-align: center; |
276 |
| - } |
277 |
| -} |
| 185 | +<style scoped lang="scss"> |
| 186 | + @import "../styles/main.scss"; |
278 | 187 | </style>
|
279 | 188 |
|
280 | 189 |
|
0 commit comments