Skip to content

Commit 0a58763

Browse files
Merge pull request #76 from singhcoder694/codepeak23/button_UI
Corrected Button UI
2 parents 03a5380 + f64464d commit 0a58763

File tree

4 files changed

+57
-20
lines changed

4 files changed

+57
-20
lines changed

public/css/styles.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,35 @@ html {
106106
max-width: 600px;
107107
}
108108
}
109+
.button_all_white{
110+
width: fit-content;
111+
height: fit-content;
112+
background-color:white;
113+
padding:5px;
114+
border-radius: 5px;
115+
font-size: 1.5rem;
116+
font-weight: 400;
117+
color:black;
118+
margin:5px;
119+
cursor: pointer;
120+
}
121+
.button_all_black{
122+
width: fit-content;
123+
height: fit-content;
124+
background-color:black;
125+
padding:5px;
126+
border-radius: 5px;
127+
font-size: 1.5rem;
128+
font-weight: 300;
129+
color:white;
130+
margin:5px;
131+
cursor: pointer;
132+
}
133+
.button_all_black:hover{
134+
text-decoration: none;
135+
color:white;
136+
}
137+
.button_all_white:hover{
138+
text-decoration: none;
139+
color:black;
140+
}

views/home.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ background: linear-gradient(to right, #ACB6E5, #74ebd5); /* W3C, IE 10+/ Edge, F
1010
<p class="lead">Don't keep your secrets, share them anonymously!</p>
1111
<hr />
1212
<div class="d-flex justify-content-center">
13-
<a class="btn btn-light btn-lg col-2 mx-2" href="/register" role="button">Register</a>
14-
<a class="btn btn-dark btn-lg col-2 mx-2" href="/login" role="button">Login</a>
13+
<a class="button_all_white" href="/register" role="button">Register</a>
14+
<a class="button_all_black" href="/login" role="button">Login</a>
1515
</div>
1616
</div>
1717
</div>

views/login.ejs

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,27 @@
33
<div class="container mt-5" style="margin-bottom: 197px">
44
<h1>Login</h1>
55

6-
<div class="row">
7-
<div class="col-sm-8">
8-
<div class="card">
9-
<div class="card-body">
10-
<!-- Makes POST request to /login route -->
11-
<form action="/login" method="POST">
12-
<div class="form-group">
13-
<label for="email">Email</label>
14-
<input type="email" class="form-control" name="username" />
15-
</div>
16-
<div class="form-group">
17-
<label for="password">Password</label>
18-
<input type="password" class="form-control" name="password" />
19-
</div>
20-
<button type="submit" class="btn btn-dark col-2">Login</button>
21-
</form>
6+
7+
<div class="container mt-5" style="margin-bottom: 197px">
8+
<h1>Login</h1>
9+
10+
<div class="row">
11+
<div class="col-sm-8">
12+
<div class="card">
13+
<div class="card-body">
14+
<!-- Makes POST request to /login route -->
15+
<form action="/login" method="POST">
16+
<div class="form-group">
17+
<label for="email">Email</label>
18+
<input type="email" class="form-control" name="username" />
19+
</div>
20+
<div class="form-group">
21+
<label for="password">Password</label>
22+
<input type="password" class="form-control" name="password" />
23+
</div>
24+
<button type="submit" class="button_all_black" role="button">Login</button>
25+
</form>
26+
</div>
2227
</div>
2328
</div>
2429
</div>

views/secrets.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
<hr>
1616
<div class="d-flex justify-content-center">
17-
<a class="btn btn-light btn-lg col-2 mx-1" href="/logout" role="button">Log Out</a>
18-
<a class="btn btn-dark btn-lg col-2 mx-1" href="/submit-secret-form" role="button">Submit a Secret</a>
17+
<a class="button_all_white" href="/logout" role="button">Log Out</a>
18+
<a class="button_all_black" href="/submit" role="button">Submit a Secret</a>
1919
</div>
2020
</div>
2121
</div>

0 commit comments

Comments
 (0)