Skip to content

Commit

Permalink
creci
Browse files Browse the repository at this point in the history
  • Loading branch information
19950512 committed Feb 20, 2025
1 parent 60d3eca commit 21c9057
Show file tree
Hide file tree
Showing 5 changed files with 355 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Aplicacao/CasosDeUso/ConsultarCreciImplementacao.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public function __construct(
$creci = mb_strtoupper($creci);

// $creci só pode começar com 2 letras e depois números e no final pode ter J ou F
if(!preg_match('/^[A-Z]{2}[0-9]{5,6}[JF]{1}$/', $creci)){
$mensagem = 'Informe o Creci no formato correto. Exemplo: RS12345F';
if(!preg_match('/^[A-Z]{2}[0-9]{4,5,6}[JF]{1}$/', $creci)){
$mensagem = 'Informe o Creci no formato correto. Exemplo: RS1234F';
$this->discord->enviarMensagem(
canalTexto: CanalTexto::CONSULTAS,
mensagem: $mensagem
Expand Down
314 changes: 314 additions & 0 deletions src/Infraestrutura/Site/brasilzao.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
40 changes: 39 additions & 1 deletion src/Infraestrutura/Site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,18 @@
align-items: center;
height: 100vh;
background-color: #fff;
background-image: url('brasilzao_implementado.png');
background-size: contain;
background-position: center right;
background-repeat: no-repeat;
color: #333;
}
h1 {
margin-bottom: 20px;
font-size: 24px;
font-size: 30px;
font-weight: bold;
text-align: center;
text-decoration: none;
}
input {
padding: 10px;
Expand Down Expand Up @@ -94,10 +99,43 @@
color: #333;
font-size: 18px;
}
#legenda {
position: absolute;
top: 20px;
right: 20px;
padding: 10px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#legenda_implementado {
width: 20px;
height: 20px;
background-color: #00cf57;
display: inline-block;
border-radius: 50%;
margin-right: 5px;
}

#legenda_nao_implementado {
width: 20px;
height: 20px;
background-color: #999999;
display: inline-block;
border-radius: 50%;
margin-right: 5px;
}
</style>
</head>
<body>

<div id="legenda">
<p><div id="legenda_implementado"></div> Implementado</p>
<p><div id="legenda_nao_implementado"></div> Não implementado</p>
</div>

<h1>Consulte o Registro de Corretores e Imobiliárias</h1>
<p>Exemplo: RJ1234J</p>
<input type="text" id="creci" placeholder="RJ1234J">
<button onclick="consultarCreci(this)">Consultar</button>
<br/>
Expand Down

0 comments on commit 21c9057

Please sign in to comment.