CODING PRACTICE 2 Chat Page In this assignment, let's build a Chat Page by applying the concepts we learned till now.

  Chat Page

In this assignment, let's build a Chat Page by applying the concepts we learned till now.


Refer to the below image.


chat-page-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/chatbg.png


chat-page-bg


CSS Colors used:

Text color Hex Code value:

  • #ffffff

Background color Hex Code value for heading:

  • #323f4b

Background color Hex Code values for Chat messages:

  • #47a3f3
  • #52606d


CSS Font families used:

  • 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></head> <body> <div class="background-image"> <h1 class="fist-name">Rahul</h1> <div class="textbox"> <p class="msg-sent message-text">hai</p> <p class="msg-recever message-text">hello</p> <p class="msg-sent message-text">chepu</p> <p class="msg-recever message-text">em ledhu</p> <p class="msg-sent message-text">anthyna</p> <p class="msg-recever message-text">ha anthy</p> <p class="msg-sent message-text">okay bye</p> </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"); .background-image { background-image: url("https://d1tgh8fmlzexmh.cloudfront.net/ccbp-static-website/chatbg.png"); background-size: cover; } .fist-name { text-align: center; background-color: #323f4b; color: #ffffff; font-family: Roboto; font-size: 25px; font-weight: 600; padding: 20px; } .text-box { padding: 20px; } .msg-sent { border-top-right-radius: 8px; border-top-left-radius: 8px; border-bottom-left-radius: 8px; text-align: right; background-color: #47a3f3; } .msg-recever { border-top-right-radius: 8px; border-top-left-radius: 8px; border-bottom-right-radius: 8px; background-color: #52606d; } .message-text { color: #ffffff; font-family: "Roboto"; font-size: 15px; padding: 15; }

<!DOCTYPE html>

<html
 <!DOCTYPE html> <html>

Comments

Popular posts from this blog

CODING ASSIGNMENT 4

CODING PRACTICE 11 Music Page

CODING ASSIGNMENT 3