contaigents
Version:
Modular AI Content Ecosystem with Audio Generation
56 lines (51 loc) • 1.45 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Text Card</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: {{width}}px;
height: {{height}}px;
background-color: {{background_color}};
font-family: {{font_family}};
display: flex;
align-items: center;
justify-content: center;
padding: {{padding}}px;
overflow: hidden;
}
.card {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
background: linear-gradient(135deg, {{background_color}} 0%, {{background_color}}dd 100%);
}
.content {
color: {{text_color}};
font-size: {{font_size}}px;
line-height: 1.4;
max-width: 90%;
word-wrap: break-word;
white-space: pre-wrap;
}
{{custom_css}}
</style>
</head>
<body>
<div class="card">
<div class="content">{{text}}</div>
</div>
</body>
</html>