Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
I enhanced the Travel Discussion Forum UI by adding favicons and removing unnecessary cluttering.
  • Loading branch information
shantanu020 authored Oct 17, 2024
1 parent 39aec89 commit 4f06d25
Showing 1 changed file with 45 additions and 16 deletions.
61 changes: 45 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1136,12 +1136,36 @@ <h2>Content</h2>
<h1 id="h1darkbtn">Travel Discussion Forum</h1>
<nav class="hi">
<ul>
<li class="NAVI"><a href="#destinations">Destinations</a></li>
<li class="NAVI"><a href="#travel-planning">Travel Planning</a></li>
<li class="NAVI"><a href="#experiences">Travel Experiences</a></li>
<li class="NAVI"><a href="#gear">Travel Gear</a></li>
<li class="NAVI"><a href="#safety">Travel Safety</a></li>
<li class="NAVI"><a href="#sustainable">Sustainable Travel</a></li>
<li class="NAVI">
<!-- added favicon for destinations -->
<i class="fa-solid fa-location-dot"></i>
<a href="#destinations">Destinations</a>
</li>
<li class="NAVI">
<!-- added favicon for travel planning -->
<i class="fa-solid fa-earth-americas"></i>
<a href="#travel-planning">Travel Planning</a>
</li>
<li class="NAVI">
<!-- added favicon for travel experience -->
<i class="fa-regular fa-face-smile"></i>
<a href="#experiences">Travel Experiences</a>
</li>
<li class="NAVI">
<i class="fa-solid fa-gear"></i>
<!-- added favicon for travel gear -->
<a href="#gear">Travel Gear</a>
</li>
<li class="NAVI">
<!-- added favicon for travel safety -->
<i class="fa-solid fa-shield"></i>
<a href="#safety">Travel Safety</a>
</li>
<li class="NAVI">
<!-- added favicon for sustainable travel -->
<i class="fa-solid fa-seedling"></i>
<a href="#sustainable">Sustainable Travel</a>
</li>
</ul>
</nav>
</header>
Expand Down Expand Up @@ -1172,14 +1196,19 @@ <h1 id="h1darkbtn">Travel Discussion Forum</h1>
border-radius: 5px; /* Rounded corners */
transition: border 0.3s ease, background-color 0.3s ease;
}

nav.hi ul li.NAVI a:hover {
border-color: #ffcc00; /* Border color change on hover */
background-color: #ffffff; /* White background on hover */
color: #1e88e5; /* Text color change on hover */
/* not needed as styling for nav,li,a is handled at lower */
/* nav.hi ul li.NAVI a:hover {
border-color: #ffcc00;
background-color: #ffffff;
color: #1e88e5;
} */

/* Added styling for favicon */
nav.hi ul li.NAVI i:hover {
color: #ffcc00; /* color change on hover */
transform: scale(1.2); /* scale up on hover */
}


/* Header Section */
header.forum_1 {
background-color: #1e88e5; /* Primary color for the header */
Expand Down Expand Up @@ -1232,9 +1261,9 @@ <h1 id="h1darkbtn">Travel Discussion Forum</h1>
background-color: #ffcc00; /* Background highlight on hover */
color: #1e88e5; /* Text color change on hover */
}

/* Underline effect */
nav.hi ul li.NAVI a::after {
/*nav.hi ul li.NAVI a::after {
content: '';
display: block;
width: 0;
Expand All @@ -1245,8 +1274,8 @@ <h1 id="h1darkbtn">Travel Discussion Forum</h1>
}

nav.hi ul li.NAVI a:hover::after {
width: 100%; /* Underline expands on hover */
}
width: 100%;
} */

/* Responsive Design */
@media (max-width: 768px) {
Expand Down

0 comments on commit 4f06d25

Please sign in to comment.