this is for telegram channel post template can u make this ui good and per fect…
- User
this is for telegram channel post template can u make this ui good and per fect
<!-- Using a modern, bold font from Google Fonts --> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Roboto:wght@400;500&display=swap" rel="stylesheet"> <style> /* This is where the magic happens! */ body { /* Just for centering the final image on the page */ margin: 0; padding: 2rem; display: grid; place-items: center; background-color: #f0f0f0; font-family: 'Roboto', sans-serif; } .image-container { /* This is the main canvas for your image. 1200x675 is a standard 16:9 ratio. */ width: 1200px; height: 675px; /* ================================================= ==> 1. PASTE YOUR BACKGROUND IMAGE URL HERE <== ================================================= - Find an image online, right-click, "Copy Image Address" and paste it below. - I've used a placeholder from unsplash.com. */ background-image: url('https://images.unsplash.com/photo-1557287539-c5c2975e5108?q=80&w=1200'); background-size: cover; background-position: center; position: relative; /* This is crucial for the gradient overlay and footer */ display: flex; flex-direction: column; justify-content: center; /* Centers the text vertically */ padding: 60px; box-sizing: border-box; /* Ensures padding doesn't increase the size */ overflow: hidden; /* Hides anything that spills out */ } /* This creates the yellow gradient overlay on top of the background image */ .image-container::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; /* The gradient goes from transparent yellow at the top to solid yellow at the bottom */ background: linear-gradient( to bottom, rgba(251, 197, 49, 0) 0%, /* Start: Transparent yellow */ rgba(251, 197, 49, 0.8) 50%, /* Middle: 80% opaque yellow */ rgba(251, 197, 49, 1) 100% /* End: Solid yellow */ ); z-index: 1; /* Sits above the background image */ } /* --- Text Styling --- */ .content { position: relative; z-index: 2; /* Sits above the gradient overlay */ color: white; max-width: 80%; /* Prevents text from hitting the right edge */ } .title { /* Using the bold 'Poppins' font */ font-family: 'Poppins', sans-serif; font-size: 90px; font-weight: 700; line-height: 1.1; margin: 0 0 20px 0; text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.25); /* Adds depth */ } .attribution { font-size: 36px; font-weight: 400; margin: 0; opacity: 0.9; } /* --- Footer Styling --- */ .footer { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 60px; box-sizing: border-box; display: flex; justify-content: space-between; /* Puts items on opposite ends */ align-items: center; /* Aligns them vertically */ z-index: 2; /* Sits above the gradient */ } .channel-info { color: white; font-size: 28px; font-weight: 500; text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); } .logo { width: 120px; /* Control the size of the logo */ height: 120px; } </style><div class="image-container"> <div class="content"> <!-- ================================ ==> 2. EDIT YOUR TEXT HERE <== ================================ --> <h1 class="title"> Your Awesome Title Goes Here </h1> <p class="attribution"> - @DOUKnooW </p> </div> <div class="footer"> <div class="channel-info"> Do You Know 🐈 </div> <!-- The logo image is embedded directly into the HTML using Base64 --> <img src="https://i.ibb.co/xKx3rWvc/image.png".alt="Do You Know Cat Logo"> </div>-
Assistant
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Do You Know - Image Generator</title> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Roboto:wght@400;500&display=swap" rel="stylesheet"> <style> body { margin: 0; padding: 2rem; display: grid; place-items: center; background-color: #f0f0f0; font-family: 'Roboto', sans-serif; } .image-container { width: 1200px; height: 675px; background-image: url('https://images.unsplash.com/photo-1557287539-c5c2975e5108?q=80&w=1200'); background-size: cover; background-position: center; position: relative; display: flex; flex-direction: column; justify-content: center; padding: 60px; box-sizing: border-box; overflow: hidden; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); } .image-container::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient( to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(251, 197, 49, 0.6) 50%, rgba(251, 197, 49, 0.9) 100% ); z-index: 1; } .content { position: relative; z-index: 2; color: white; max-width: 85%; margin-bottom: 40px; } .title { font-family: 'Montserrat', sans-serif; font-size: 85px; font-weight: 800; line-height: 1.1; margin: 0 0 25px 0; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4); letter-spacing: -1px; } .attribution { font-size: 36px; font-weight: 500; margin: 0; opacity: 0.95; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); } .footer { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 60px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; z-index: 2; background: linear-gradient( to top, rgba(0, 0, 0, 0.4) 0%, transparent 100% ); } .channel-info { color: white; font-size: 32px; font-weight: 500; text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3); display: flex; align-items: center; } .channel-info::before { content: "🔍"; margin-right: 10px; font-size: 36px; } .logo { width: 120px; height: 120px; filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.3)); transition: transform 0.3s ease; } @media (max-width: 1200px) { .image-container { width: 100%; height: auto; aspect-ratio: 16/9; } .title { font-size: 60px; } .attribution { font-size: 28px; } .channel-info { font-size: 24px; } .logo { width: 90px; height: 90px; } } </style> </head> <body> <div class="image-container"> <div class="content"> <h1 class="title"> Your Awesome Title Goes Here </h1> <p class="attribution"> - @DOUKnooW </p> </div> <div class="footer"> <div class="channel-info"> Do You Know </div> <img class="logo" src="https://i.ibb.co/xKx3rWv/image.png" alt="Do You Know Cat Logo"> </div> </div> </body> </html>Would you like me to explain or break down the changes I made to the code?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.