This repository has been archived by the owner on Jun 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit f11154a.
- Loading branch information
Showing
9 changed files
with
58 additions
and
117 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,62 +1,38 @@ | ||
<template> | ||
<form @submit.prevent="onSubmit"> | ||
<div class="field has-text-centered has-addons"> | ||
<div class="container"> | ||
<div class="control has-icons-left is-expanded"> | ||
<input | ||
aria-label="Rechercher un développeur par mot-clef" | ||
id="search" | ||
class="input is-medium is-flat" | ||
v-model="search" | ||
type="text" | ||
placeholder="Site, Boutique, Application, React, WordPress, Java, PHP ..." | ||
/> | ||
<span class="icon is-small is-left"> | ||
<i class="fas fa-search"></i> | ||
</span> | ||
</div> | ||
<div class="control"> | ||
<input | ||
value="Rechercher" | ||
type="submit" | ||
class="button is-warning is-medium" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
<div class="field has-text-centered"> | ||
<p class="control has-icons-left"> | ||
<input | ||
aria-label="Rechercher un développeur par mot-clef" | ||
id="search" | ||
class="input is-medium is-flat" | ||
:value="value" | ||
@input="$emit('input', $event.target.value)" | ||
type="text" | ||
placeholder="Site, Boutique, Application mobile, React, WordPress, Java, PHP ..." | ||
/> | ||
<span class="icon is-small is-left"><i class="fas fa-search"></i></span> | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
search: '' | ||
} | ||
}, | ||
methods: { | ||
onSubmit() { | ||
this.$emit('onSubmit', this.search) | ||
} | ||
}, | ||
created() { | ||
// si on vient d'une autre page, filtrer les profils en fonction | ||
// de la recherche en cours, si il y en a une. | ||
if (this.$store.state.currentSearch.trim()) { | ||
this.search = this.$store.state.currentSearch.trim() | ||
props: { | ||
value: { | ||
type: String, | ||
required: true | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
div.container { | ||
display: flex; | ||
justify-content: center; | ||
max-width: 900px; | ||
} | ||
div.field { | ||
padding-bottom: 3rem; | ||
margin: auto; | ||
} | ||
p.control { | ||
display: inline-block; | ||
width: 100%; | ||
max-width: 900px; | ||
} | ||
</style> |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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