-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (96 loc) · 4.87 KB
/
index.html
File metadata and controls
98 lines (96 loc) · 4.87 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src vue.global.js 'self' 'unsafe-eval' ">
<title>CineMagic</title>
<link rel="stylesheet" href="./assets/bootstrap.min.css">
<script src="./assets/vue.global.js"></script>
<script src="./assets/jquery-3.7.1.min.js"></script>
<link rel="stylesheet" href="./assets/global.css">
</head>
<body>
<div class="container-fluid mb-5">
<div class="row">
<div class="col-12 pe-0 ps-0">
<div class="d-flex justify-content-between align-items-center px-2 bg-dark">
<div><h3 class="display-4 text-white heading">CineMagic</h3></div>
<div><button id="folder-select" class="button-61">Select Folder</button></div>
</div>
</div>
<div class="col-12 ps-0 pe-0">
<nav class="p-3 bg-dark navbar-main">
</nav>
</div>
</div>
</div>
<div id="app">
<section v-if="!loading && renderComponent">
<div class="container">
<div class="row justify-content-center mb-4">
<div class="col-xl-4 col-lg-4 col-md-4 d-flex justify-content-end">
<button class="content-btn position-relative" @click="displayMovies" :class="{ activeBtn: showMovies }">
<span class="position-absolute btn-title text-white">Movies</span>
<img src="./assets/movie.png" class="h-100 w-100" alt="movie">
</button>
</div>
<div class="col-xl-4 col-lg-4 col-md-4">
<button class="content-btn position-relative" :class="{ activeBtn: showTvs }" @click="displayTv">
<span class="position-absolute btn-title text-white">Tv Shows</span>
<img src="./assets/tv.png" class="h-100 w-100" alt="tv">
</button>
</div>
</div>
<div class="row" v-if="showMovies">
<div class="col-xl-3 col-lg-3 col-md-4 col-sm-6 col-12 mb-3" v-for="movie in movies">
<div class="movie-card p-2 shadow-sm">
<div class="position-relative h-100 p-2">
<h6 class="movie-name text-white">{{ movie }}</h6>
<button class="openfile btn btn-dark btn-sm px-1 py-0" :id="movie">Let's Watch</button>
</div>
</div>
</div>
</div>
<div class="row" v-if="showTvs">
<div class="col-xl-3 col-lg-3 col-md-4 col-sm-6 col-12 mb-3" v-for="tv in tvshows">
<div class="movie-card p-2 shadow-sm">
<div class="position-relative h-100 p-2">
<h6 class="movie-name text-white">{{ tv }}</h6>
<button class="openfile btn btn-dark btn-sm px-1 py-0" :id="tv">Let's Watch</button>
</div>
</div>
</div>
</div>
<div class="row" v-if="movies.length === 0 && showMovies">
<div>
<h3 class="display-6 text-danger">No Movies found</h3>
</div>
</div>
<div class="row" v-if="tvshows.length === 0 && showTvs">
<div>
<h3 class="display-6 text-danger">No Tv Shows found</h3>
</div>
</div>
</div>
</section>
<section v-if="loading">
<div class="container">
<div class="row">
<div class="col-12">
<div class="d-flex justify-content-center">
<div>
<div class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<input type="hidden" id="tv">
<input type="hidden" id="movies">
</body>
<script src="./src/actions.js"></script>
</html>