-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stripe pricing table again #420
base: main
Are you sure you want to change the base?
Changes from 5 commits
9d77fbe
9452fb7
0ef5a37
88bfb9a
fde81c4
74bc8e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -271,3 +271,11 @@ a:hover { | |
} | ||
} | ||
} | ||
|
||
.row { | ||
max-width: 65rem; | ||
} | ||
|
||
.button.round { | ||
border-radius: 6px; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,92 +18,24 @@ | |
</div> | ||
|
||
<div class="row"> | ||
<div class="small-12 columns"> | ||
<div class=" columns"> | ||
<fieldset class="block"> | ||
<legend> | ||
<h4>Get Involved</h4> | ||
</legend> | ||
<div> | ||
<p class="text-center">Becoming a member of the Labs | ||
<p class="">Becoming a member of the Labs | ||
robertwpaul marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<a href="/about/facility">opens the doors to our resources and space</a> | ||
any time, as well as | ||
<a href="/events">free access to events</a>. | ||
Long-term desk rental is also available for members. | ||
</p> | ||
</div> | ||
<div class="membership-carousel"> | ||
{% for tier in site.membership_tiers.monthly %} | ||
<div class="membership-tier"> | ||
<div class="header"> | ||
<h3> | ||
{{ tier.name }} | ||
</h3> | ||
<sub> | ||
Β£{{ tier.price }} per month | ||
</sub> | ||
</div> | ||
<div class="description-box"> | ||
<p> | ||
{{ tier.description }} | ||
</p> | ||
</div> | ||
<div class="benefits-list"> | ||
<ul> | ||
{% for benefit in tier.benefits %} | ||
<li>{{ benefit }}</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<div> | ||
<a href="{{ tier.url }}" class="button expand round"> | ||
<b>Join</b> | ||
</a> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
<div style="font-size: 1.2rem; padding: 1.25rem; text-align: center;"> | ||
Click <a href="https://farsetlabs.spaces.nexudus.com">here</a> to check out annual plans | ||
</div> | ||
<script async src="https://js.stripe.com/v3/pricing-table.js"></script> | ||
<stripe-pricing-table pricing-table-id="prctbl_1PYSAdHVcZRgX183ab67RI0g" | ||
publishable-key="pk_live_1sIaEOF4fdxq136517FMhqG0"> | ||
</stripe-pricing-table> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NAB: Do we need to do anything in case the Pricing Table doesn't load (for whatever reason)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, good question. I didn't see anything in the Stripe documentation about it, so...no? It loads a custom element so we could check with something like const pricingTableLoaded = !!customElements.get('stripe-pricing-table');
if (!pricingTableLoaded) {
// insert fallback
} |
||
</fieldset> | ||
|
||
<fieldset class="block"> | ||
<legend> | ||
<h4>Desk Rental</h4> | ||
</legend> | ||
<div class="membership-carousel"> | ||
{% for tier in site.desk_rental_tiers %} | ||
<div class="membership-tier"> | ||
<div class="header"> | ||
<h3> | ||
{{ tier.name }} | ||
</h3> | ||
<sub> | ||
Β£{{ tier.price }} per {% if tier.period == "monthly" %} month {% else %} year {% endif %} | ||
</sub> | ||
</div> | ||
<div class="description-box"> | ||
<p> | ||
{{ tier.description }} | ||
</p> | ||
</div> | ||
<div class="benefits-list"> | ||
<ul> | ||
{% for benefit in tier.benefits %} | ||
<li>{{ benefit }}</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<div> | ||
<a href="{{ tier.url }}" class="button expand round"> | ||
<b>Join</b> | ||
</a> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset class="block"> | ||
<legend> | ||
<h4>Support Us</h4> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
β Does removing this class do anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember why I removed this specifically (likely faffing around with the pricing table width), though
small-12
is justwidth: 100%
, so I think it only makes sense if you're setting different widths at different breakpoints, right? Otherwise thediv
's width is always 100%.