This repository has been archived by the owner on May 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from shalomalexander/master
Implemented Fully Functional Search Bar
- Loading branch information
Showing
2 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |