Skip to content

Commit 7e0a190

Browse files
committed
add responsive logo to nav
Signed-off-by: Jess Chitas <[email protected]>
1 parent 79814be commit 7e0a190

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

.DS_Store

0 Bytes
Binary file not shown.

src/.DS_Store

0 Bytes
Binary file not shown.

src/Nav.css

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,27 @@
22
/* Style Sheet for Nav.jsx */
33
/* -------------------------------------------------------------------------- */
44

5-
.logo {
5+
.logo-text {
66
width: 20%;
77
margin: 1.25rem 2rem;
88

99
@media screen and (max-width: 1024px) {
1010
width: 30%;
1111
@media screen and (max-width: 768px) {
12-
width: 40%;
13-
@media screen and (max-width: 500px) {
14-
width: 50%;
15-
}
12+
display: none;
13+
}
14+
}
15+
}
16+
17+
.logo-mascot {
18+
display: none;
19+
width: 20%;
20+
margin: 1.25rem 2rem;
21+
22+
@media screen and (max-width: 768px) {
23+
display: flex;
24+
@media screen and (max-width: 500px) {
25+
width: 50%;
1626
}
1727
}
1828
}
@@ -64,4 +74,4 @@
6474

6575
.github-stars-badge {
6676
height: 28px;
67-
}
77+
}

src/Nav.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
/* -------------------------------------------------------------------------- */
44

55
import "./Nav.css";
6-
import ramalamaLogo from "./assets/ramalama-logo-text-only.svg";
6+
import ramalamaText from "./assets/ramalama-logo-text-only.svg";
7+
import ramalamaLogo from "./assets/ramalama-logo-llama-only.svg";
78

89
const Navbar = () => {
910
return (
1011
<nav className="navbar">
1112
<div className="navbar-left">
1213
<a href="">
13-
<img className="logo" src={ramalamaLogo} alt="RamaLama Logo"></img>
14+
<img className="logo-text" src={ramalamaText} alt="RamaLama Logo"></img>
15+
<img className="logo-mascot" src={ramalamaLogo} alt="RamaLama Logo"></img>
1416
</a>
1517
</div>
1618
<div className="navbar-middle"></div>

0 commit comments

Comments
 (0)