This repository has been archived by the owner on May 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
30 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<div class="container"> | ||
<form action=""> | ||
<h1 class="form-title">Formulário 2</h1> | ||
<custom-input [nome]="inputNome" [tipo]="inputTexto"></custom-input> | ||
<custom-input [nome]="inputEmail" [tipo]="inputTexto"></custom-input> | ||
<custom-input [nome]="inputSenha" [tipo]="inputPassword"></custom-input> | ||
<h1 class="form-title">Formulário</h1> | ||
<custom-input [nome]="inputNome" [tipo]="inputTipoTexto"></custom-input> | ||
<custom-input [nome]="inputEmail" [tipo]="inputTipoEmail"></custom-input> | ||
<custom-input [nome]="inputSenha" [tipo]="inputTipoSenha"></custom-input> | ||
<custom-input-button></custom-input-button> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...lar Dia 01 - Intro/my-form2/src/app/custom-input-button/custom-input-button.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
.custom-input-button { | ||
width: 40%; | ||
padding: 0.5rem; | ||
margin: 0.5rem auto 1rem; | ||
margin: 1rem auto; | ||
display: block; | ||
border: 0; | ||
color: black; | ||
font-family: "fira code"; | ||
font-weight: 500; | ||
border: 2px solid black; | ||
font-family: "press start 2p"; | ||
border: 3px solid black; | ||
background-color: transparent; | ||
} | ||
|
||
.custom-input-button:hover { | ||
background-color: sienna; | ||
cursor: pointer; | ||
outline: none; | ||
color: white; | ||
background-color: black; | ||
} |
11 changes: 6 additions & 5 deletions
11
Angular Dia 01 - Intro/my-form2/src/app/custom-input/custom-input.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
.custom-input-group { | ||
display: flex; | ||
flex-direction: column; | ||
padding: 0.5rem 1rem; | ||
padding: 1.5rem 1rem 0; | ||
} | ||
|
||
.custom-input { | ||
font-family: "press start 2p"; | ||
margin: 0; | ||
padding: 0%; | ||
box-sizing: border-box; | ||
width: 100%; | ||
padding: 0.25rem 0; | ||
font-size: 1.2rem; | ||
padding: 0.5rem 0 0.25rem; | ||
font-size: 1rem; | ||
border: 0; | ||
border-bottom: 2px solid black; | ||
border-bottom: 3px solid black; | ||
} | ||
|
||
.custom-input:focus { | ||
outline: none; | ||
border-bottom: 2px solid sienna; | ||
border-bottom: 3px dotted black; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap"); | ||
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap"); | ||
|
||
html { | ||
font-size: 16px; | ||
font-family: "fira code"; | ||
font-weight: 500; | ||
font-family: "press start 2p"; | ||
font-weight: 400; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
min-height: 100vh; | ||
} | ||
|
||
*, | ||
*::after, | ||
*::before { | ||
box-sizing: border-box; | ||
} |