Skip to content

Commit 4d440c4

Browse files
committed
restyled buttons
1 parent 32f0daf commit 4d440c4

File tree

4 files changed

+44
-22
lines changed

4 files changed

+44
-22
lines changed
10.1 KB
Binary file not shown.

src/Components/AddNavBar/NavBar.scss

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,45 @@
88
.navBarContainer {
99
display: flex;
1010
background: $blueBackground;
11-
justify-content: center;
11+
justify-content: space-between;
1212

1313
}
1414

15+
.homeButton {
16+
display: flex;
17+
flex-direction: column;
18+
justify-items: center;
19+
}
20+
21+
.profilePageButton {
22+
display: flex;
23+
flex-direction: column;
24+
justify-items: center;
25+
}
26+
1527
a {
1628
margin: 15px 10px 10px 10px;
17-
background: $greyBackground;
18-
color: $whiteFontColor;
19-
background-color: $greyBackground;
20-
box-shadow: 2px 2px $orangeBackground;
29+
// background: $greyBackground;
30+
color: $orangeBackground;
31+
// background-color: $greyBackground;
2132
padding: 2.5px 20px;
22-
text-align: center;
33+
// text-align: center;
34+
// text-decoration: none;
35+
// display: inline-block;
36+
border: solid 2px $orangeBackground;
2337
text-decoration: none;
24-
display: inline-block;
2538
border-radius: 25px;
2639
}
2740

28-
a:active {
29-
box-shadow: 1px 1px $orangeBackground;
30-
}
41+
3142

3243
a:hover {
33-
color: $orangeBackground
44+
45+
color: $whiteFontColor;
46+
box-shadow: 0px 0px 3px 3px $greyBackground;
47+
}
48+
49+
a:active {
50+
box-shadow: none;
51+
color: $orangeBackground;
3452
}
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
import React from "react";
2-
import "./NavBar.scss"
2+
import "./NavBar.scss";
33
import { Link } from "react-router";
44

5-
65
export default function NavBar() {
76
return (
8-
<div >
7+
<div>
98
<header className="navBarHeader">
109
<nav className="navBarContainer">
11-
<div>
12-
<Link to="/" className = "homeButton">Home</Link>
13-
</div>
14-
<div>
15-
<Link to="profile" className = "profilePageButton">Profile</Link>
16-
</div>
17-
</nav>
10+
<div>
11+
<Link to="/" className="homeButton">
12+
<img src="./Images/earth_318-581287.avif" />
13+
Home
14+
</Link>
15+
</div>
16+
<div>
17+
<Link to="profile" className="profilePageButton">
18+
<img src="Images/cute-astronaut-standing-cartoon-vector-icon-illustration-science-technology-icon-concept-isolated_138676-8961.avif" />
19+
Profile
20+
</Link>
21+
</div>
22+
</nav>
1823
</header>
19-
2024
</div>
2125
);
2226
}

0 commit comments

Comments
 (0)