contaigents
Version:
Modular AI Content Ecosystem with Audio Generation
70 lines (64 loc) • 1.89 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Text Banner</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;
}
.banner {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
background: linear-gradient(90deg, {{background_color}} 0%, {{background_color}}ee 50%, {{background_color}} 100%);
position: relative;
}
.banner::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
pointer-events: none;
}
.content {
color: {{text_color}};
font-size: {{font_size}}px;
font-weight: bold;
line-height: 1.2;
max-width: 90%;
word-wrap: break-word;
white-space: pre-wrap;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
z-index: 1;
position: relative;
}
{{custom_css}}
</style>
</head>
<body>
<div class="banner">
<div class="content">{{text}}</div>
</div>
</body>
</html>