Skip to content

Updated portfolio design and added script.js#1

Open
Kavin-666 wants to merge 4 commits intoViscous106:mainfrom
Kavin-666:main
Open

Updated portfolio design and added script.js#1
Kavin-666 wants to merge 4 commits intoViscous106:mainfrom
Kavin-666:main

Conversation

@Kavin-666
Copy link
Copy Markdown

Updated the portfolio by improving the HTML, CSS, and JavaScript structure. Added a profile photo section and implemented a navbar shadow effect on scroll for better UI. Fixed the View Work button functionality and resolved issues with the hamburger menu. Improved responsiveness and overall layout for a smoother user experience.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Portfolio page UI/UX by refining styling, improving navigation behavior on mobile/scroll, and adding client-side interactions via a new script.js.

Changes:

  • Refined CSS layout/styling (container sizing, button styling, hover effects, mobile nav behavior).
  • Added script.js for hamburger menu toggling, smooth scrolling, and header shadow on scroll.
  • Updated HTML assets/behavior (local profile image, “View My Work” button behavior, mailto link, script inclusion).

Reviewed changes

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

File Description
plainWebDevProjects/Portfolio/style.css Adds smooth scrolling, updates layout/button styles, enhances hover effects, and refines mobile nav styling.
plainWebDevProjects/Portfolio/script.js Implements hamburger toggle, smooth scrolling, auto-close mobile menu, and scroll-based header shadow.
plainWebDevProjects/Portfolio/index.html Switches profile image to local asset, changes “View My Work” to a JS-driven button, fixes Gmail link, and loads the new script.

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

Comment on lines +130 to 132
.btn:focus{
outline:none;
}
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

.btn:focus { outline: none; } removes the visible focus indicator for both <button> and <a> elements, which is an accessibility regression for keyboard users. Keep a visible focus style (e.g., use :focus-visible with an outline/box-shadow) instead of removing it entirely.

Suggested change
.btn:focus{
outline:none;
}
.btn:focus {
outline: 2px solid #fff;
outline-offset: 3px;
}
.btn:focus-visible {
outline: 3px solid #fff;
outline-offset: 3px;
}

Copilot uses AI. Check for mistakes.
Comment on lines 28 to 31
.container {
max-width: 1200px;
margin: auto;
overflow: hidden;
padding: 0 2rem;
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

The .container max-width is hardcoded to 1200px while --container-width is still defined in :root (and appears unused). To avoid future inconsistencies, consider using the CSS variable for max-width (or remove the variable if it’s no longer needed).

Copilot uses AI. Check for mistakes.
Comment thread plainWebDevProjects/Portfolio/script.js Outdated
Comment on lines +5 to +7
hamburger.addEventListener("click", () => {
navLinks.classList.toggle("active");
});
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

When toggling the hamburger menu, the button’s accessibility state isn’t updated. Consider setting aria-expanded (and optionally aria-controls) on .hamburger-menu to reflect whether .nav-links is open, so screen readers get the correct state.

Copilot uses AI. Check for mistakes.
Comment on lines +33 to +39
window.addEventListener("scroll", () => {
if (window.scrollY > 50) {
header.style.boxShadow = "0 2px 10px rgba(0,0,0,0.5)";
} else {
header.style.boxShadow = "none";
}
});
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

The scroll handler writes inline boxShadow styles on every scroll event, which is harder to maintain and can cause extra style recalculations. Prefer toggling a CSS class on <header> and defining the shadow in CSS (optionally using a throttled/requestAnimationFrame update).

Suggested change
window.addEventListener("scroll", () => {
if (window.scrollY > 50) {
header.style.boxShadow = "0 2px 10px rgba(0,0,0,0.5)";
} else {
header.style.boxShadow = "none";
}
});
if (header) {
window.addEventListener("scroll", () => {
const scrolled = window.scrollY > 50;
header.classList.toggle("header--scrolled", scrolled);
});
}

Copilot uses AI. Check for mistakes.
Comment thread plainWebDevProjects/Portfolio/index.html Outdated
<div class="container">
<!-- Consider replacing this with a locally hosted and optimized image for better performance and control. -->
<img src="https://github.com/Viscous106/Projects/blob/main/webdevProjects/Portfolio/1759158666193.jpg?raw=true" alt="Profile Picture" class="profile-img">
<img src="./1759158666193.jpg" alt="Profile Picture" class="profile-img">
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

Consider adding explicit width and height attributes to the profile <img> (matching the rendered size) to reduce layout shift while CSS loads and improve perceived performance.

Suggested change
<img src="./1759158666193.jpg" alt="Profile Picture" class="profile-img">
<img src="./1759158666193.jpg" alt="Profile Picture" class="profile-img" width="300" height="300">

Copilot uses AI. Check for mistakes.
<div class="skill">Bash</div>
<div class="skill">GO</div>
<div class="skill">React</div>
<div class="skill">Django</div>
Copy link
Copy Markdown
Owner

@Viscous106 Viscous106 Mar 10, 2026

Choose a reason for hiding this comment

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

add this too

Suggested change
<div class="skill">Django</div>
<div class="skill">Django</div>
<div class="skill">Docker</div>

Comment on lines -127 to +130
<a href="yash.25bcs10613@sst.scaler.com" target="_blank" rel="noopener noreferrer">Gmail</a>
<a href="mailto:yash.25bcs10613@sst.scaler.com">Gmail</a>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Are you sure that it is really neccesary have a thoght again

Copy link
Copy Markdown
Owner

@Viscous106 Viscous106 left a comment

Choose a reason for hiding this comment

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

@Kavin-666 LGTM, just have a look at the changes I asked and also try to solve the issues mentioned by copilot if they seem reasonable to you or if not reply to them that they are not required. Thanks

Kavin-666 and others added 2 commits March 11, 2026 15:01
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Viscous106
Copy link
Copy Markdown
Owner

@Kavin-666 make sure to resolev the convo that you have done implementing also dont follow every request from copilot soem off them may be uselesss think wisely before makeing changes

@Kavin-666
Copy link
Copy Markdown
Author

Kavin-666 commented Mar 11, 2026 via email

@Kavin-666
Copy link
Copy Markdown
Author

@Viscous106 I have added the emoji theme toggle and fixed its position in the navbar. Please review if you are free.

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