added highlighter in <a> tag
This commit is contained in:
@@ -21,13 +21,13 @@ import "../styles/navbar.scss";
|
|||||||
<div class="navbar-entry">
|
<div class="navbar-entry">
|
||||||
<a href={path} class={isActive ? "active" : ""}>
|
<a href={path} class={isActive ? "active" : ""}>
|
||||||
{pageName}
|
{pageName}
|
||||||
</a>
|
|
||||||
|
|
||||||
{isActive ? (
|
{isActive ? (
|
||||||
<div class="highlighter">
|
<div class="highlighter">
|
||||||
<img src="/nav_highlight.svg" />
|
<img src="/nav_highlight.svg" />
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
@@ -35,11 +35,7 @@ import "../styles/navbar.scss";
|
|||||||
</nav>
|
</nav>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://github.com/vaporvee" target="_blank"
|
<a href="https://github.com/vaporvee" target="_blank"
|
||||||
><img
|
><img src="/github-mark.svg" alt="My GitHub account" class="social" /></a
|
||||||
src="/github-mark.svg"
|
|
||||||
alt="My GitHub account"
|
|
||||||
class="social"
|
|
||||||
/></a
|
|
||||||
>
|
>
|
||||||
<a href="https://www.linkedin.com/in/yannik-ain/" target="_blank"
|
<a href="https://www.linkedin.com/in/yannik-ain/" target="_blank"
|
||||||
><img
|
><img
|
||||||
|
Reference in New Issue
Block a user