Vupt - Simple Form

by Raphael Quintao

HTML

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Vupt Api - Example</title>
  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  <style>
    * {
      outline: none;
    }

    html,
    body {
      background: hsl(217, 11%, 14%);
      color: hsl(0, 0%, 80%);
    }

    section {
      margin: auto;
      max-width: 1024px;
    }

    #input-form fieldset {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      grid-gap: 10px;
      margin-bottom: 10px;
      border: 0;
      padding: 5px;
      background: hsla(0, 0%, 0%, 0.9);
    }

    #input-form label {
      display: grid;
      grid-template-columns: 210px 1fr;
      align-items: center;
      justify-items: end;
      grid-gap: 10px;
      padding: 0;
    }

    #input-form input {
      width: 100%;
      margin: 0;
      padding: 4px 8px;
      box-sizing: border-box;
      color: inherit;
      background-color: hsla(0, 0%, 0%, 0.2);
      border: 1px solid hsla(0, 0%, 45%, 0.9);
    }

    #input-form input:active,
    #input-form input:focus {
      border: 1px solid hsla(0, 0%, 65%, 0.9);
    }

  </style>
</head>

<body>
<section>
  <form id="input-form" action="http://localhost:8000/process" method="post">
    <fieldset>

      <label for="cpf">CPF:
        <input type="text" id="cpf" name="cpf">
      </label>


      <label for="cnpj">CNPJ:
        <input type="text" id="cnpj" name="cnpj">
      </label>

      <label for="valor_solicitado">Valor Solicitado:
        <input type="text" id="valor_solicitado" name="valor_solicitado">
      </label>


      <label for="uf">Estado:
        <input type="text" id="uf" name="uf">
      </label>


      <label for="cidade">Cidade:
        <input type="text" id="cidade" name="cidade">
      </label>

      <label for="nome_responsavel">Nome do Responsavel:
        <input type="text" id="nome_responsavel" name="nome_responsavel">
      </label>

      <label...

CSS

html,
body {
  background: hsl(217, 11%, 14%);
  color: hsl(0, 0%, 80%);
}

#input-form fieldset {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 10px;
  margin-bottom: 10px;
  border: 0;
  padding: 5px;
  background: hsla(0, 0%, 0%, 0.9);
}

#input-form label {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  justify-items: end;
  grid-gap: 10px;
  padding: 0;
}

#input-form input {
  width: 100%;
  margin: 0;
  padding: 4px 8px;
  box-sizing: border-box;
}