Updated portfolio design and added script.js#1
Updated portfolio design and added script.js#1Kavin-666 wants to merge 4 commits intoViscous106:mainfrom
Conversation
There was a problem hiding this comment.
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.jsfor 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.
| .btn:focus{ | ||
| outline:none; | ||
| } |
There was a problem hiding this comment.
.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.
| .btn:focus{ | |
| outline:none; | |
| } | |
| .btn:focus { | |
| outline: 2px solid #fff; | |
| outline-offset: 3px; | |
| } | |
| .btn:focus-visible { | |
| outline: 3px solid #fff; | |
| outline-offset: 3px; | |
| } |
| .container { | ||
| max-width: 1200px; | ||
| margin: auto; | ||
| overflow: hidden; | ||
| padding: 0 2rem; |
There was a problem hiding this comment.
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).
| hamburger.addEventListener("click", () => { | ||
| navLinks.classList.toggle("active"); | ||
| }); |
There was a problem hiding this comment.
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.
| window.addEventListener("scroll", () => { | ||
| if (window.scrollY > 50) { | ||
| header.style.boxShadow = "0 2px 10px rgba(0,0,0,0.5)"; | ||
| } else { | ||
| header.style.boxShadow = "none"; | ||
| } | ||
| }); |
There was a problem hiding this comment.
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).
| 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); | |
| }); | |
| } |
| <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"> |
There was a problem hiding this comment.
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.
| <img src="./1759158666193.jpg" alt="Profile Picture" class="profile-img"> | |
| <img src="./1759158666193.jpg" alt="Profile Picture" class="profile-img" width="300" height="300"> |
| <div class="skill">Bash</div> | ||
| <div class="skill">GO</div> | ||
| <div class="skill">React</div> | ||
| <div class="skill">Django</div> |
There was a problem hiding this comment.
add this too
| <div class="skill">Django</div> | |
| <div class="skill">Django</div> | |
| <div class="skill">Docker</div> |
| <a href="yash.25bcs10613@sst.scaler.com" target="_blank" rel="noopener noreferrer">Gmail</a> | ||
| <a href="mailto:yash.25bcs10613@sst.scaler.com">Gmail</a> |
There was a problem hiding this comment.
Are you sure that it is really neccesary have a thoght again
There was a problem hiding this comment.
@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
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@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 |
|
Yeah , I have seeing the code and making change
…On Wed, 11 Mar 2026, 3:04 pm Yash Nitin Virulkar, ***@***.***> wrote:
*Viscous106* left a comment (Viscous106/Projects#1)
<#1 (comment)>
@Kavin-666 <https://github.com/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
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BVU6HVJJ6S2PE4V3VVS2JE34QEXL3AVCNFSM6AAAAACWMEY55CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DAMZXG44TINZYGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
@Viscous106 I have added the emoji theme toggle and fixed its position in the navbar. Please review if you are free. |
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.