contaigents
Version:
Modular AI Content Ecosystem with Audio Generation
116 lines (105 loc) • 3.34 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Enhanced Quote</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: {{width}}px;
height: {{height}}px;
background: linear-gradient(135deg, {{background_color}} 0%, {{background_color}}dd 50%, {{background_color}}aa 100%);
font-family: {{font_family}};
display: flex;
align-items: center;
justify-content: center;
padding: {{padding}}px;
overflow: hidden;
position: relative;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
pointer-events: none;
}
.quote-container {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
position: relative;
z-index: 1;
}
.quote-mark-open {
font-size: calc({{font_size}}px * 2.5);
color: {{text_color}}44;
line-height: 0.5;
margin-bottom: 20px;
font-family: Georgia, serif;
}
.quote-text {
color: {{text_color}};
font-size: {{font_size}}px;
font-style: italic;
line-height: 1.6;
max-width: 85%;
word-wrap: break-word;
white-space: pre-wrap;
margin-bottom: 30px;
position: relative;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.quote-attribution {
color: {{text_color}}cc;
font-size: calc({{font_size}}px * 0.75);
font-style: normal;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
}
.quote-attribution::before {
content: "— ";
font-weight: normal;
}
.quote-date {
color: {{text_color}}88;
font-size: calc({{font_size}}px * 0.6);
font-style: normal;
font-weight: normal;
margin-top: 10px;
letter-spacing: 0.5px;
}
.quote-mark-close {
font-size: calc({{font_size}}px * 2.5);
color: {{text_color}}44;
line-height: 0.5;
margin-top: 20px;
font-family: Georgia, serif;
transform: rotate(180deg);
}
{{custom_css}}
</style>
</head>
<body>
<div class="quote-container">
<div class="quote-mark-open">"</div>
<div class="quote-text">{{text}}</div>
<div class="quote-attribution">{{author}}</div>
{{#if date}}<div class="quote-date">{{date}}</div>{{/if}}
<div class="quote-mark-close">"</div>
</div>
</body>
</html>