File tree 3 files changed +88
-2
lines changed
Curso-em-Video-Html-CSS/Html-css/Desafios/d015
3 files changed +88
-2
lines changed Original file line number Diff line number Diff line change
1
+ @charset "UTF-8" ;
2
+
3
+ /*
4
+ pesquisar sobre Typical Device Breakpoints
5
+ Recomendações do W3C:
6
+ Pequenas telas: até 600px
7
+ Celular: de 600px até 768px
8
+ Tablet: de 768px até 992px
9
+ Desktop: de 992px até 1200px
10
+ Grandes telas: acima de 1200px
11
+ */
12
+
13
+ @media screen and (min-width : 768px ) and (max-width : 992px ){ /*Tablet*/
14
+ body {
15
+ background-image : linear-gradient (to top, # 49a09d, # 5f2c82 );
16
+ }
17
+
18
+ section # login {
19
+ width : 80vw ;
20
+ }
21
+
22
+ section # login > div # imagem {
23
+ float : left;
24
+ width : 30% ;
25
+ height : 100% ;
26
+ }
27
+
28
+ section # login > div # formulario {
29
+ float : right;
30
+ width : 70% ;
31
+ }
32
+ }
33
+
34
+ @media screen and (min-width : 992px ) { /*telas grandes*/
35
+ body {
36
+ background-image : linear-gradient (to top, # 49a09d, # 5f2c82 );
37
+ }
38
+
39
+ section # login {
40
+ width : 950px ;
41
+ }
42
+
43
+ section # login > div # imagem {
44
+ float : right;
45
+ width : 50% ;
46
+ height : 100% ;
47
+ }
48
+
49
+ section # login > div # formulario {
50
+ float : left;
51
+ width : 50% ;
52
+ }
53
+
54
+ div # formulario > h1 {
55
+ font-size : 2em ;
56
+ }
57
+
58
+ div # formulario > p {
59
+ font-size : 1.2em ;
60
+ }
61
+ }
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ section#login {
37
37
border-radius : 20px ;
38
38
overflow : hidden;
39
39
box-shadow : 0px 0px 10px rgba (0 , 0 , 0 , 0.450 );
40
+
41
+ transition : width 0.3s , height 0.3s ;
42
+ transition-timing-function : ease;
40
43
}
41
44
42
45
section # login > div # imagem {
@@ -50,4 +53,13 @@ section#login > div#imagem {
50
53
section # login > div # formulario {
51
54
display : block;
52
55
padding : 10px ;
56
+ }
57
+
58
+ div # formulario > h1 {
59
+ text-align : center;
60
+ margin-bottom : 10px ;
61
+ }
62
+
63
+ div # formulario > p {
64
+ font-size : 0.8em ;
53
65
}
Original file line number Diff line number Diff line change 4
4
< meta charset ="UTF-8 ">
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
6
< title > Login</ title >
7
+ < link rel ="stylesheet " href ="https://fonts.googleapis.com/icon?family=Material+Icons ">
7
8
< link rel ="stylesheet " href ="estilos/style.css ">
9
+ < link rel ="stylesheet " href ="estilos/media-query.css ">
8
10
</ head >
9
11
< body >
10
12
< main >
16
18
< div id ="formulario ">
17
19
< h1 > Login</ h1 >
18
20
< p > Seja bem-vindo(a) novamente. Faça login para acessar a sua conta e poder fazer as configurações no seu ambiente.</ p >
19
- < form action ="login.php " method ="post ">
20
-
21
+ < form action ="login.php " method ="post " autocomplete ="on ">
22
+ < div class ="campo ">
23
+ < i class ="material-icons "> person</ i >
24
+ < input type ="email " name ="email " id ="iemail " placeholder ="Seu e-mail " autocomplete ="email " required maxlength ="30 ">
25
+ < label for ="ilogin "> Login</ label >
26
+ </ div >
27
+ < div class ="campo ">
28
+ < i class ="material-icons "> vpn_key</ i >
29
+ < input type ="password " name ="Senha " id ="isenha " placeholder ="Sua senha " autocomplete ="current-password " required minlength ="8 " maxlength ="20 ">
30
+ < label for ="isenha "> Senha</ label >
31
+ </ div >
32
+ < input type ="submit " value ="Entrar ">
33
+ < a href ="esqueci.html "> Esqueci a senha < i class ="material-icons "> mail</ i > </ a >
21
34
</ form >
22
35
</ div >
23
36
</ section >
You can’t perform that action at this time.
0 commit comments