overleaf/services/web/app/views/_mixins/begin_now_card.pug
Jessica Lawshe f50aca2809 Merge pull request #21862 from overleaf/jel-wbr
[web] Add `<wbr />` so that text within brackets moves to new line

GitOrigin-RevId: 19a42ac02760528fdbb9557dc0ef96795eefb055
2024-11-18 09:06:33 +00:00

25 lines
736 B
Text

mixin begin_now_card()
- var registerURL = '/register'
- var plansURL = '/user/subscription/plans'
- var isUserLoggedIn = !!getSessionUser()
.begin-now-card
div.card.card-pattern
.card-body
p.dm-mono
span.font-size-display-xs
span.text-purple-bright \begin
wbr
span.text-green-bright {
span now
span.text-green-bright }
p #{translate("discover_why_people_worldwide_trust_overleaf", {count: 18})}
p.card-links
if !isUserLoggedIn
a.btn.btn-primary.card-link(
href=registerURL
) #{translate("sign_up_for_free")}
a.btn.card-link(
class = isUserLoggedIn ? 'btn-primary' : 'btn-secondary'
href=plansURL
) #{translate("explore_all_plans")}