-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
105 lines (71 loc) · 2.83 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-Compatib1e" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js"></script>
<link rel="icon" type="image/x-icon" href="images/Favicon.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Mukta:wght@200;300;400;500;600;700;800&display=swap" rel="stylesheet">
<title>Home | Netflix</title>
<link rel="stylesheet" href="src/styles.css">
<script src="src/script.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<!--------------------Nav bar-------------------------------->
<div class="nav">
<div class="nav_left">
<a href="index.html">
<img class="nav_logo" src="https://upload.wikimedia.org/wikipedia/commons/0/08/Netflix_2015_logo.svg"
alt="logo">
</a>
<ul class="noList">
<li>Home</li>
<li>TV Shows</li>
<li>Movies</li>
<li>Latest</li>
<li>My List</li>
</ul>
</div>
<div class="nav_right">
<img class="nav_avatar" src="images/Avatar.jpg" alt="profile">
<ul class="noList2">
<li><i class="fa fa-search" id="searching" onclick="toggleSearchBox()"></i></li>
<li><i class="fa fa-bell"></i></li>
</ul>
<div class="search-container" id="search-container">
<input type="text" id="search-box" placeholder="Search">
<i class="fa fa-search search-icon"></i>
</div>
</div>
</div>
<!---------------------Banner------------------>
<header id="banner">
<div id="banner_contents">
<h1 id="banner_title"></h1>
<div id="banner_buttons">
<button class="play"><i class="fa fa-play"></i>Play</button>
<button id="banner_button"><i class="fa fa-list"></i> My List</button>
</div>
<p id="banner_description"></p>
</div>
<div id="banner_fadeBottom"></div>
</header>
<!--row-->
<div id="headrow">
<div class="row">
<h2 class="hi"></h2>
<div class="row_posters"></div>
</div>
</div>
<script>
window.addEventListener("scroll", function () {
var nav = document.querySelector(".nav");
nav.classList.toggle("active", window.scrollY > 0);
})
</script>
</body>
</html>