Spaces:
Running

FulanoDSADA commited on
Commit
94cedbe
·
verified ·
1 Parent(s): fe3e5c4

recriar deixando esse codigo mais moderno

Browse files

<!doctype html>
<html lang="pt-BR">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Fatura / Invoice</title>
<style>
:root{
--bg:#f6f8fb; --card:#ffffff; --muted:#6b7280; --accent:#0b63d6;
--success:#0ea5a1; --danger:#ef4444; --shadow: 0 6px 18px rgba(13,24,40,0.08);
font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
html,body{height:100%;margin:0;background:var(--bg);}
.container{max-width:900px;margin:32px auto;padding:24px;}
.card{background:var(--card);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
header{display:flex;justify-content:space-between;align-items:flex-start;padding:28px 28px 10px 28px}
.brand{display:flex;gap:16px;align-items:center}
.logo{width:72px;height:72px;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.logo img{width:100%;height:100%;object-fit:contain}
.company{font-size:14px;color:#111827}
.company strong{display:block;font-size:18px}
.meta{display:flex;gap:18px;flex-direction:column;align-items:flex-end}
.meta .item{font-size:14px;color:var(--muted)}
.meta .value{font-weight:700;color:#111827}

.content{padding:0 28px 28px 28px}
.addresses{display:flex;gap:32px;padding:18px 0}
.address{flex:1}
.address h4{margin:0 0 6px 0;font-size:13px;color:var(--muted)}
.address p{margin:0;font-weight:600}

table{width:100%;border-collapse:collapse;margin-top:12px}
th,td{padding:12px 10px;text-align:left;border-bottom:1px solid #eef2f7}
th{font-size:13px;color:var(--muted);font-weight:600}
td.desc{width:50%}
.qty{width:80px;text-align:center}
.right{text-align:right}

.totals{display:flex;justify-content:flex-end;margin-top:18px}
.totals .box{width:320px}
.totals table{width:100%}
.totals td{padding:8px 6px;border:none}
.totals .label{color:var(--muted)}
.grand{font-size:18px;font-weight:800;color:#111827}

.notes{margin-top:20px;font-size:13px;color:var(--muted)}

.actions{display:flex;justify-content:space-between;align-items:center;padding:18px;border-top:1px solid #eef2f7}
.left-actions{display:flex;gap:8px}
.btn{background:var(--accent);color:white;padding:10px 14px;border-radius:8px;border:none;cursor:pointer;font-weight:600}
.btn.outline{background:transparent;border:1px solid #e6eefc;color:var(--accent)}

.qr{display:flex;gap:14px;align-items:center}
.qr .box{width:96px;height:96px;background:#f3f4f6;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--muted)}

@media (max-width:720px){
header{flex-direction:column;gap:12px}
.addresses{flex-direction:column}
.meta{align-items:flex-start}
.totals{justify-content:flex-start}
.totals .box{width:100%}
}
</style>
</head>
<body>
<div class="container">
<div class="card">
<header>
<div class="brand">
<div class="logo">
<img src="https://firebasestorage.googleapis.com/v0/b/jobco-prod.appspot.com/o/system%2Frelationship-managers%2F67216e9bb9b2254e21cd50cb_Logo-S%20(2).svg?alt=media&token=4dfd7478-4f79-4cac-ac04-454f07c32ade" alt="Logo" />
</div>
<div class="company">
<strong>Nome da Empresa LTDA</strong>
<div style="font-size:13px;color:var(--muted)">Rua Exemplo, 100 — Bairro — Cidade, UF</div>
<div style="font-size:13px;color:var(--muted)">CNPJ: 00.000.000/0000-00 | Tel: (00) 0 0000-0000</div>
</div>
</div>

<div class="meta">
<div class="item">Fatura <span class="value">#INV-2025-001</span></div>
<div class="item">Emissão: <span class="value">07/10/2025</span></div>
<div class="item">Vencimento: <span class="value">21/10/2025</span></div>
</div>
</header>

<div class="content">
<div class="addresses">
<div class="address">
<h4>Faturar para</h4>
<p>Nome do Cliente ou Empresa<br/>Av. Cliente, 123 — Sala 12<br/>Cidade - UF<br/>CPF/CNPJ: 111.222.333-44<br/>contato@cliente.com</p>
</div>

<div class="address">
<h4>Remetente</h4>
<p>Nome da Empresa LTDA<br/>Banco: 000 | Agência: 0000 | Conta: 000000-0</p>
</div>
</div>

<table>
<thead>
<tr>
<th class="desc">Descrição</th>
<th>Unitário</th>
<th class="qty">Qtd</th>
<th class="right">Total</th>
</tr>
</thead>
<tbody>
<tr>
<td class="desc">Serviço de desenvolvimento - Implementação do sistema</td>
<td>R$ 3.500,00</td>
<td class="qty">1</td>
<td class="right">R$ 3.500,00</td>
</tr>
<tr>
<td class="desc">Suporte (mensal)</td>
<td>R$ 500,00</td>
<td class="qty">2</td>
<td class="right">R$ 1.000,00</td>
</tr>
<tr>
<td class="desc">Horas extras</td>
<td>R$ 120,00</td>
<td class="qty">5</td>
<td class="right">R$ 600,00</td>
</tr>
</tbody>
</table>

<div class="totals">
<div class="box">
<table>
<tr>
<td class="label">Subtotal</td>
<td class="right">R$ 5.100,00</td>
</tr>
<tr>
<td class="label">Desconto</td>
<td class="right">R$ 0,00</td>
</tr>
<tr>
<td class="label">Imposto (IPI/ISS)</td>
<td class="right">R$ 0,00</td>
</tr>
<tr style="border-top:1px solid #eef2f7">
<td class="grand">Total a pagar</td>
<td class="grand right">R$ 5.100,00</td>
</tr>
</table>
</div>
</div>

<div style="display:flex;justify-content:space-between;align-items:center;margin-top:18px;gap:16px;flex-wrap:wrap">
<div class="notes">
<strong>Instruções de pagamento</strong>
<div>Pagamento por transferência bancária para: Banco X — Agência 0000 — Conta 000000-0 — Favorecido: Nome da Empresa LTDA.</div>
<div style="margin-top:8px">Ao efetuar o pagamento, envie o comprovante para <u>financeiro@empresa.com</u>.</div>
</div>

<div class="qr">
<div class="box">QR</div>
<div style="font-size:13px;color:var(--muted)">PIX: 000.000.000-00<br/>Chave: chave@pix.com</div>
</div>
</div>
</div>

<div class="actions">
<div class="left-actions">
<button class="btn" onclick="document.querySelector('#download').click()">Baixar (HTML)</button>
<button class="btn outline" onclick="window.print()">Imprimir</button>
</div>

<div style="font-size:13px;color:var(--muted)">Status: <strong style="color:var(--danger)">Pendente</strong></div>
</div>
</div>
</div>

<a id="download" style="display:none"></a>
<script>
(function(){
const a = document.getElementById('download');
const html = '<!doctype html>'+document.documentElement.outerHTML;
const blob = new Blob([html],{type:'text/html'});
a.href = URL.createObjectURL(blob);
a.download = 'fatura.html';
})();
</script>
</body>
</html>

2 files changed +227 -23
Files changed (2)
README.md+9-5
index.html+218-18