Skip to content

Commit cf2350e

Browse files
committed
Dando estilos
1 parent a80c8cb commit cf2350e

2 files changed

Lines changed: 51 additions & 6 deletions

File tree

02 - Login Form/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
<body>
1010

1111
<div class="form-container">
12-
12+
<h1 class="titulo">Login</h1>
13+
<input type="text" name="text" class="userName" placeholder="username">
14+
<input type="password" placeholder="password" class="password">
15+
<button class="loginBtn">Login</button>
1316
</div>
1417

1518
</body>

02 - Login Form/styles.css

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,64 @@
1111
}
1212

1313
:root{
14-
--bg-color: linear-gradient(217deg, #ee6fca, rgba(255, 0, 0, 0) 70.71%),
15-
linear-gradient(127deg, #67bad4, rgba(0, 255, 0, 0) 70.71%),
16-
linear-gradient(336deg, #24b6e7, rgba(0, 0, 255, 0) 70.71%);
14+
--bg-color: linear-gradient(217deg, #F1B6E0, rgba(255, 0, 0, 0) 70.71%),
15+
linear-gradient(127deg, #B3B0F8, rgba(0, 255, 0, 0) 70.71%),
16+
linear-gradient(336deg, #8ADDF8, rgba(0, 0, 255, 0) 70.71%);
1717
--altura: 5rem;
1818
}
1919

2020
body{
21-
background-color: #dbcce9;
21+
/* background-color: #dbcce9; */
22+
background: var(--bg-color);
2223
display: flex;
23-
align-items: center;
2424
justify-content: center;
25+
align-items: center;
26+
width: 100%;
27+
height: 100vh;
2528
}
2629

2730

2831
.form-container{
2932
width: 350px;
3033
height: 450px;
34+
/* background: var(--bg-color); */
3135
background: var(--bg-color);
36+
border-radius: 1rem;
37+
display: flex;
38+
flex-direction: column;
39+
align-items: center;
40+
justify-content: center;
41+
}
42+
43+
.userName, .password{
44+
padding: .7rem 2rem .7rem 0;
45+
/* border-radius: 2rem; */
46+
margin: 1rem;
47+
outline: none;
48+
border: none;
49+
/* text-align: center; */
50+
/* width: 15rem; */
51+
background: transparent;
52+
border-bottom: solid 1px white;
53+
}
54+
55+
.titulo{
56+
margin-bottom: 2rem;
57+
}
58+
59+
.loginBtn{
60+
padding: 1rem 3rem;
61+
/* border-radius: 6rem; */
62+
border: none;
63+
outline: none;
64+
background: transparent;
65+
font-size: 1rem;
66+
cursor: pointer;
67+
border: solid 1px white;
68+
margin-top: 1rem;
69+
transition: all .5s;
70+
}
71+
72+
.loginBtn:hover{
73+
transform: scale(1.1);
3274
}

0 commit comments

Comments
 (0)