-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
92 lines (91 loc) · 2.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" href="style.css" />
<title>Avonale Movies</title>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
<div id="app">
<!--Navbar-->
<header>
<nav>
<div class="logo">
<h4>Avonale Movies</h4>
</div>
<button class="nav-links" v-on:click="showHome()">Home</button>
<button class="nav-links" v-on:click="showFavoriteList()">
Favorite Movies
</button>
</nav>
<div class="search-form">
<div class="search-container">
<input
v-model="searchTerm"
type="text"
placeholder="Search Movies..."
class="search"
id="search"
v-on:submit="searchMovie()"
/>
<button v-on:click="searchMovie()" class="search-button">
Search
</button>
</div>
</div>
</header>
<!--Home-->
<main id="main">
<div
v-for="movie in movieList"
class="movie"
v-if="currentPage === '/home'"
>
<img
:src="'https://image.tmdb.org/t/p/w500' + movie.poster_path"
:alt="movie.title"
/>
<div class="movie-info">
<h3>{{movie.title}}</h3>
</div>
<div class="overview">
<button
id="favButton"
v-on:click="saveAsFavoriteMovies(movie.title)"
>
Favorite ♥
</button>
<h3>Details</h3>
{{movie.overview}}
</div>
</div>
<!--Favorite Movies Path-->
<div
v-if="currentPage === '/favorite'"
v-for="movie in favoriteMovies"
class="movie"
>
<h3 class="fav-movies-list-h3">{{movie}}</h3>
<button
v-on:click="removeFavoriteMovies(movie)"
id="favButton"
class="fav-movies-list"
>
Remove
</button>
</div>
</main>
<!--Footer-->
<footer>
Developed by Mário Júnior. Reach me on my Social Media!
<div>
<a href="https://www.linkedin.com/in/mariojuniordev/"><img src="assets/linkedin.png"/></a>
<a href="https://github.com/mariojuniordev"><img src="assets/github.png"/></a>
</div>
</footer>
</div>
<script src="./src/app.js"></script>
</body>
</html>