-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance(signup): replace "Get MDN Plus" with "Sign up for free" (mdn#…
…9357) * enhance(signup): replace "Get MDN Plus" with "Sign up for free" Also replaces "Upgrade to MDN Plus" with "Log in to MDN Plus". * fix(playground): remove space Co-authored-by: Leo McArdle <[email protected]> * refactor(client): extract PlusLoginBanner * refactor(client): rename/inline old login-banner.tsx * chore(login-banner): revert to "Upgrade to MDN Plus" * chore(login-banner): add "[Upgrade to MDN Plus] for free" The Playground banner already had this. * enhance(login-banner): improve responsiveness * chore(telemetry): mark unused constants as deprecated * fixup! refactor(client): extract PlusLoginBanner * chore(telemetry): update login/signup constants * chore(telemetry): remove unused constants + mention in JSDoc * refactor(client): rename SignInLink to LogInLink * update class on LogInLink component from signin-link to login-link * simplify responsive css on login banner * adjust site header so it doesn't overflow just prior to breakpoint --------- Co-authored-by: Leo McArdle <[email protected]>
- Loading branch information
Showing
21 changed files
with
140 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { AI_HELP } from "../../telemetry/constants"; | ||
import { SignUpLink } from "../../ui/atoms/signup-link"; | ||
import { PlusLoginBanner } from "../common/login-banner"; | ||
|
||
export function AiLoginBanner() { | ||
return ( | ||
<PlusLoginBanner gleanPrefix={AI_HELP}> | ||
Want to use AI Help? | ||
</PlusLoginBanner> | ||
); | ||
} | ||
|
||
export function AiUpsellBanner({ limit }: { limit: number }) { | ||
return ( | ||
<div className="login-banner"> | ||
<span> | ||
<span>You have reached the limit of {limit} questions per day.</span> | ||
<br /> | ||
<span> | ||
<strong>Want to ask more?</strong> Upgrade to MDN Plus 5 or MDN | ||
Supporter 10. | ||
</span> | ||
</span> | ||
<ul className="auth-container"> | ||
<li> | ||
<SignUpLink | ||
gleanContext={`${AI_HELP}: upsell-button`} | ||
toPlans={true} | ||
/> | ||
</li> | ||
</ul> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 18 additions & 11 deletions
29
client/src/plus/updates/login-banner.tsx → client/src/plus/common/login-banner.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
client/src/ui/atoms/signin-link/index.scss → client/src/ui/atoms/login-link/index.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.