Skip to content

feat: relative sizing of section on hero page#17

Merged
Mummanajagadeesh merged 2 commits into
mainfrom
relv-sizing
Jun 26, 2026
Merged

feat: relative sizing of section on hero page#17
Mummanajagadeesh merged 2 commits into
mainfrom
relv-sizing

Conversation

@SlyPredator

Copy link
Copy Markdown
Member

No description provided.

@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-26 09:01 UTC

@SlyPredator

Copy link
Copy Markdown
Member Author

@Mummanajagadeesh check if the relative sizing thing is fine now, test on mob as well as desktop versions, if anything else, I'll add to this PR itself

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

Updates homepage section sizing and spacing to better match the visible viewport and improve anchor scrolling behavior.

Changes:

  • Switched section/containers from 100vh to 100dvh for viewport-relative sizing.
  • Adjusted .hero spacing (padding-based navbar offset, explicit paddings) and added divider/border-box sizing.
  • Added scroll-margin-top to sections (and adjusted mobile variant) to account for the fixed navbar.

Reviewed changes

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

File Description
src/styles/main_projects.css Updates projects container min-height to use dynamic viewport height.
src/styles/main_body.css Adjusts hero + generic section sizing/layout, adds scroll offset for anchor navigation, and refines padding/border behavior.
src/styles/main_about.css Updates about container min-height to use dynamic viewport height and removes the redundant top border.

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

align-items: center;
gap: 20px;
min-height: 100vh;
min-height: 100dvh;
Comment thread src/styles/main_about.css
justify-content: space-between;
align-items: center;
min-height: 100vh;
min-height: 100dvh;
Comment thread src/styles/main_body.css
/* HERO (first section) */
.hero {
margin-top: 120px;
min-height: 100dvh;
Comment thread src/styles/main_body.css
/* Section styling + dividers */
section:not(#footer-new) {
min-height: 100vh;
min-height: 100dvh;
Comment thread src/styles/main_body.css
padding-left: 1rem;
padding-right: 1rem;
padding-bottom: 1.5rem;
min-height: 100dvh;
Comment thread src/styles/main_body.css
section:not(#footer-new) {
font-size: 1.8rem;
padding: 2rem 1rem;
min-height: 100dvh;
@Mummanajagadeesh Mummanajagadeesh merged commit d09680d into main Jun 26, 2026
2 of 4 checks passed
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