overleaf/services/web/app/views/_mixins/begin_now_card.pug
Jessica Lawshe 4f9a056bea Merge pull request #21146 from overleaf/jel-begin-card
[web] Spacing adjustments around "\begin {now}" card on gallery and blog

GitOrigin-RevId: 822a91bb156222b61cbf671d78522fc942d4e5b4
2024-10-18 08:05:17 +00:00

24 lines
719 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
span.text-green-bright {
span now
span.text-green-bright }
p #{translate("discover_why_people_worldwide_trust_overleaf", {count: 18})}
p
if !isUserLoggedIn
a.btn.btn-primary.card-link(
href=registerURL
) #{translate("sign_up_for_free")}
a.card-link(
class = isUserLoggedIn ? 'btn btn-primary' : 'btn btn-secondary'
href=plansURL
) #{translate("explore_all_plans")}