Skip to content

Commit 7a2639a

Browse files
authored
chore(placement): update Scrimba banner (#12385)
Promotes 25% new year discount.
1 parent 8197ff9 commit 7a2639a

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

Diff for: client/src/ui/organisms/placement/index.tsx

+5-18
Original file line numberDiff line numberDiff line change
@@ -89,23 +89,7 @@ function TopPlacementFallbackContent() {
8989
});
9090
const now = Date.now();
9191

92-
return now < Date.parse("2024-12-25") ? (
93-
<p className="fallback-copy">
94-
Take our daily challenges on Scrimba until 24th December and win exciting
95-
prizes.{" "}
96-
<a
97-
href="https://scrimba.com/javascriptmas?via=mdn"
98-
target="_blank"
99-
rel="noreferrer"
100-
ref={observedNode}
101-
onClick={() => {
102-
gleanClick(BANNER_SCRIMBA_CLICK);
103-
}}
104-
>
105-
Join now
106-
</a>
107-
</p>
108-
) : (
92+
return (
10993
<p className="fallback-copy">
11094
Learn front-end development with high quality, interactive courses from{" "}
11195
<a
@@ -119,7 +103,10 @@ function TopPlacementFallbackContent() {
119103
>
120104
Scrimba
121105
</a>
122-
. Enroll now!
106+
.{" "}
107+
{now < Date.parse("2025-01-08")
108+
? "Enroll now and save 25% this New Year!"
109+
: "Enroll now!"}
123110
</p>
124111
);
125112
}

0 commit comments

Comments
 (0)