UNPKG

contaigents

Version:

Modular AI Content Ecosystem with Audio Generation

143 lines (125 loc) 3.78 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Social Media Post</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { width: {{width}}px; height: {{height}}px; background: {{background_color}}; font-family: {{font_family}}; display: flex; flex-direction: column; padding: {{padding}}px; overflow: hidden; position: relative; } .header { display: flex; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid {{text_color}}22; } .profile-pic { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(45deg, {{text_color}}44, {{text_color}}66); display: flex; align-items: center; justify-content: center; color: {{background_color}}; font-size: 24px; font-weight: bold; margin-right: 15px; } .profile-info { flex: 1; } .username { color: {{text_color}}; font-size: calc({{font_size}}px * 0.8); font-weight: bold; margin-bottom: 5px; } .handle { color: {{text_color}}88; font-size: calc({{font_size}}px * 0.6); } .content { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; } .main-text { color: {{text_color}}; font-size: {{font_size}}px; line-height: 1.5; max-width: 90%; word-wrap: break-word; white-space: pre-wrap; } .footer { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 20px; border-top: 2px solid {{text_color}}22; } .timestamp { color: {{text_color}}66; font-size: calc({{font_size}}px * 0.6); } .engagement { display: flex; gap: 20px; } .engagement-item { color: {{text_color}}88; font-size: calc({{font_size}}px * 0.6); display: flex; align-items: center; gap: 5px; } .hashtags { color: {{text_color}}aa; font-size: calc({{font_size}}px * 0.7); margin-top: 15px; text-align: center; } {{custom_css}} </style> </head> <body> <div class="header"> <div class="profile-pic">{{profile_initial}}</div> <div class="profile-info"> <div class="username">{{username}}</div> <div class="handle">@{{handle}}</div> </div> </div> <div class="content"> <div class="main-text">{{text}}</div> </div> <div class="hashtags">{{hashtags}}</div> <div class="footer"> <div class="timestamp">{{timestamp}}</div> <div class="engagement"> <div class="engagement-item">♥ {{likes}}</div> <div class="engagement-item">↻ {{shares}}</div> <div class="engagement-item">💬 {{comments}}</div> </div> </div> </body> </html>