Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Add a new Next.js page at /year-round-internships that statically imports HTML from the Webflow URL and renders it. getStaticProps dynamically imports axios and cheerio, fetches the external page, extracts <head> and <body> HTML and passes them as props. The component injects head via html-react-parser and body via dangerouslySetInnerHTML, uses the Layout with transparentHeader, records a page view with the analytics provider, and handles a #refresh anchor by reloading to /year-round-internships.
Replace inline .catch handlers with explicit try/catch blocks in getStaticProps for four pages to ensure errors are logged and rethrown instead of leaving res undefined. Applied to pages/easter/index.js, pages/internships/index.js, pages/summer-internships/index.js, and pages/years-of-impact/index.js where axios requests to their respective Webflow URLs are now wrapped in try/catch for clearer error propagation and safer runtime behavior.
Contributor
|
@leoalfonso14 It looks like Pam just added the Easter banner and the navbar is now clashing with the hero section. We'll probably want to add some more padding: |
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.

About
This PR adds the new Internship Embed Pages, hardcoding the Webflow page IDs as usual.
Test Instructions
Screenshots
Closes Tickets
CFDP-3755
CFDP-3676