1
resposta

[Sugestão] SCSS. Esse e o estilo completo

Configuração Inicial do CSS.

.cadastro-form {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;

  &__container {
    width: 100%;
    max-width: 600px;
  }

  &__card {
    background-color: #f8f9fe;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
  }

  &__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
  }

  &__subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
  }

  &__field {
    margin-bottom: 1.5rem;
  }

  &__label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
  }

  &__input, &__select, &__textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;

    &:focus {
      outline: none;
      border-color: #0066cc;
    }
  }

  &__textarea {
    resize: vertical;
    min-height: 80px;
  }

  &__field-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
  }

  &__caracteres {
    color: #0066cc;
    font-weight: 500;
  }

  &__field-example {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 0.25rem;
  }

  &__upload-container {
    width: 100%;
  }

  &__upload-area {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
      border-color: #0066cc;
    }

    &--with-preview {
      padding: 0;
      border: none;
    }
  }

  &__upload-placeholder {
    color: #888;

    i {
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }

    p {
      margin: 0;
    }
  }

  &__foto-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
  }

  &__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  &__row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;

    &--header {
      margin-bottom: 0.5rem;
    }
  }

  &__column {
    flex: 1;

    &--actions {
      flex: 0 0 40px;
      display: flex;
      align-items: center;
    }
  }

  &__icon-button {
    background: none;
    border: none;
    color: #ff3b30;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;

    &:hover {
      color: #d63030;
    }
  }

  &__text-button {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;

    &:hover {
      text-decoration: underline;
    }

    i {
      font-size: 1rem;
    }
  }

  &__add-button {
    margin-top: 0.5rem;
  }

  &__actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
  }

  &__error {
    color: #ff3b30;
    font-size: 0.85rem;
    margin-top: 0.25rem;
  }
}
1 resposta

Oi Priscila! Tudo bem?

Obrigada por notar o código faltante e compartilhar com a comunidade Alura. Graças à você, a transcrição já foi corrigida com o código completo.

Continue com essa proatividade e conte sempre com o apoio do fórum. Abraços e bons estudos!

Caso este post tenha lhe ajudado, por favor, marcar como solucionado