CoolFace
Apppublic

fmard/pdf-api

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
report.html88 linesDownload Raw Back to templates
1<!DOCTYPE html>2<html lang="en">3<head>4    <meta charset="UTF-8">5    <title>{{ title | default("Report") }}</title>6    <style>7        * {8            margin: 0;9            padding: 0;10            box-sizing: border-box;11        }12        body {13            font-family: 'Georgia', 'Times New Roman', serif;14            color: #333;15            font-size: 14px;16            line-height: 1.8;17            padding: 50px;18        }19        .cover {20            text-align: center;21            margin-bottom: 50px;22            padding-bottom: 40px;23            border-bottom: 2px solid #2563eb;24        }25        .cover h1 {26            font-size: 32px;27            color: #1e293b;28            margin-bottom: 15px;29            letter-spacing: -0.5px;30        }31        .cover .meta {32            color: #64748b;33            font-size: 14px;34        }35        .cover .meta span {36            margin: 0 10px;37        }38        .section {39            margin-bottom: 35px;40            page-break-inside: avoid;41        }42        .section h2 {43            font-size: 20px;44            color: #1e293b;45            margin-bottom: 12px;46            padding-bottom: 8px;47            border-bottom: 1px solid #e2e8f0;48        }49        .section p {50            color: #475569;51            text-align: justify;52            margin-bottom: 12px;53        }54        .footer {55            margin-top: 50px;56            padding-top: 20px;57            border-top: 1px solid #e2e8f0;58            text-align: center;59            color: #94a3b8;60            font-size: 12px;61        }62    </style>63</head>64<body>65    <div class="cover">66        <h1>{{ title | default("Untitled Report") }}</h1>67        <div class="meta">68            <span>By {{ author | default("Author") }}</span>69            <span>|</span>70            <span>{{ date | default("2024-01-01") }}</span>71        </div>72    </div>73 74    {% for section in sections | default([]) %}75    <div class="section">76        <h2>{{ section.heading }}</h2>77        <p>{{ section.content }}</p>78    </div>79    {% endfor %}80 81    {% if footer_text %}82    <div class="footer">83        <p>{{ footer_text }}</p>84    </div>85    {% endif %}86</body>87</html>88