Food Order Page CODING PRACTICE 4
Food Order Page
In this assignment, let's build a Food Order Page by applying the Bootstrap concepts we learned till now.
Refer to the below image.
Note:
Try to achieve the design as close as possible.
Resources
Use this background image,
URL: https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/foodbg.png
CSS Colors used:
Background color Hex Code value for card:
- #f6c56e
Background color Hex Code value for Button:
- #ffffff
Text color Hex code value:
- #323f4b
CSS Font families used:
Main Heading
- Bree Serif
Paragraph and Button
- Roboto
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="bg-container"> <div class="meterial d-flex flex-column justify-content-end"> <h1 class="heading">Happy Meals</h1> <p class="paragraph">Discover the best foods over the 1,000 restaurants</p> <button="button">Book Now</button> </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");
.bg-container {
background-image: url("https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/foodbg.png");
background-size: cover;
height: 100vh;
}
.meterial {
background-color: #f6c56e;
border-top-right-radius: 16px;
border-top-left-radius: 16px;
padding: 25px;
}
.button {
background-color: #ffffff;
font-family: "Roboto";
font-size: 12px;
font-weight: 500;
width: 120px;
height: 38px;
border-width: 0px;
border-radius: 8px;
}
.heading {
font-family: "BreeSerif";
font-size: 30px;
color: #323f4b;
}
.paragraph {
font-family: "Roboto";
font-size: 15px;
color: #323f4b;
}
Comments
Post a Comment