-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (48 loc) · 1.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Netflix Clone</title>
<link rel="icon" type="image/png" href="netflix-clone/logo.png">
<link rel="stylesheet" type="text/css" href="netflix-clone/style.css">
<script type="text/javascript" src="netflix-clone/script.js"></script>
</head>
<body>
<div class="nav">
<div class="nav_left">
<a href="index.html">
<img class="nav_logo" src="netflix-clone/netflix.png">
</a>
</div>
<div class="nav_right">
<img class="nav_avatar" src="netflix-clone/avatar.png">
</div>
</div>
<!-- banner -->
<header id="banner">
<div id="banner_contents">
<h1 id="banner_title"></h1>
<div id="banner_buttons">
<button id="banner_button">Play</button>
<button id="banner_button">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="row_title"></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>