Skip to content

Commit 6561455

Browse files
committed
feat(pro): make the nav branding an upsell for free users
The nav slot linked to the phcode.dev home page for free users, which was a dead end for the people most likely to convert. It now reads "Get Phoenix Pro" with a gold crown and links to the pricing page (promo=FreeNavbar for attribution). Pro, trial and off-hours branding are unchanged. The static href in index.html is updated too so a click during boot, before entitlements resolve, still lands on pricing. The label there stays "phcode.dev" - the real label is localized and comes from _updateBranding. Crown colour matches the pro crowns in the live preview device dropdown.
1 parent 85030d1 commit 6561455

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎src/index.html‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,10 @@
922922
<div id="newProject" class="new-project-btn btn-alt-quiet"></div>
923923
</div>
924924
<div>
925-
<a id="phcode-io-main-nav" href="https://phcode.dev" target="_blank" rel="noopener">phcode.dev</a>
925+
<!-- placeholder only: profile-menu.js _updateBranding repaints this once entitlements
926+
resolve - localized "Get Phoenix Pro" for free users, plan name for pro users -->
927+
<a id="phcode-io-main-nav" href="https://phcode.dev/pricing?promo=FreeNavbar"
928+
target="_blank" rel="noopener">phcode.dev</a>
926929
</div>
927930
<div id="mainNavBarRight">
928931
<div id="navBackButton" class="nav-back-btn btn-alt-quiet"><i class="fa-solid fa-arrow-left"></i></div>

‎src/styles/brackets.less‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ html, body {
9393
color: @dark-bc-text-link;
9494
}
9595

96+
// crown on the free "Get Phoenix Pro" upsell. same gold as the pro crowns in the
97+
// live preview device dropdown, so the pro marker reads the same everywhere.
98+
#phcode-io-main-nav .fa-crown{
99+
color: #FBB03B;
100+
margin-left: 4px;
101+
font-size: 0.9em;
102+
}
103+
96104
#phcode-io-main-nav.phoenix-pro{
97105
background: @phoenix-pro-gradient-dark;
98106
background-clip: text;

0 commit comments

Comments
 (0)