Skip to content

Commit dfec593

Browse files
Move Banner to just the landing page
1 parent 2bd8446 commit dfec593

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

src/components/Banner.res

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@react.component
2+
let make = (~children) =>
3+
<div className="bg-fire-70 text-white text-center text-14 py-3"> children </div>

src/components/Navigation.res

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,6 @@ module MobileNav = {
414414
}
415415
}
416416

417-
module Banner = {
418-
@react.component
419-
let make = (~children) => <div className="bg-fire-70 text-white text-center py-1"> children </div>
420-
}
421-
422417
/* isOverlayOpen: if the mobile overlay is toggled open */
423418
@react.component
424419
let make = (~fixed=true, ~overlayState: (bool, (bool => bool) => unit)) => {
@@ -615,13 +610,5 @@ let make = (~fixed=true, ~overlayState: (bool, (bool => bool) => unit)) => {
615610
->unsafeAddProp("WebkitBackdropFilter", "blur(2px)")
616611
}
617612
/>
618-
// Delete this again, when ReScript 11 is out for some time.
619-
<Banner>
620-
{React.string("ReScript 11 is out! Read the ")}
621-
<Link href="/blog/release-11-0-0" className="underline">
622-
{React.string("announcement blog post")}
623-
</Link>
624-
{React.string(".")}
625-
</Banner>
626613
</>
627614
}

src/layouts/LandingPageLayout.res

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,6 @@ module Sponsors = {
693693
@react.component
694694
let make = (~components=MarkdownComponents.default, ~children) => {
695695
let overlayState = React.useState(() => false)
696-
let hasBanner = true
697696

698697
<>
699698
<Meta
@@ -705,7 +704,15 @@ let make = (~components=MarkdownComponents.default, ~children) => {
705704
<div className="mt-4 xs:mt-16">
706705
<div className="text-gray-80 text-18 z">
707706
<Navigation overlayState />
708-
<div className={`absolute w-full ${hasBanner ? "top-[99px]" : "top-16"}`}>
707+
<div className="absolute w-full top-16">
708+
// Delete this again, when ReScript 11 is out for some time.
709+
<Banner>
710+
{React.string("ReScript 11 is out! Read the ")}
711+
<Next.Link href="/blog/release-11-0-0" className="underline">
712+
{React.string("announcement blog post")}
713+
</Next.Link>
714+
{React.string(".")}
715+
</Banner>
709716
<div className="relative overflow-hidden pb-32">
710717
<main className="mt-10 min-w-320 lg:align-center w-full">
711718
<MdxProvider components>

0 commit comments

Comments
 (0)