Skip to content

Commit 72d0ac0

Browse files
committed
#6: Styled button
1 parent 50a9b8b commit 72d0ac0

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

frontend/src/components/Navbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Navbar = () => {
2020
{user && (
2121
<div>
2222
<span>{user.email}</span>
23-
<button onClick={handleClick}>Log out</button>
23+
<button onClick={handleClick} className="custom-button">Log out</button>
2424
</div>
2525
)}
2626
{!user && (

frontend/src/index.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,18 @@ form.signup, form.login {
119119
padding: 20px;
120120
background: #fff;
121121
border-radius: 4px;
122+
}
123+
124+
.custom-button{
125+
padding: 10px 20px;
126+
font-size: 16px;
127+
font-weight: bold;
128+
color: #fff;
129+
background-color: #4CAF50;
130+
border-radius: 5px;
131+
cursor: pointer;
132+
transition: background-color 0.3s;
133+
}
134+
.custom-button:hover{
135+
background-color: #36803a;
122136
}

0 commit comments

Comments
 (0)