-
Notifications
You must be signed in to change notification settings - Fork 0
/
movies.html
49 lines (47 loc) · 1.42 KB
/
movies.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
<!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" />
<title>Movies</title>
<style>
#navbar{
display: flex;
justify-content: space-between;
}
#movies{
display: grid;
grid-template-columns: repeat(4,1fr);
grid-template-rows: auto;
gap: 4px;
}
#movies>div{
text-align: center;
border: 1px solid black;
}
#movies>div>img{
height: 200px;
width: 200px;
}
</style>
</head>
<body>
<div id="navbar">
<h1>Movie List</h1>
<h1 id="wallet"></h1>
<!-- Display the wallet amount here inside h1 tag with id as "wallet". Note only amount, no extra text. Like 500 not Rs 500 -->
</div>
<div id="search_bar">
<!-- input box for searching movies with id as "search" -->
<!-- No button should be there for searching movies, it should search with input -->
<input type="text" oninput="debounce(main,1000)" id="search" />
</div>
<div id="movies">
<!-- Append all searched movies here in grid format -->
<!-- Every movie card should have image, title and a book now button -->
<!-- Book now buttons should have class "book_now" -->
</div>
</body>
</html>
<script src="./scripts/movies.js"></script>