contaigents
Version:
Modular AI Content Ecosystem with Audio Generation
68 lines (61 loc) • 1.79 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Enhanced Card</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;
align-items: center;
justify-content: center;
padding: {{padding}}px;
overflow: hidden;
position: relative;
}
.content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
color: {{text_color}};
line-height: 1.4;
text-align: left;
}
.text-content {
font-size: {{font_size}}px;
font-weight: 600;
white-space: pre-line;
word-wrap: break-word;
line-height: 1.5;
}
/* Enhanced paragraph spacing for better readability */
.text-content {
/* Add space between paragraphs by detecting double line breaks */
white-space: pre-line;
}
/* Style the first line as a title if it contains common title indicators */
.text-content::first-line {
font-size: calc({{font_size}}px * 1.25);
font-weight: 700;
line-height: 1.2;
}
{{custom_css}}
</style>
</head>
<body>
<div class="content">
<div class="text-content">{{text}}</div>
</div>
</body>
</html>