Write me html and css code for a simple clone of twitter's UI
- User
Write me html and css code for a simple clone of twitter's UI
Assistant
<!DOCTYPE html> <html> <head> <title>Twitter Clone</title> <link rel="stylesheet" href="style.css"> </head> <body> <header> <a href="/"> <img src="images/twitter-logo.png" alt="Twitter Logo"> </a> <nav> <ul> <li><a href="#">Home</a></li> <li><a href="#">Tweets</a></li> <li><a href="#">Messages</a></li> <li><a href="#">Settings</a></li> </ul> </nav> </header> <main> <section> <div class="tweet"> <img src="images/user.png" alt="User Profile Picture"> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas faucibus mi ac justo pretium, vel tincidunt libero semper. </p> <a href="#">Reply</a> <a href="#">Retweet</a> <a href="#">Like</a> </div> <div class="tweet"> <img src="images/user.png" alt="User Profile Picture"> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas faucibus mi ac justo pretium, vel tincidunt libero semper. </p> <a href="#">Reply</a> <a href="#">Retweet</a> <a href="#">Like</a> </div> <div class="tweet"> <img src="images/user.png" alt="User Profile Picture"> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas faucibus mi ac justo pretium, vel tincidunt libero semper. </p> <a href="#">Reply</a> <a href="#">Retweet</a> <a href="#">Like</a> </div> </section> <section> <form action="#">- User
continue if necessary
Assistant
<input type="text" placeholder="What's happening?"> <button>Tweet</button> </form> </section> </main> <footer> <p>© 2023 Twitter</p> </footer> </body> </html>body { font-family: sans-serif; margin: 0; } header { background-color: #1da1f2; padding: 20px; display: flex; align-items: center; justify-content: space-between; } header a { color: white; text-decoration: none; } header img { height: 30px; } nav { list-style: none; padding: 0; margin: 0; } nav li { display: inline-block; margin-left: 20px; } nav a { color: white; text-decoration: none; } main { padding: 20px; } section { margin-top: 20px; } .tweet { margin-bottom: 20px; border: 1px solid #ddd; padding: 20px; } .tweet img { float: left; width: 50px; height: 50px; border-radius: 50%; } .tweet p { margin-left: 60px; } footer { padding: 20px; background-color: #f5f5f5; text-align: center; }- User
continue if necessary
Assistant
Thank you, I like it.