Skip to content

Commit bc402b1

Browse files
committed
done the css style
1 parent f77a456 commit bc402b1

File tree

4 files changed

+80
-2
lines changed

4 files changed

+80
-2
lines changed

copy.png

11.4 KB
Loading

index.html

+12-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,18 @@
88
</head>
99
<body>
1010

11-
12-
11+
<section class="main">
12+
<section class="title">
13+
<h1>Generate <br><span>a Random Password</span></h1>
14+
</section>
15+
<section class="password">
16+
<input type="text" id="password" placeholder="Password">
17+
<img src="copy.png" alt="">
18+
</section>
19+
<section class="btn">
20+
<button><img src="light.png" alt="">Generate Password</button>
21+
</section>
22+
</section>
1323

1424

1525

light.png

10.1 KB
Loading

style.css

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
*{
2+
padding: 0;
3+
margin: 0;
4+
box-sizing: border-box;
5+
font-family: sans-serif;
6+
}
7+
8+
body{
9+
background-color: #002339;
10+
max-height: 100vh;
11+
color:aliceblue
12+
}
13+
14+
.main{
15+
margin:12%;
16+
width: 90%;
17+
max-width: 700px;
18+
}
19+
20+
.password{
21+
width: 100%;
22+
margin-top: 50px;
23+
margin-bottom: 30px;
24+
background: #fff;
25+
color: #333;
26+
display: flex;
27+
align-items: center;
28+
justify-content: space-between;
29+
padding: 26px 20px;
30+
border-radius: 5px;
31+
}
32+
img{
33+
width: 30px;
34+
cursor: pointer;
35+
}
36+
.title h1{
37+
font-weight: 500;
38+
font-size: 45px;
39+
}
40+
.title h1 span{
41+
color: #019f55;
42+
border-bottom: 4px solid #019f55;
43+
padding-bottom: 7px;
44+
}
45+
.password input{
46+
border: 0;
47+
outline: 0;
48+
font-size: 24px;
49+
}
50+
51+
.btn button{
52+
border:0;
53+
outline: 0;
54+
background-color: #019f55;
55+
color: #fff;
56+
font-size: 22px;
57+
font-weight: 300;
58+
display: flex;
59+
align-items: center;
60+
justify-content: center;
61+
padding: 16px 26px;
62+
border-radius: 5px;
63+
cursor: pointer;
64+
}
65+
.btn button img{
66+
width: 25px;
67+
margin-right: 10px;
68+
}

0 commit comments

Comments
 (0)