-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (96 loc) · 5.82 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
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- link to css style -->
<link rel="stylesheet" href="assets/css/style.css">
<!-- fontawesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css">
<!-- google font -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&display=swap" rel="stylesheet">
<!-- favicon -->
<link rel="icon" type="image/png" href="assets/img/favicon.png"/>
<title>vue-boolflix</title>
</head>
<body>
<!-- General Div for app istance -->
<div id="app">
<!-- menu bar -->
<header class="topbar d-flex">
<a href="" @click="refreshFunc"><img id="logo" src="assets/img/logo_transparent.png" alt=""></a>
<i @click="showFunc" v-if="seeInput" class="fas fa-search"></i>
<form v-else class="search d-flex" @submit.prevent="searchFunc">
<input type="text" v-model="search">
</form>
</header>
<!-- menu bar -->
<img v-if="research" class="background_cine" src="assets/img/9263.jpg" alt="" @click="clearFunc">
<div v-else>
<!-- main Shows container -->
<h2 class="title_section">Movies</h2>
<section class="movie_section d-flex" @click="clearFunc">
<i @click="prevFunc" class="fas fa-caret-square-left"></i>
<!-- container section for movies -->
<div class="movie_info" v-for="(title,i) in shows.movie">
<img class="poster" v-if="title.poster_path !== null" :src="`https://image.tmdb.org/t/p/w342/${title.poster_path}`" alt="">
<img v-else class="poster" src="assets/img/no-poster-available.png" alt="">
<div class="movie_hover ">
<h2>{{title.title}}</h2>
<h3 v-if="title.title !== title.original_title">{{title.original_title}}</h3>
<img class="flag" v-if="codeFlag.includes(title.original_language) == true" :src="`https://www.countryflags.io/${title.original_language}/shiny/32.png`">
<h4 v-else>{{title.original_language}}</h4>
<i v-for="star in title.vote_average" class="fas fa-star"></i><i v-for="star in 5-title.vote_average" class="far fa-star"></i>
<h5>Overview</h5>
<p>{{title.overview}}</p>
<h5>Cast</h5>
<p class="act_gen" v-for="movieActor in title.movieCast"> {{movieActor}} ,</p>
<h5>Genre</h5>
<p class="act_gen" v-for="movieGen in title.genre_ids"> {{movieGen}} ,</p>
</div>
</div>
<!-- //container section for movies -->
<i @click="nextFunc" class="fas fa-caret-square-right"></i>
</section>
<!-- //main Shows container -->
<!-- main Shows container -->
<h2 class="title_section">TvShows</h2>
<section class="tv_section d-flex" @click="clearFunc">
<i @click="prevTvFunc" class="fas fa-caret-square-left"></i>
<!-- container section for tv-show -->
<div class="movie_info" v-for="(title,i) in shows.tv">
<img class="poster" v-if="title.poster_path !== null" :src="`https://image.tmdb.org/t/p/w342/${title.poster_path}`" alt="">
<img v-else class="poster" src="assets/img/no-poster-available.png" alt="">
<div class="movie_hover ">
<h2>{{title.name}}</h2>
<h3 v-if="title.title !== title.original_title">{{title.original_name}}</h3>
<img class="flag" v-if="codeFlag.includes(title.original_language) == true" :src="`https://www.countryflags.io/${title.original_language}/shiny/32.png`">
<h4 v-else>{{title.original_language}}</h4>
<i v-for="star in title.vote_average" class="fas fa-star"></i><i v-for="star in 5-title.vote_average" class="far fa-star"></i>
<h5>Overview</h5>
<p>{{title.overview}}</p>
<h5>Cast</h5>
<p class="act_gen" v-for="tvActor in title.tvCast"> {{tvActor}} , </p>
<h5>Genre</h5>
<p class="act_gen" v-for="tvGen in title.genre_ids"> {{tvGen}} ,</p>
</div>
</div>
<!-- //container section for tv-show -->
<i @click="nextTvFunc" class="fas fa-caret-square-right"></i>
</section>
<!-- //main Shows container -->
</div>
</div>
<!-- //General Div for app istance -->
<!-- Axios CDN -->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<!-- VueJs CDN -->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<!-- link to javascript file -->
<script src="assets/js/main.js"></script>
</body>
</html>
<!-- <i class="fas fa-chevron-right"></i> -->
<!-- <i class="fas fa-chevron-left"></i> -->