Skip to content

Commit

Permalink
chore(placement): update Scrimba banner
Browse files Browse the repository at this point in the history
Promotes 25% new year discount.
  • Loading branch information
caugner committed Jan 2, 2025
1 parent 8197ff9 commit d74c515
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions client/src/ui/organisms/placement/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,23 +89,7 @@ function TopPlacementFallbackContent() {
});
const now = Date.now();

return now < Date.parse("2024-12-25") ? (
<p className="fallback-copy">
Take our daily challenges on Scrimba until 24th December and win exciting
prizes.{" "}
<a
href="https://scrimba.com/javascriptmas?via=mdn"
target="_blank"
rel="noreferrer"
ref={observedNode}
onClick={() => {
gleanClick(BANNER_SCRIMBA_CLICK);
}}
>
Join now
</a>
</p>
) : (
return (
<p className="fallback-copy">
Learn front-end development with high quality, interactive courses from{" "}
<a
Expand All @@ -119,7 +103,10 @@ function TopPlacementFallbackContent() {
>
Scrimba
</a>
. Enroll now!
.{" "}
{now < Date.parse("2025-01-08")
? "Enroll now and save 25% this New Year!"
: "Enroll now!"}
</p>
);
}
Expand Down

0 comments on commit d74c515

Please sign in to comment.