diff --git a/CSS/style.css b/CSS/style.css deleted file mode 100644 index 7cb5c1d..0000000 --- a/CSS/style.css +++ /dev/null @@ -1,54 +0,0 @@ -* { - margin: 0; - padding: 0; - box-sizing: border-box; -} -body { - background: rgba(0, 8, 29, 1); - height: 100vh; -} - -.netflix-bg { - background-image: url("../assets/images/bgg.jpg"); - position: fixed; - width: 100%; - height: 70%; - background-color: rgba(0, 0, 0, 0.45); - background-blend-mode: overlay; -} - -.navbar { - position: absolute; - top: 20px; - display: flex; - justify-content: space-between; - align-items: center; - width: 100%; -} - -.navbar-img img { - margin: 25px; - height: 36px; - width: 170px; -} - -.navbar button { - position: relative; - background-color: rgb(248, 21, 21); - color: white; - padding: 10px; - margin: 25px; - border-radius: 5px; - border: none; - font-size: 15px; - font-weight: 500; - cursor: pointer; -} - -button:hover { - background-color: rgb(228, 11, 11); -} - -section p { - color: white; -} diff --git a/app.js b/app.js new file mode 100644 index 0000000..5b41763 --- /dev/null +++ b/app.js @@ -0,0 +1,14 @@ +const faqs = document.querySelectorAll(".faq"); + +faqs.forEach(faq => { + faq.addEventListener("click", () => { + faq.classList.toggle("open"); + + const icon = faq.querySelector(".faq-icon i") + if(icon.className = "uil uil-plus") { + icon.className = "uil uil-times" + } else { + icon.className = "uil uil-plus" + } + }) +}) \ No newline at end of file diff --git a/assets/images/bgg.jpg b/assets/images/bgg.jpg deleted file mode 100644 index 6017e0c..0000000 Binary files a/assets/images/bgg.jpg and /dev/null differ diff --git a/assets/images/logoo.png b/assets/images/logoo.png deleted file mode 100644 index 60a40d8..0000000 Binary files a/assets/images/logoo.png and /dev/null differ diff --git a/index.html b/index.html index 231fc66..d49cda9 100644 --- a/index.html +++ b/index.html @@ -1,25 +1,118 @@ - - - - - Netflix Clone - - - -
-
- -
-
- - + + + + FAQs + + + + + + + + + + + + + + + +
+

frequently asked questions

+
+
+
+

What is Netflix? + +

+

+ 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.

+ You can watch as much as you want, whenever you want without a single commercial – all for one low monthly price. There's always something new to discover and new TV shows and movies are added every week! +

+
+
+ +
+
+

How much does Netflix cost? + +

+

+ Watch Netflix on your smartphone, tablet, Smart TV, laptop, or streaming device, all for one fixed monthly fee. Plans range from ₦1,200 to ₦4,400 a month. No extra costs, no contracts. +

+
+
+ +
+
+

Where can I watch? + +

+

+ Watch anywhere, anytime. 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, including smart TVs, smartphones, tablets, streaming media players and game consoles.

+ You can also download your favorite shows with the iOS, Android, or Windows 10 app. Use downloads to watch while you're on the go and without an internet connection. Take Netflix with you anywhere. +

+
+
+ +
+
+

How do I cancel? + +

+

+ Netflix is flexible. There are no pesky contracts and no commitments. You can easily cancel your account online in two clicks. There are no cancellation fees – start or stop your account anytime. +

+
+
+ +
+
+

What can I watch on Netflix? + +

+

+ Netflix has an extensive library of feature films, documentaries, TV shows, anime, award-winning Netflix originals, and more. Watch as much as you want, anytime you want. +

+
+
+ +
+
+

Is Netflix good for kids? + +

+

+ The Netflix Kids experience is included in your membership to give parents control while kids enjoy family-friendly TV shows and movies in their own space.

+ Kids profiles come with PIN-protected parental controls that let you restrict the maturity rating of content kids can watch and block specific titles you don’t want kids to see. +

+
+
+
+
+ + + + +
+ +
+ + + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..0f7ebf8 --- /dev/null +++ b/style.css @@ -0,0 +1,155 @@ +*{ + margin: 0; + padding: 0; + box-sizing: border-box; + scroll-behavior: smooth; +} +:root{ + --transition: all linear .3s; +} +body{ + font-family: 'IBM Plex Sans', sans-serif; + font-family: 'Instrument Sans', sans-serif; + background: #030120; + color: #fff; +} +.section-center{ + width: 85%; + margin: 0 auto; +} +@media screen and (min-width:768px){ + .section-center{ + width: 82%; + } +} + + +/* ---------- FAQs -------- */ +.faqs{ + margin-bottom: 16px; +} +.faqs h1{ + font-size: 2rem; + text-transform: capitalize; + margin-bottom: 16px; + max-width: 304px; +} +.faq:not(.faq-ans){ + background: #2d2d2d; + margin-bottom: 8px; + padding: 16px; + cursor: pointer; +} +.faq:hover{ + background: hsl(0, 0%, 30%); + transition: var(--transition); +} +.faq-icon{ + position: absolute; + right: 0; + font-size: 1.3rem; + font-weight: 400; +} +.faq-ques{ + position: relative; + padding: 8px; + /* border-bottom: 1px solid #030120; + border-width: 20%; */ +} +.faq-ans{ + margin-top: 16px; + padding: 16px 8px; + display: none; +} +.faq h4, p{ + font-weight: 400; + font-size: 1.07rem; + line-height: 24px; +} +.faq.open .faq-ans{ + display: block; +} +/* bg #132144 +on hover #223362 */ + +@media screen and (min-width:678px){ + .faqs h1{ + font-size: 2.5rem; + max-width: 100%; + } + .faq .faq-ques, .faq .faq-ans{ + font-size: 1.5rem; + } + .faq-ques{ + padding: 10px; + } + .faq-ans{ + line-height: 30px; + } + .faq-icon{ + font-size: 1.9rem; + } +} + + + +/* ---------- email address -------- */ +/* .email-address{ + border: 4px solid transparent; + border-radius: 1rem; + border-image: linear-gradient(to right, red, blue) 1; + padding: 1rem 1rem; +} */ +.email-title h2{ + font-weight: 100; + font-size: 1.2rem; + padding-bottom: 16px; +} +.form-control{ + padding: 15px; + width: 380px; + background: hsl(0, 0%, 7%); + border: 1px solid #8a817c; + border-radius: 5px; + margin-bottom: 13px; + color: #fff; + font-weight: 600; +} +input::placeholder{ + font-size: 1rem; + color: #b2beb5; + font-weight: 600; +} +.btn{ + text-transform: capitalize; + padding: 13px; + font-size: 1rem; + background: red; + color: #fff; + font-weight: 600; + border: 1px solid red; + border-radius: 5px; + cursor: pointer; +} +.btn:hover{ + background: #dd1a1a; + transition: var(--transition); +} + +@media screen and (min-width: 768px){ + .hero-text{ + font-size: 3.7rem; + max-width: 912px; + } + .email-form{ + display: flex; + justify-content: flex-start; + flex-wrap: wrap; + } + .form-control{ + min-width: 384; + } + .btn{ + margin-left: 8px; + } +} \ No newline at end of file