New frontpage - #54
Merged
Merged
Conversation
Deploying branding with
|
| Latest commit: |
19a4571
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://037655af.branding-c2r.pages.dev |
| Branch Preview URL: | https://migrate-new-homepage.branding-c2r.pages.dev |
There was a problem hiding this comment.
Pull request overview
This PR replaces the existing front page with a new, highly animated “moon landing” landing page experience for HackHarvard 2026, including updated hero/section layout, client-side parallax/scroll behavior, and supporting styles/assets references.
Changes:
- Rebuilt
src/routes/+page.svelteinto a single-page “New frontpage” implementation with custom scroll/parallax animation, new navigation, and extensive component-scoped styling. - Updated the viewport meta tag to include
initial-scale=1. - Added a
newsite/ignore rule (which currently affectsstatic/newsite/...asset tracking semantics).
Reviewed changes
Copilot reviewed 2 out of 25 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/routes/+page.svelte | Replaces the previous section-based homepage with a new animated/parallax front page, inline markup, and styles. |
| src/app.html | Adjusts viewport meta for better mobile scaling behavior. |
| .gitignore | Adds an ignore rule for newsite/ (currently impacts how /newsite/assets/... static assets may be tracked). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+426
to
+445
| document.querySelectorAll(".site-nav a[href^='#']").forEach((link) => { | ||
| link.addEventListener("click", (event) => { | ||
| const href = link.getAttribute("href"); | ||
|
|
||
| if (!href || href === "#") { | ||
| event.preventDefault(); | ||
| return; | ||
| } | ||
|
|
||
| const target = document.querySelector(href); | ||
|
|
||
| if (!target || !layers.about.contains(target)) { | ||
| return; | ||
| } | ||
|
|
||
| event.preventDefault(); | ||
| scrollToSceneSection(target); | ||
| history.replaceState(null, "", href); | ||
| }); | ||
| }); |
Comment on lines
+458
to
+462
| return () => { | ||
| faqDetails.forEach((details) => { | ||
| details.removeEventListener("toggle", refreshAfterContentToggle); | ||
| }); | ||
| window.removeEventListener("scroll", requestTick); |
Comment on lines
+380
to
+383
| if (!prefersReducedMotion.matches) { | ||
| requestTick(); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.