diff --git a/src/views/Presentation/PresentationView.vue b/src/views/Presentation/PresentationView.vue index 60c1913..4b416e7 100644 --- a/src/views/Presentation/PresentationView.vue +++ b/src/views/Presentation/PresentationView.vue @@ -57,6 +57,8 @@ export default { data() { return { projects: [], + searchQuery: '', + searchResult: [], }; }, async created() { @@ -67,6 +69,16 @@ export default { console.error('There was an error fetching the projects', error); } }, + methods: { + async search() { + try { + const response = await axios.get(`http://somebodyhire.me/api/search/projects/?search_query=${this.searchQuery}`); + this.searchResult = response.data; + } catch (error) { + console.error('There was an error performing the search', error); + } + } + }, }; @@ -101,22 +113,38 @@ export default {
+{{ project.description }}
+{{ project.description }}
+ -