Skip to content

Commit

Permalink
feature(placement): changed top banner fallback to scrimba (#11699)
Browse files Browse the repository at this point in the history
  • Loading branch information
argl authored Aug 27, 2024
1 parent a07476c commit a0b23ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions client/src/telemetry/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const TOGGLE_PLUS_AI_HELP_HISTORY_ENABLED =
export const BANNER_BLOG_LAUNCH_CLICK = "banner_blog_launch_click";
export const AI_HELP = "ai_help";
export const BANNER_AI_HELP_CLICK = "banner_ai_help_click";
export const BANNER_SCRIMBA_CLICK = "banner_scrimba_click";
export const PLAYGROUND = "play_action";
export const AI_EXPLAIN = "ai_explain";
export const SETTINGS = "settings";
Expand Down
16 changes: 9 additions & 7 deletions client/src/ui/organisms/placement/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "./index.scss";
import { useGleanClick } from "../../../telemetry/glean-context";
import { Status, usePlacement } from "../../../placement-context";
import { Payload as PlacementData } from "../../../../../libs/pong/types";
import { BANNER_AI_HELP_CLICK } from "../../../telemetry/constants";
import { BANNER_SCRIMBA_CLICK } from "../../../telemetry/constants";

interface Timer {
timeout: number | null;
Expand Down Expand Up @@ -94,16 +94,18 @@ function TopPlacementFallbackContent() {

return (
<p className="fallback-copy">
Get real-time assistance with your coding queries. Try{" "}
Learn front-end development with high quality, interactive courses from{" "}
<a
href="/en-US/plus/ai-help"
href="https://scrimba.com/learn/frontend?via=mdn"
target="_blank"
rel="noreferrer"
onClick={() => {
gleanClick(BANNER_AI_HELP_CLICK);
gleanClick(BANNER_SCRIMBA_CLICK);
}}
>
AI Help
</a>{" "}
now!
Scrimba
</a>
. Enroll now!
</p>
);
}
Expand Down

0 comments on commit a0b23ce

Please sign in to comment.