CODING PRACTICE 8 Movie Page
Movie Page
In this assignment, let's build a Movie Page by applying the concepts we learned till now. You can use the Bootstrap concepts as well.
Refer to the below image.
Note:
Try to achieve the design as close as possible.
Resources
Use the image URLs given below.
Background Image:
Carousel:
- https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/nemo-c1-img.png
- https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/nemo-c2-img.png
- https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/nemo-c3-img.png
Similar Movies:
- https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/finding-dory-img.png
- https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/bugslife-img.png
- https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/ratatouille-movie-img.png
CSS Colors used:
Text color Hex Code values:
CSS Font families used:
- Roboto
Hint
Use the Bootstrap class name justify-content-between
to get equal space between the HTML elements.
Concepts Review
Want to quickly review some of the concepts you’ve been learning?
Take a look at the Cheat Sheets.
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script> </head> <body> <div class="BackgroundImage"> <div class="Background-Carousel"> <div id="carouselExampleControls" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <div class="carousel-item active"> <img src="https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/nemo-c1-img.png" class="d-block w-100" alt="..."> </div> <div class="carousel-item"> <img src="https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/nemo-c2-img.png" class="d-block w-100" alt="..."> </div> <div class="carousel-item"> <img src="https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/nemo-c3-img.png" class="d-block w-100" alt="..."> </div> </div> <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> </div> <div class=" heading-and-buttion d-flex flex-row justify-content-between"> <h1 class="fist-heading">Finding Nemo</h1> <button class="buttion">Watch Now</button> </div> <p class="paragraph"> A clown fish, is overly cautious with his son, Nemo who has a foreshortened fin. When Nemo swims too close to the surface to prove himself, he is caught by a diver, and horrified Marlin must set out to find him. A blue reef fish named Dory joins Marlin and complicates the encounters with sharks, jellyfish, and a host of ocean dangers. Meanwhile, Nemo plots his escape from a dentist's fish tank.</p> <h1 class="similar-movies">Similar Movies</h1> <div class="Similar-Movie-img d-flex flex-row justify-content-between "> <img class="" src="https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/finding-dory-img.png" alt="" /> <img class="" src="https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/bugslife-img.png" alt="" /> <img class="" src="https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/ratatouille-movie-img.png" alt="" /> </div> </div> </body> </html>
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Caveat:wght@400;700&family=Lobster&family=Monoton&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display+SC:ital,wght@0,400;0,700;1,700&family=Playfair+Display:ital,wght@0,400;0,700;1,700&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+Pro:ital,wght@0,400;0,700;1,700&family=Work+Sans:ital,wght@0,400;0,700;1,700&display=swap');
.BackgroundImage {
background-image: url("https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/orange-color-bg.png");
background-size: cover;
}
.Background-Carousel {
border-radius: 20px;
padding: 25px;
}
.heading-and-buttion {
padding: 10px;
margin: 2px;
}
.fist-heading {
color: white;
font-weight: bold;
font-family: "Roboto";
}
.buttion {
border-radius: 8px;
color: #ff8348;
background-color: white;
font-family: "Roboto";
width: 150px;
border-width: 0px;
}
.paragraph {
text-align: center;
font-size: 10px;
color: white;
font-family: "Roboto";
padding: 5px;
}
.similar-movies {
color: white;
font-family: "Roboto";
font-size: 25px;
}
.Similar-Movie-img {
border-radius: 15px;
margin-left: 5px;
margin-right: 5px;
}
Comments
Post a Comment