Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Bruno Predot
/
tmdb_test
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Bruno Predot
2025-04-23 21:33:55 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5cf8824b1ac72663161d162e3db1d416349847de
5cf8824b
1 parent
7e9cfb2c
Création du composant SearchBar.
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
1 deletions
CHANGELOG_RELEASE.md
components/SearchBar.vue
CHANGELOG_RELEASE.md
View file @
5cf8824
...
...
@@ -2,4 +2,5 @@
-
Mise en place du CHANGELOG_RELEASE.
-
Ajout page index.
-
Modification app.vue afin d'initialiser l'app avec vuetify et NuxtPage pour démarrer sur la page index.
-
Création du composant MoviesList.
\ No newline at end of file
-
Création du composant MoviesList.
-
Création du composant SearchBar.
\ No newline at end of file
...
...
components/SearchBar.vue
0 → 100644
View file @
5cf8824
<script setup lang="ts">
//#region --import--.
import { SearchIcon, XIcon } from "lucide-vue-next";
import { ref } from "vue";
//#endregion
//#region --Emits--.
// const emit = defineEmits([]);
//#endregion
//#region --Data/refs--.
const searchQuery = ref("");
//#endregion
</script>
<template>
<!-- Barre de recherche -->
<section class="mb-8">
<div class="relative max-w-xl mx-auto">
<input
v-model="searchQuery"
type="text"
placeholder="Rechercher un film..."
class="w-full px-4 py-3 bg-gray-800 rounded-full text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-primary"
@input="console.log('debouncedSearch à prévoir')"
/>
<button
v-if="searchQuery"
class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-white"
@click="console.log('clearSearch à prévoir')"
>
<XIcon :size="20" />
</button>
<button v-else class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400">
<SearchIcon :size="20" />
</button>
</div>
</section>
</template>
<style scoped>
</style>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment