Skip to content

Team 26 updated & fixed the navbar - #9

Open
Jeevansanal2872 wants to merge 5 commits into
alchemyiedc:team-26-updatefrom
Jeevansanal2872:team-26-update
Open

Team 26 updated & fixed the navbar#9
Jeevansanal2872 wants to merge 5 commits into
alchemyiedc:team-26-updatefrom
Jeevansanal2872:team-26-update

Conversation

@Jeevansanal2872

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings July 23, 2026 17:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Team pages to use the shared site navbar/header styling and adds cross-page smooth-scrolling behavior to land on specific sections when navigating from the Team pages back to the homepage.

Changes:

  • Reworked /team/ and /team-26/ pages to use the shared header/nav structure and updated page layout/styling.
  • Added sessionStorage + hash-based “scroll to section after navigation” behavior in app.js.
  • Added a new team-26/temp file.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
team/index.html Replaces the old logo/header layout with the shared navbar and adds new styling + custom wheel-scroll script.
team-26/index.html Applies similar navbar/layout changes and adds the same custom wheel-scroll script.
app.js Adds DOMContentLoaded logic to scroll to a stored/hash target after navigation.
team-26/temp Adds a placeholder file (temp).
Comments suppressed due to low confidence (2)

team-26/index.html:22

  • scroll-behavior: smooth is forced globally, which ignores users’ prefers-reduced-motion setting (anchors and programmatic scrolls will still animate). Add a reduced-motion override so scrolling becomes instant for those users.
    html {
      scroll-behavior: smooth;
      overscroll-behavior-y: none;
    }

team-26/index.html:290

  • On mobile, the nav-link click handler closes the nav by setting nav.style.width = '0vw' but does not update the navOpen state used by app.js. After clicking a link, the hamburger may require two clicks to open again because navOpen can remain 1.
              link.addEventListener('click', () => {
                if (window.innerWidth < 750) {
                  nav.style.width = '0vw';
                }
              });

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread team/index.html
Comment on lines +18 to +21
html {
scroll-behavior: smooth;
overscroll-behavior-y: none;
}
Comment thread app.js
Comment on lines +10 to +29
window.addEventListener('DOMContentLoaded', function () {
var pendingTarget = sessionStorage.getItem('alchemyScrollTarget');
var hashTarget = window.location.hash ? window.location.hash.slice(1) : '';
var targetId = pendingTarget || hashTarget;

if (!targetId) {
return;
}

sessionStorage.removeItem('alchemyScrollTarget');

var targetElement = document.getElementById(targetId);
if (!targetElement) {
return;
}

window.requestAnimationFrame(function () {
targetElement.scrollIntoView({ behavior: 'smooth', block: 'start' });
});
});
Comment thread team/index.html
Comment on lines +343 to +347
link.addEventListener('click', () => {
if (window.innerWidth < 750) {
nav.style.width = '0vw';
}
});
Comment thread team/index.html
</div>
</section>
<header class="header">
<img src="/assets/alchemy.png" id="headerIMG" onclick="location.href = '/'" alt="alchemy logo">
Comment thread team-26/index.html
<div class="cards-wrapper" id="executive-committee">
<!-- Content loaded dynamically from members.json -->
<header class="header">
<img src="/assets/alchemy.png" id="headerIMG" onclick="location.href = '/'" alt="alchemy logo">
Comment thread team-26/index.html
Comment on lines +11 to 13
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap" rel="stylesheet">
Comment thread team-26/temp
@@ -0,0 +1 @@
temp
@Aswin834

Copy link
Copy Markdown

*Page Scroll not working properly
*Fix the Logo
*navbar icons not redirecting to the main page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants