Spaces:
Running

undefined / index.html
FulanoDSADA's picture
generate an html website compatible with power automate, using the code below;
400df31 verified
Raw History Blame Contribute Delete
3.32 kB
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Fatura de Cobrança</title>
</head>
<body style="background-color:#f3f4f6; padding:15px; font-family:Arial, sans-serif; font-size:12px;">
<div style="max-width:700px; margin:0 auto; background-color:#ffffff; padding:20px; border-radius:8px; box-shadow:0 1px 4px rgba(0,0,0,0.1);">
<!-- Cabeçalho -->
<div style="display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #d1d5db; padding-bottom:5px; margin-bottom:15px;">
<div style="font-size:22px; font-weight:bold; line-height:1.2;">
<span style="color:#1f2937;">X</span><span style="color:#1f2937;">COOP</span>
<p style="margin:2px 0; color:#1f2937; font-size:10px; font-weight:normal;">COOP IT COOPERATIVA DE TRABALHO</p>
<p style="margin:2px 0; color:#1f2937; font-size:10px; font-weight:normal;">CNPJ: 39.491.243/0001-05</p>
</div>
<div style="text-align:right; font-size:12px;">
<h1 style="font-size:20px; font-weight:bold; color:#1f2937; margin:0;">FATURA</h1>
<p style="margin:1px 0; color:#1f2937;">@{outputs('Obter_item')?['body/Title']}</p>
<p style="margin:1px 0; color:#1f2937;">Emissão: @{formatDateTime(triggerOutputs()?['body/field_1'], 'dd/MM/yyyy')}</p>
<p style="margin:1px 0; color:#1f2937;">Vencimento: @{formatDateTime(addDays(utcNow(), 5), 'dd/MM/yyyy')}</p>
</div>
</div>
<!-- Dados do cliente -->
<div style="margin-bottom:15px; font-size:12px;">
<h2 style="font-size:14px; font-weight:bold; color:#1f2937; margin-bottom:5px;">Cobrança para:</h2>
<p style="margin:0; color:#1f2937;">@{triggerOutputs()?['body/teste/Value']}</p>
<p style="margin:0; color:#1f2937;">CNPJ/CPF: @{outputs('Obter_item')?['body/field_3']}</p>
</div>
<!-- Tabela de Itens -->
<div style="margin-bottom:15px; font-size:12px;">
<h2 style="font-size:14px; font-weight:bold; color:#1f2937; margin-bottom:5px;">Descrição:</h2>
@{outputs('Compor_3')}
</div>
<!-- Total -->
<div style="text-align:left; font-size:14px; font-weight:bold; color:#111827; margin-bottom:20px;">
TOTAL: @{concat('R$ ', formatNumber(float(triggerOutputs()?['body/VALOR_x0020_TOTAL']), 'N2', 'pt-BR'))}
</div>
<!-- Dados Bancários -->
<div style="border-top:1px solid #d1d5db; padding-top:10px; color:#1f2937; font-size:12px;">
<h2 style="font-size:14px; font-weight:bold; color:#1f2937; margin-bottom:5px;">Dados bancários</h2>
<p style="margin:0;">Banco: Banco Itaú - Agência 0734 - Conta 99858-6</p>
<p style="margin:0;">Chave PIX: 39.491.243/0001-05</p>
</div>
<!-- Rodapé -->
<div style="margin-top:20px; font-size:10px; color:#374151; line-height:1.3;">
<hr style="border:1px solid #d1d5db; margin-bottom:5px;">
<p style="margin:0;">COOP IT COOPERATIVA DE TRABALHO DOS PROFISSIONAIS DE INFORMÁTICA, ASSESSORIA E CONSULTORIA TÉCNICA</p>
<p style="margin:0;">CNPJ: 39.491.243/0001-05</p>
<p style="margin:0;">RUA DA BAHIA, 1046, SALA 201, CENTRO - CEP: 30160-011 - BELO HORIZONTE-MG</p>
<p style="margin:0;">TELEFONE: (11) 3654-5742 • EMAIL: CONTATO@XCOOP.COM.BR • SITE: WWW.XCOOP.COM.BR</p>
</div>
</div>
</body>
</html>