Skip to content
This repository was archived by the owner on May 29, 2022. It is now read-only.

Commit 01aaa16

Browse files
authored
Merge pull request #22 from shalomalexander/master
Implemented Fully Functional Search Bar
2 parents 8b2d6db + 0d724a2 commit 01aaa16

2 files changed

Lines changed: 60 additions & 4 deletions

File tree

components/Sidebar.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<template>
22
<div class="sidebar-wrapper">
3+
<nuxt-link to="/">
4+
<div class="item">
5+
Home
6+
</div>
7+
</nuxt-link>
38
<nuxt-link to="/explore">
49
<div class="item">
510
Explore

pages/index.vue

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,67 @@
11
<template>
2-
<div class="page-wrapper">
3-
<h1>Home</h1>
2+
<div>
3+
<div class="page-wrapper">
4+
<h1>Home</h1>
5+
<form class="searchbar">
6+
<div class="searchbar-input">
7+
<!-- Input -->
8+
<input v-model="url" type="search" placeholder="Paste the Game URL" />
9+
<!-- Search button -->
10+
<a :href="`${url}/`" class="searchbar-clear"></a>
11+
</div>
12+
</form>
13+
</div>
414
</div>
515
</template>
616

17+
<script>
18+
export default {
19+
name: "Index",
20+
components: {},
21+
// Currently I want to use this url attribute in the src of iframe but the im not sure how to pass the data to it.
22+
data(){
23+
return {
24+
url: ""
25+
}
26+
}
27+
}
28+
</script>
29+
730
<style scoped>
831
.page-wrapper {
932
padding: 1rem;
1033
}
1134
12-
button, input {
13-
border: 1px solid grey;
35+
.searchbar-clear {
36+
width: 200px;
37+
padding: 20px;
38+
border: 0px solid #00B4CC;
39+
background: #00B4CC;
40+
color: white;
41+
border-radius: 0 10px 10px 0;
42+
cursor: pointer;
43+
font-size: 20px;
44+
background-image: linear-gradient(#2193b0,#00B4CC);
45+
box-shadow: 5px 5px 5px #888888;
46+
}
47+
48+
.searchbar-clear:hover {
49+
opacity: 0.9;
50+
background-image: linear-gradient(#2193b0,#00B4CC);
1451
}
1552
53+
input {
54+
width: calc(50% - 50px);
55+
border: 0px;
56+
padding: 20px;
57+
font-size: 1.3em;
58+
background-color: #323333;
59+
color: #687f7f;
60+
border-radius: 10px 0px 0px 10px;
61+
box-shadow: 5px 5px 5px #888888;
62+
}
63+
64+
input:hover{
65+
opacity: 0.95;
66+
}
1667
</style>

0 commit comments

Comments
 (0)