Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
joblessgod authored Sep 8, 2024
0 parents commit 6f8f575
Show file tree
Hide file tree
Showing 9 changed files with 621 additions and 0 deletions.
Binary file added images/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tab-content-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tab-content-2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tab-content-2-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tab-content-2-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
190 changes: 190 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NETFLIX CLONE</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<header class="showcase">
<div class="showcase-top">
<img src="images/logo.png" alt="Netflix_logo">
<a href="#" class="btn btn-rounded">Sign in</a>
</div>
<div class="showcase-content">
<h1>See What's Next</h1>
<p>Watch anywhere. Cancel anytime</p>
<a href="#" class="btn btn-xl">
Watch free for 30 days <i class="fas fa-chevron-right btn-icon"></i>
</a>
</div>
</header>

<section class="tabs">
<div class="container">
<div id="tab-1" class="tab-item tab-border">
<i class="fas fa-door-open fa-5xl"></i>
<p class="hide-sm">Cancel anytime</p>
</div>
<div id="tab-2" class="tab-item">
<i class="fas fa-tablet-alt fa-3xl"></i>
<p class="hide-sm">Watch anywhere</p>
</div>
<div id="tab-3" class="tab-item">
<i class="fas fa-tags fa-3xl"></i>
<p class="hide-sm">Pick your price</p>
</div>
</div>
</section>

<section class="tab-content">
<div class="container">
<!-- Tab content 1 -->
<div id="tab-1-content" class="tab-content-item show">
<div class="tab-1-content-inner">
<div>
<p class="text-lg">
If you decide Netflix isn't for you - No problem, No commitment.
Cancel online anytime.
</p>
<a href="#" class="btn btn-lg">Watch free for 30 days</a>
</div>
<img src="images/tab-content-1.png" alt="tab-1-content image">
</div>
</div>

<!-- Tab 2 content -->
<div id="tab-2-content" class="tab-content-item">
<div class="tab-2-content-top">
<p class="text-lg">
Watch TV shows and movies anytime, anywhere - personalized for you.
</p>
<a href="#" class="btn btn-lg">Watch free for 30 days</a>
</div>
<div class="tab-2-content-bottom">
<div>
<img src="images/tab-content-2-1.png" alt="">
<p class="text-md">Watch on your TV</p>
<p class="text-dark">Smart Tvs. PlayStation, Xbox, Chromecast, Apple TV, Blu-ray players and more.</p>
</div>
<div>
<img src="images/tab-content-2-2.png" alt="">
<p class="text-md">Watch instantly or download for later</p>
<p class="text-dark">Available on phone and tablet, wherever you go.</p>
</div>
<div>
<img src="images/tab-content-2-3.png" alt="">
<p class="text-md">Use any computer</p>
<p class="text-dark">Watch right on Netflix.com.</p>
</div>
</div>
</div>

<!-- Tab 3 content -->
<div id="tab-3-content" class="tab-content-item">
<div class="text-center">
<p class="text-lg">Choose one plan and watch everything on Netflix</p>
<a href="#" class="btn btn-lg">Watch Free For 30 Days</a>
</div>

<table class="table">
<thead>
<tr>
<th></th>
<th>Basic</th>
<th>Standard</th>
<th>Premium</th>
</tr>
</thead>
<tbody>
<tr>
<td>Monthly price after free month ends on 6/19/19</td>
<td>$8.99</td>
<td>$12.99</td>
<td>$15.99</td>
</tr>
<tr>
<td>HD Available</td>
<td><i class="fas fa-times"></i></td>
<td><i class="fas fa-check"></i></td>
<td><i class="fas fa-check"></i></td>
</tr>
<tr>
<td>Ultra HD Available</td>
<td><i class="fas fa-times"></i></td>
<td><i class="fas fa-times"></i></td>
<td><i class="fas fa-check"></i></td>
</tr>
<tr>
<td>Screens you can watch on at the same time</td>
<td>1</td>
<td>2</td>
<td>4</td>
</tr>
<tr>
<td>Watch on your laptop, TV, phone and tablet</td>
<td><i class="fas fa-check"></i></td>
<td><i class="fas fa-check"></i></td>
<td><i class="fas fa-check"></i></td>
</tr>
<tr>
<td>Unlimited movies and TV shows</td>
<td><i class="fas fa-check"></i></td>
<td><i class="fas fa-check"></i></td>
<td><i class="fas fa-check"></i></td>
</tr>
<tr>
<td>Cancel anytime</td>
<td><i class="fas fa-check"></i></td>
<td><i class="fas fa-check"></i></td>
<td><i class="fas fa-check"></i></td>
</tr>
<tr>
<td>First month free</td>
<td><i class="fas fa-check"></i></td>
<td><i class="fas fa-check"></i></td>
<td><i class="fas fa-check"></i></td>
</tr>
</tbody>
</table>
</div>
</div>
</section>


<!-- Footer -->
<footer class="footer">
<p>Questions? Call 1-866-579-7172</p>
<div class="footer-cols">
<ul>
<li><a href="#">FAQ</a></li>
<li><a href="#">Investor Relations</a></li>
<li><a href="#">Ways To Watch</a></li>
<li><a href="#">Corporate Information</a></li>
<li><a href="#">Netflix Originals</a></li>
</ul>
<ul>
<li><a href="#">Help Center</a></li>
<li><a href="#">Jobs</a></li>
<li><a href="#">Terms Of Use</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
<ul>
<li><a href="#">Account</a></li>
<li><a href="#">Redeem Gift Cards</a></li>
<li><a href="#">Privacy</a></li>
<li><a href="#">Speed Test</a></li>
</ul>
<ul>
<li><a href="#">Media Center</a></li>
<li><a href="#">Buy Gift Cards</a></li>
<li><a href="#">Cookie Preferences</a></li>
<li><a href="#">Legal Notices</a></li>
</ul>
</div>
</footer>
<script src="main.js"></script>
</body>
</html>
24 changes: 24 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const tabItems = document.querySelectorAll('.tab-item');
const tabContentItems = document.querySelectorAll('.tab-content-item');

//select tab content item
function selectItem(e) {
removeBorder();
removeShow();
//add border to selected tab
this.classList.add('tab-border');
//grab the content items from DOM
const tabContentItem = document.querySelector(`#${this.id}-content`);
//Add show class
tabContentItem.classList.add('show');
}

function removeBorder() {
tabItems.forEach(item => item.classList.remove('tab-border'));
}

function removeShow() {
tabContentItems.forEach(item => item.classList.remove('show'));
}

tabItems.forEach(item => item.addEventListener('click', selectItem))
Loading

0 comments on commit 6f8f575

Please sign in to comment.