contaigents
Version:
Modular AI Content Ecosystem with Audio Generation
104 lines (93 loc) • 2.82 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Code Block</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: {{width}}px;
height: {{height}}px;
background-color: {{background_color}};
font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
display: flex;
align-items: center;
justify-content: center;
padding: {{padding}}px;
overflow: hidden;
}
.code-container {
width: 100%;
height: 100%;
background-color: #1e1e1e;
border-radius: 8px;
border: 1px solid #333;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.code-header {
background-color: #2d2d2d;
padding: 12px 16px;
border-bottom: 1px solid #333;
display: flex;
align-items: center;
gap: 8px;
}
.code-dots {
display: flex;
gap: 6px;
}
.code-dot {
width: 12px;
height: 12px;
border-radius: 50%;
}
.code-dot.red { background-color: #ff5f56; }
.code-dot.yellow { background-color: #ffbd2e; }
.code-dot.green { background-color: #27ca3f; }
.code-title {
color: #ccc;
font-size: 12px;
margin-left: 12px;
}
.code-content {
flex: 1;
padding: 20px;
color: {{text_color}};
font-size: {{font_size}}px;
line-height: 1.4;
white-space: pre-wrap;
word-wrap: break-word;
overflow-y: auto;
background-color: #1e1e1e;
}
/* Syntax highlighting colors */
.keyword { color: #569cd6; }
.string { color: #ce9178; }
.comment { color: #6a9955; }
.number { color: #b5cea8; }
.function { color: #dcdcaa; }
{{custom_css}}
</style>
</head>
<body>
<div class="code-container">
<div class="code-header">
<div class="code-dots">
<div class="code-dot red"></div>
<div class="code-dot yellow"></div>
<div class="code-dot green"></div>
</div>
<div class="code-title">code.txt</div>
</div>
<div class="code-content">{{text}}</div>
</div>
</body>
</html>