Spaces:
Running
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>
Files changed (2)
- README.md+9-5
- index.html+218-18
12345678910---title: Undefinedemoji: 📊colorFrom: greencolorTo: graysdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference1234567891011121314---title: undefinedcolorFrom: pinkcolorTo: purpleemoji: 🐳sdk: staticpinned: falsetags:- deepsite-v3---# Welcome to your new DeepSite project!This project was created with [DeepSite](https://deepsite.hf.co).
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219<!DOCTYPE html><html lang="pt-BR"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Fatura/Invoice</title><script src="https://cdn.tailwindcss.com"></script><script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script><script>tailwind.config = {theme: {extend: {colors: {primary: '#3B82F6',secondary: '#10B981',muted: '#6B7280',danger: '#EF4444',success: '#10B981'}}}}</script><style>@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');body {font-family: 'Inter', system-ui, -apple-system, sans-serif;}.invoice-card {box-shadow: 0 6px 18px rgba(13,24,40,0.08);}.logo-container {background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);}.total-row {border-top: 1px solid #eef2f7;}.qr-container {background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);}</style></head><body class="bg-gray-50 min-h-screen py-8 px-4 sm:px-6"><div class="max-w-4xl mx-auto"><div class="invoice-card bg-white rounded-xl overflow-hidden"><!-- Header --><div class="flex flex-col sm:flex-row justify-between items-start p-7 sm:p-8 border-b border-gray-100"><div class="flex items-center space-x-4 mb-6 sm:mb-0"><div class="logo-container w-16 h-16 rounded-lg flex items-center justify-center"><img src="https://static.photos/technology/200x200/42" alt="Company Logo" class="w-12 h-12 object-contain"></div><div><h1 class="text-lg font-bold text-gray-900">Nome da Empresa LTDA</h1><p class="text-xs text-muted">Rua Exemplo, 100 — Bairro — Cidade, UF</p><p class="text-xs text-muted">CNPJ: 00.000.000/0000-00 | Tel: (00) 0 0000-0000</p></div></div><div class="space-y-2"><div class="flex items-center"><span class="text-sm text-muted mr-2">Fatura:</span><span class="font-bold text-gray-900">#INV-2025-001</span></div><div class="flex items-center"><span class="text-sm text-muted mr-2">Emissão:</span><span class="font-bold text-gray-900">07/10/2025</span></div><div class="flex items-center"><span class="text-sm text-muted mr-2">Vencimento:</span><span class="font-bold text-gray-900">21/10/2025</span></div></div></div><!-- Content --><div class="p-7 sm:p-8"><!-- Addresses --><div class="flex flex-col md:flex-row gap-6 py-5 border-b border-gray-100"><div class="flex-1"><h4 class="text-xs font-medium uppercase text-muted mb-2">Faturar para</h4><p class="font-semibold text-gray-900">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="flex-1"><h4 class="text-xs font-medium uppercase text-muted mb-2">Remetente</h4><p class="font-semibold text-gray-900">Nome da Empresa LTDA<br>Banco: 000 | Agência: 0000 | Conta: 000000-0</p></div></div><!-- Items Table --><div class="mt-6 overflow-x-auto"><table class="w-full"><thead><tr class="border-b border-gray-100"><th class="text-left text-xs font-medium text-muted py-3 px-2">Descrição</th><th class="text-left text-xs font-medium text-muted py-3 px-2">Unitário</th><th class="text-center text-xs font-medium text-muted py-3 px-2">Qtd</th><th class="text-right text-xs font-medium text-muted py-3 px-2">Total</th></tr></thead><tbody><tr class="border-b border-gray-100"><td class="py-3 px-2 font-medium text-gray-900">Serviço de desenvolvimento - Implementação do sistema</td><td class="py-3 px-2 text-muted">R$ 3.500,00</td><td class="py-3 px-2 text-center text-muted">1</td><td class="py-3 px-2 text-right font-medium text-gray-900">R$ 3.500,00</td></tr><tr class="border-b border-gray-100"><td class="py-3 px-2 font-medium text-gray-900">Suporte (mensal)</td><td class="py-3 px-2 text-muted">R$ 500,00</td><td class="py-3 px-2 text-center text-muted">2</td><td class="py-3 px-2 text-right font-medium text-gray-900">R$ 1.000,00</td></tr><tr class="border-b border-gray-100"><td class="py-3 px-2 font-medium text-gray-900">Horas extras</td><td class="py-3 px-2 text-muted">R$ 120,00</td><td class="py-3 px-2 text-center text-muted">5</td><td class="py-3 px-2 text-right font-medium text-gray-900">R$ 600,00</td></tr></tbody></table></div><!-- Totals --><div class="mt-6 flex justify-end"><div class="w-full sm:w-80"><table class="w-full"><tr><td class="py-2 text-sm text-muted">Subtotal</td><td class="py-2 text-right text-gray-900">R$ 5.100,00</td></tr><tr><td class="py-2 text-sm text-muted">Desconto</td><td class="py-2 text-right text-gray-900">R$ 0,00</td></tr><tr><td class="py-2 text-sm text-muted">Imposto (IPI/ISS)</td><td class="py-2 text-right text-gray-900">R$ 0,00</td></tr><tr class="total-row"><td class="py-3 text-lg font-bold text-gray-900">Total a pagar</td><td class="py-3 text-right text-lg font-bold text-gray-900">R$ 5.100,00</td></tr></table></div></div><!-- Payment Info --><div class="mt-8 flex flex-col md:flex-row justify-between items-start md:items-center gap-6"><div class="flex-1"><h4 class="text-sm font-medium text-gray-900 mb-2">Instruções de pagamento</h4><p class="text-sm text-muted">Pagamento por transferência bancária para: Banco X — Agência 0000 — Conta 000000-0 — Favorecido: Nome da Empresa LTDA.</p><p class="text-sm text-muted mt-2">Ao efetuar o pagamento, envie o comprovante para <span class="text-primary underline">financeiro@empresa.com</span>.</p></div><div class="flex items-center gap-4"><div class="qr-container w-24 h-24 rounded-lg flex items-center justify-center"><i data-feather="image" class="text-muted"></i></div><div class="text-sm text-muted"><span class="block font-medium">PIX:</span><span>000.000.000-00</span><br><span class="font-medium">Chave:</span> chave@pix.com</div></div></div></div><!-- Footer --><div class="flex flex-col sm:flex-row justify-between items-center p-5 border-t border-gray-100"><div class="flex space-x-3 mb-4 sm:mb-0"><button onclick="downloadInvoice()" class="flex items-center justify-center px-4 py-2 bg-primary text-white rounded-lg font-medium hover:bg-opacity-90 transition"><i data-feather="download" class="w-4 h-4 mr-2"></i>Baixar (PDF)</button><button onclick="window.print()" class="flex items-center justify-center px-4 py-2 border border-primary text-primary rounded-lg font-medium hover:bg-gray-50 transition"><i data-feather="printer" class="w-4 h-4 mr-2"></i>Imprimir</button></div><div class="flex items-center"><span class="text-sm text-muted mr-2">Status:</span><span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800"><i data-feather="alert-circle" class="w-3 h-3 mr-1"></i>Pendente</span></div></div></div></div><script>function downloadInvoice() {// Simulate PDF downloadconst a = document.createElement('a');a.href = '#';a.download = 'invoice-INV-2025-001.pdf';a.click();}// Initialize feather iconsdocument.addEventListener('DOMContentLoaded', function() {feather.replace();});</script></body></html>