Skip to content

Commit

Permalink
Almost Completed Initially
Browse files Browse the repository at this point in the history
  • Loading branch information
mbakhtawar2007 committed Sep 19, 2024
1 parent 333dfe5 commit ff6faf6
Show file tree
Hide file tree
Showing 6 changed files with 387 additions and 142 deletions.
68 changes: 68 additions & 0 deletions ContactInfo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
.contact-info {
background-color: #1c1c1c;
color: #ffffff;
padding: 40px;
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
max-width: 800px;
margin: auto;
text-align: center;
}

.contact-info h2 {
font-family: 'Helvetica Neue', sans-serif;
font-weight: bold;
color: #e50914;
margin-bottom: 20px;
}

.contact-info p {
font-family: 'Helvetica Neue', sans-serif;
font-size: 16px;
margin-bottom: 30px;
}

.contact-details {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
margin-bottom: 30px;
}

.contact-item {
background-color: #141414;
border-radius: 8px;
padding: 20px;
width: 200px;
}

.contact-item h3 {
font-family: 'Helvetica Neue', sans-serif;
font-weight: bold;
color: #e50914;
margin-bottom: 10px;
}

.contact-item p {
font-family: 'Helvetica Neue', sans-serif;
font-size: 14px;
color: #ffffff;
}

.contact-button {
background-color: #e50914;
color: #ffffff;
border: none;
padding: 15px 25px;
border-radius: 8px;
font-family: 'Helvetica Neue', sans-serif;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-button:hover {
background-color: #d40813;
transform: scale(1.05);
}
83 changes: 83 additions & 0 deletions FAQs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
.faq-wrapper {
width: 100%;
padding: 50px 0;
background-color: #141414; /* Netflix dark background */
}

.faq-container {
background-color: #1c1c1c; /* Darker gray for container */
color: white;
width: 90%; /* 90% width of parent */
margin: 0 auto;
border-radius: 8px; /* Rounded corners */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7); /* Darker shadow */
padding: 20px;
}

.faq-title {
text-align: center;
font-size: 2.5rem;
margin-bottom: 40px;
color: #e50914; /* Netflix Red */
font-family: 'Helvetica Neue', sans-serif;
text-transform: uppercase;
letter-spacing: 1.5px;
}

.faq-item {
margin-bottom: 20px;
border-bottom: 1px solid #333; /* Dark gray separator */
padding-bottom: 10px;
}

.faq-question {
width: 100%;
background-color: transparent;
color: #e50914; /* Netflix Red for questions */
padding: 15px 0;
font-size: 1.4rem;
border: none;
cursor: pointer;
text-align: left;
font-family: 'Helvetica Neue', sans-serif;
font-weight: bold;
position: relative;
transition: color 0.3s ease;
}

.faq-question:hover {
color: #ff1a1a; /* Slightly brighter red on hover */
}

.faq-question::after {
content: '▼'; /* Down arrow */
font-size: 1rem;
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
transition: transform 0.3s ease;
color: #e50914; /* Netflix Red arrow */
}

.faq-answer {
max-height: 0;
overflow: hidden;
transition: max-height 0.5s ease;
padding-left: 20px;
color: #e0e0e0; /* Light gray for answer text */
}

.faq-answer p {
font-size: 1rem;
line-height: 1.5;
padding: 10px 0;
}

.faq-answer.active {
max-height: 300px;
}

.faq-question.active::after {
transform: translateY(-50%) rotate(180deg); /* Rotate arrow when active */
}
90 changes: 71 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,46 +12,42 @@
integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="./style.css" />
<link rel="stylesheet" href="./script.js">
<link rel="stylesheet" href="./FAQs.css">
<link rel="stylesheet" href="./sec2.css">
<link rel="stylesheet" href="./ContactInfo.css">
<style></style>
</head>

<body>
<div class="container">
<div class="sec1">

<div class="opacity"></div>

<div class="text" style="z-index: 50; position: relative;">
<div class="text">
<div class="navbar">
<div class="navtext"><b>NETFLIX</b></div>
<div class="navbtn">
<button><b>Sign In</b></button>
<button class="signin-btn"><b>Sign In</b></button>
</div>
</div>
<center>
<div class="sec1text">
<p class="text-heading">
Unlimited movies, TV shows, and more
</p>
<p class="text-line-1">
Watch anywhere. Cancel anytime.
</p>
<p class="text-heading">Unlimited movies, TV shows, and more</p>
<p class="text-line-1">Watch anywhere. Cancel anytime.</p>
<p class="text-line-2">

Ready to watch? Enter your email to create or restart your
membership.
Ready to watch? Enter your email to create or restart your membership.
</p>
<div class="input">
<div><input type="text" class="email" placeholder="Email address"></div>
<div><button class="btn">
<h4>Get Started</h4>
</button></div>
<input type="text" class="email" placeholder="Email address">
<button class="btn">
<h4>Get Started</h4>
</button>
</div>
</div>
</center>
</div>

</div>


<div class="sec2">
<div class="sec2-1">
Expand All @@ -63,7 +59,63 @@ <h4>Get Started</h4>
<!-- <video src="https://assets.nflxext.com/ffe/siteui/acquisition/ourStory/fuji/desktop/video-tv-in-0819.m4v" autoplay loop muted class="sec2-2-video"></video> -->
</div>
</div>

<div class="faq-wrapper">
<div class="faq-container">
<h1 class="faq-title">Frequently Asked Questions</h1>

<div class="faq-item">
<button class="faq-question">What is Netflix?</button>
<div class="faq-answer">
<p>Netflix is a streaming service that offers a wide variety of award-winning TV shows, movies, anime, documentaries, and more on thousands of internet-connected devices.</p>
</div>
</div>

<div class="faq-item">
<button class="faq-question">How much does Netflix cost?</button>
<div class="faq-answer">
<p>Watch Netflix on your smartphone, tablet, Smart TV, laptop, or streaming device, all for one fixed monthly fee. Plans range from $8.99 to $17.99 a month.</p>
</div>
</div>

<div class="faq-item">
<button class="faq-question">Where can I watch?</button>
<div class="faq-answer">
<p>Watch anywhere, anytime, on an unlimited number of devices. Sign in with your Netflix account to watch instantly on the web at netflix.com from your personal computer or on any internet-connected device that offers the Netflix app.</p>
</div>
</div>
</div>
</div>

<section class="contact-info">
<div class="container">
<h2>Contact Us</h2>
<p>We’d love to hear from you. Reach out through the following channels:</p>
<div class="contact-details">
<div class="contact-item">
<h3>Email</h3>
<p>support@yourwebsite.com</p>
</div>
<div class="contact-item">
<h3>Phone</h3>
<p>+1 (123) 456-7890</p>
</div>
<div class="contact-item">
<h3>Address</h3>
<p>1234 Netflix Lane, Streaming City, SC 56789</p>
</div>
</div>
<button class="contact-button">Get in Touch</button>
</div>
</section>





</div>
<script src="script.js"></script>
</body>

</html>
</html>

17 changes: 17 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const faqQuestions = document.querySelectorAll('.faq-question');

faqQuestions.forEach(question => {
question.addEventListener('click', () => {
const answer = question.nextElementSibling;

// Toggle the active class to open or close the FAQ answer
answer.classList.toggle('active');

// Adjust the max height based on its current state
if (answer.classList.contains('active')) {
answer.style.maxHeight = answer.scrollHeight + 'px';
} else {
answer.style.maxHeight = '0';
}
});
});
67 changes: 67 additions & 0 deletions sec2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
.sec2 {
margin-top: 7px;
margin-bottom: 7px;
width: 100%;
height: 600px;
display: flex;
align-items: center;
justify-content: center;
background-color: #141414;
}

.sec2-1 {
width: 40%;
height: 70%;
padding-left: 5%;
padding-right: 5%;
display: flex;
flex-direction: column;
justify-content: center;
color: white;
font-family: 'Helvetica Neue', sans-serif;
}

.heading-sec2 {
font-size: 50px;
font-weight: bold;
color: #e50914;
margin-bottom: 10px;
}

.text-sec2 {
font-size: 25px;
margin-top: -3%;
color: #b3b3b3;
}

.sec2-2 {
width: 40%;
height: 70%;
display: flex;
align-items: center;
justify-content: center;
}

.sec2-2-img {
width: 90%;
height: 95%;
border-radius: 10px;
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.6);
transition: transform 0.3s ease-in-out;
}

.sec2-2-img:hover {
transform: scale(1.05);
}

/* Optional for future video */
.sec2-2-video {
position: absolute;
top: 51px;
right: 0px;
width: 555px;
border-radius: 10px;
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.6);
transition: transform 0.3s ease-in-out;
}

Loading

0 comments on commit ff6faf6

Please sign in to comment.