Skip to content

Commit a3e4106

Browse files
Add advertisment banner for ReScript 11
1 parent 29bba40 commit a3e4106

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/components/Navigation.res

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,11 @@ 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+
417422
/* isOverlayOpen: if the mobile overlay is toggled open */
418423
@react.component
419424
let make = (~fixed=true, ~overlayState: (bool, (bool => bool) => unit)) => {
@@ -610,5 +615,13 @@ let make = (~fixed=true, ~overlayState: (bool, (bool => bool) => unit)) => {
610615
->unsafeAddProp("WebkitBackdropFilter", "blur(2px)")
611616
}
612617
/>
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>
613626
</>
614627
}

0 commit comments

Comments
 (0)