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

Commit

Permalink
Merge pull request #22 from shalomalexander/master
Browse files Browse the repository at this point in the history
Implemented Fully Functional Search Bar
  • Loading branch information
sanket143 authored Oct 4, 2020
2 parents 8b2d6db + 0d724a2 commit 01aaa16
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 4 deletions.
5 changes: 5 additions & 0 deletions components/Sidebar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<template>
<div class="sidebar-wrapper">
<nuxt-link to="/">
<div class="item">
Home
</div>
</nuxt-link>
<nuxt-link to="/explore">
<div class="item">
Explore
Expand Down
59 changes: 55 additions & 4 deletions pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,67 @@
<template>
<div class="page-wrapper">
<h1>Home</h1>
<div>
<div class="page-wrapper">
<h1>Home</h1>
<form class="searchbar">
<div class="searchbar-input">
<!-- Input -->
<input v-model="url" type="search" placeholder="Paste the Game URL" />
<!-- Search button -->
<a :href="`${url}/`" class="searchbar-clear"></a>
</div>
</form>
</div>
</div>
</template>

<script>
export default {
name: "Index",
components: {},
// 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.
data(){
return {
url: ""
}
}
}
</script>

<style scoped>
.page-wrapper {
padding: 1rem;
}
button, input {
border: 1px solid grey;
.searchbar-clear {
width: 200px;
padding: 20px;
border: 0px solid #00B4CC;
background: #00B4CC;
color: white;
border-radius: 0 10px 10px 0;
cursor: pointer;
font-size: 20px;
background-image: linear-gradient(#2193b0,#00B4CC);
box-shadow: 5px 5px 5px #888888;
}
.searchbar-clear:hover {
opacity: 0.9;
background-image: linear-gradient(#2193b0,#00B4CC);
}
input {
width: calc(50% - 50px);
border: 0px;
padding: 20px;
font-size: 1.3em;
background-color: #323333;
color: #687f7f;
border-radius: 10px 0px 0px 10px;
box-shadow: 5px 5px 5px #888888;
}
input:hover{
opacity: 0.95;
}
</style>

0 comments on commit 01aaa16

Please sign in to comment.