Skip to content

Commit

Permalink
Testing with footer
Browse files Browse the repository at this point in the history
  • Loading branch information
7emansell committed Apr 5, 2024
1 parent 3ccc643 commit 51edfc2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Html, Head, Main, NextScript } from "next/document";
import Script from "next/script";

export default function Document() {
return (
Expand All @@ -8,10 +9,11 @@ export default function Document() {
<Main />
<NextScript />
<div id="nypl-footer"></div>
<script
<Script
src="https://ds-header.nypl.org/footer.min.js?containerId=nypl-footer"
async
></script>
strategy="beforeInteractive"
></Script>
</body>
</Html>
);
Expand Down
8 changes: 6 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ import NotificationBanner from "@/components/notificationBanner/notificationBann
export default function Home(props: any = {}) {
return (
<>
<SkipNavigation target="#campaign-hero" />
<SkipNavigation target="#hero" />
{/**
* * @TODO: Header will need to be pulled into a reusable Layout component (DC Facelift phase 2)
* * Let this be @7emansell 's problem if possible **/}
<NotificationBanner />
<Header />
<TemplateAppContainer
breakout={<CampaignHero imageID={props.imageID} />}
breakout={
<div id="hero">
<CampaignHero imageID={props.imageID} />
</div>
}
contentPrimary={<HomePageMainContent />}
/>
<ExploreFurther />
Expand Down

0 comments on commit 51edfc2

Please sign in to comment.