overleaf/services/web/app/views/_mixins/begin_now_card.pug
M Fahru d0df44b190 Merge pull request #21446 from overleaf/jel-content-pages-btn
[web] Fix spacing between `.btn` on gallery pages

GitOrigin-RevId: f3603ffb0a64b69fd3f12eae74639599aa5f8c9a
2024-11-01 09:05:32 +00:00

24 lines
726 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.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")}