Persano commited on
Commit
99ec7a4
verified
1 Parent(s): f6d248f

Create relatorio_pdf.html

Browse files
Files changed (1) hide show
  1. templates/relatorio_pdf.html +66 -0
templates/relatorio_pdf.html ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="pt-BR">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <title>Relat贸rio Simula莽茫o de Investimentos</title>
6
+ <style>
7
+ body {
8
+ font-family: Arial, sans-serif;
9
+ font-size: 12px;
10
+ margin: 20px;
11
+ color: #333;
12
+ }
13
+ h1, h2 {
14
+ text-align: center;
15
+ color: #2c3e50;
16
+ margin-bottom: 10px;
17
+ }
18
+ table {
19
+ width: 100%;
20
+ border-collapse: collapse;
21
+ margin-bottom: 25px;
22
+ }
23
+ th, td {
24
+ border: 1px solid #000;
25
+ padding: 6px 8px;
26
+ text-align: right;
27
+ }
28
+ th {
29
+ background-color: #007bff;
30
+ color: white;
31
+ text-align: center;
32
+ }
33
+ .resultado-destaque {
34
+ border: 2px solid #2e7d32;
35
+ background-color: #e8f5e9;
36
+ padding: 10px;
37
+ font-weight: bold;
38
+ text-align: center;
39
+ color: #2e7d32;
40
+ margin-top: 20px;
41
+ border-radius: 5px;
42
+ }
43
+ img {
44
+ display: block;
45
+ margin: 0 auto 25px auto;
46
+ max-width: 90%;
47
+ height: auto;
48
+ }
49
+ </style>
50
+ </head>
51
+ <body>
52
+
53
+ <h1>Simulador de Investimentos</h1>
54
+
55
+ <h2>Gr谩fico Comparativo</h2>
56
+ <img src="data:image/png;base64,{{ grafico }}" alt="Gr谩fico de Investimentos" />
57
+
58
+ {{ tabela | safe }}
59
+
60
+ <div class="resultado-destaque">
61
+ Investimento com maior retorno: {{ investimento_mais_valorizado }}<br>
62
+ Valor final estimado: R$ {{ "{:,.2f}".format(valor_mais_alto) }}
63
+ </div>
64
+
65
+ </body>
66
+ </html>