Skip to content

Commit c31d1f0

Browse files
committed
Fixed the navbar logo redirection url error
1 parent 2b509e7 commit c31d1f0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Website/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
</div>
1616
<header>
1717
<nav class="navbar">
18-
<div class="logo-container" onclick="window.location.href=`index.html`">
18+
<a class="logo-container" href="/">
1919
<img src="assets/recode-hive.png" alt="Recode Hive Icon" class="logo-icon">
2020
<span class="logo-text">Recode Hive</span>
21-
</div>
21+
</a>
2222
<ul class="nav-links">
2323
<li><a href="/">Home</a></li>
2424
<li><a href="/about">About</a></li>

Website/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ header {
6565
.logo-container img{
6666
filter: brightness(1) invert(1);
6767
}
68+
69+
a.logo-container{
70+
text-decoration: none;
71+
}
6872

6973
.logo-icon {
7074
width: 30px;

0 commit comments

Comments
 (0)