Skip to content

Commit

Permalink
iiitl#6: Styled button
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushkumar079 committed Mar 16, 2024
1 parent 50a9b8b commit 72d0ac0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Navbar = () => {
{user && (
<div>
<span>{user.email}</span>
<button onClick={handleClick}>Log out</button>
<button onClick={handleClick} className="custom-button">Log out</button>
</div>
)}
{!user && (
Expand Down
14 changes: 14 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,18 @@ form.signup, form.login {
padding: 20px;
background: #fff;
border-radius: 4px;
}

.custom-button{
padding: 10px 20px;
font-size: 16px;
font-weight: bold;
color: #fff;
background-color: #4CAF50;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.custom-button:hover{
background-color: #36803a;
}

0 comments on commit 72d0ac0

Please sign in to comment.