Skip to content
Snippets Groups Projects
Commit a14453cf authored by Juliette Kalflèche's avatar Juliette Kalflèche
Browse files

clean all the useless things

parent 066b330a
Branches
No related tags found
1 merge request!18Add user and other
Pipeline #42604 failed
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<!-- Classic Menu --> <!-- Classic Menu -->
<nav role="navigation" id="topnav_menu"> <nav role="navigation" id="topnav_menu">
<a class="topnav_link" href="/addUsers">ADD USER</a> <a class="topnav_link" href="/addUsers">INSCRIPTION</a>
<a class="topnav_link" href="/counter">COUNTER</a> <a class="topnav_link" href="/Connexion">CONNEXION</a>
<a class="topnav_link" href="/users">USER</a> <a class="topnav_link" href="/users">USER</a>
</nav> </nav>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<nav role="navigation" id="topnav_responsive_menu"> <nav role="navigation" id="topnav_responsive_menu">
<ul> <ul>
<li><a href="/">HOME</a></li> <li><a href="/">HOME</a></li>
<li><a href="/addUsers">ADD USER</a></li> <li><a href="/addUsers">INSCRIPTION</a></li>
<li><a href="/contact-us">CONTACT</a></li> <li><a href="/contact-us">CONTACT</a></li>
<li><a href="/privacy-policy">PRIVACY POLICY</a></li> <li><a href="/privacy-policy">PRIVACY POLICY</a></li>
<li><a href="/terms-and-conditions">TERMS AND CONDITIONS</a></li> <li><a href="/terms-and-conditions">TERMS AND CONDITIONS</a></li>
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-left: 20px; margin-left: 20px;
background-color: #912F56; background-color: #449DD1;
width: 200px; width: 200px;
border-radius: 20px; border-radius: 20px;
color:white; color:white;
......
...@@ -14,21 +14,15 @@ export default { ...@@ -14,21 +14,15 @@ export default {
}; };
}, },
methods: { methods: {
fetchMovies: function () { search_movie: function () {
axios let input = document.getElementById('searchbar').value
.get( input=input.toLowerCase();
`https://api.themoviedb.org/3/movie/popular?api_key=522d421671cf75c2cba341597d86403a` let x = document.getElementsByClassName('movies');
)
.then((response) => { }
this.movies = response.data.results; }
})
.catch((error) => {
this.moviesLoadingError = "An error occured while e ing movies.";
console.error(error);
});
},
},
}; };
</script> </script>
<style scoped> <style scoped>
......
import { createRouter, createWebHistory } from "vue-router"; import { createRouter, createWebHistory } from "vue-router";
import Home from "../views/Home.vue"; import Home from "../views/Home.vue";
import Counter from "../views/Counter.vue"; import Connexion from "../views/Connexion.vue";
import Users from "../views/Users.vue"; import Users from "../views/Users.vue";
import AddUser from "../views/AddUsers.vue"; import AddUser from "../views/AddUsers.vue";
...@@ -11,9 +11,9 @@ const routes = [ ...@@ -11,9 +11,9 @@ const routes = [
component: Home, component: Home,
}, },
{ {
path: "/counter", path: "/Connexion",
name: "Counter", name: "Connexion",
component: Counter, component: Connexion,
}, },
{ {
path: "/users", path: "/users",
......
<template>
<h1>This is a Connexion example</h1>
<div class="Connexion-value">Connexion value is: {{ Connexion }}</div>
<button @click="increment()">Increment</button>
</template>
<script>
export default {
name: "Connexion",
data: function () {
return {
Connexion: 0,
};
},
methods: {
increment: function () {
this.Connexion++;
},
},
};
</script>
<style scoped>
.Connexion-value {
margin-bottom: 5px;
}
</style>
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
<div class="type"> <div class="type">
<MovieType /> <MovieType />
</div> </div>
<div class="film-name">Le film est : {{ moviename }}</div>
<li v-for="movie in movies" :key="movie.id"> <li v-for="movie in movies" :key="movie.id">
<p class="movie-title"> <p class="movie-title">
{{ movie.title }} {{ movie.title }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment