CODING PRACTICE 6 Hotel Booking Page

 Hotel Booking Page

In this assignment, let's build a Hotel Booking Page by applying the concepts we learned till now. You can use the Bootstrap concepts as well.


Refer to the below image.


webpage-on-news-to-build


Note:

Try to achieve the design as close as possible.


Resources

Use this background image,


URL: https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/hotelbg.png


background-image-for-news


CSS Colors used:

Background color Hex Code value for card:

  • #000000e6

Background color Hex Code value for button:

  • #ffffff

Text color Hex Code value:

  • #ffffff


CSS Font families used:

  • Bree Serif
  • 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="main-continer d-flex flex-column justify-content-end"> <div class="text-min-continer"> <h1 class="main-heading">ROYAL GRAND HOTEL</h1> <p class="pragraph">R.K. Beatch, Visakhapatnam</p> <p class="amount-continer">1200/-</p> </div> <div class="button2"> <button class="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");


.main-continer {

    background-image: url("https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/hotelbg.png");

    height: 100vh;

    background-size: cover;

}


.text-min-continer {

    background-color: #000000e6;

    border-radius: 10px;

    color: #ffffff;

    margin: 15px;

    padding: 15px;

}


.main-heading {

    color: #ffffff;

    font-family: "Bree Serif";

    font-size: 25px;

}


.pragraph {

    color: #ffffff;

}


.amount-continer {

    color: #ffffff;

    font-family: "Roboto";

    font-weight: bold;

}


.button {

    background-color: #ffffff;

    font-family: "Roboto";

    border-radius: 8px;

    height: 40px;

    width: 120px;

    font-size: 15px;

}


.button2 {

    text-align: center;

    margin: 20px;

}


Comments

Popular posts from this blog

CODING ASSIGNMENT 4

CODING PRACTICE 11 Music Page

CCBP Static Website Coding Assignment 2 Solution | Yoga Page