mirror of
https://github.com/luxaudio/web.git
synced 2026-10-30 20:38:16 +00:00
214 lines
9.0 KiB
Plaintext
214 lines
9.0 KiB
Plaintext
extends _layout.pug
|
||
|
||
block title
|
||
| #{site.title} - Checkout
|
||
|
||
block cart-button
|
||
|
||
block headscript
|
||
script(src='//www.google.com/recaptcha/api.js?render=explicit')
|
||
|
||
block content
|
||
#page-checkout.page
|
||
section.hero.short
|
||
.content
|
||
h1
|
||
| Checkout
|
||
|
||
section.body
|
||
.content.empty-message
|
||
cart
|
||
div(if='{ isEmpty() }')
|
||
h1
|
||
| Wow! We are amazed you got here.
|
||
p
|
||
| You shouldn't be able to get here with an empty cart.
|
||
// Here, use the coupon code <strong>CHECKEDOUT</strong> to help you fill your
|
||
// cart.
|
||
div
|
||
a.button.submit(href='/store')
|
||
| Continue Shopping
|
||
|
||
.content
|
||
checkout
|
||
div(if='{ !isEmpty() }')
|
||
.contact-information
|
||
h1
|
||
| Contact
|
||
.fields
|
||
user-name.input(placeholder='Name')
|
||
user-email.input(placeholder='Email')
|
||
br
|
||
.payment-information
|
||
h1
|
||
| Payment
|
||
span.secured-text
|
||
| SSL Secure
|
||
span Checkout
|
||
img.lock-icon(src='img/lock-icon.svg')
|
||
.fields
|
||
card-name.input(placeholder='Name on Card')
|
||
card-number.input(name='number', placeholder='Card Number')
|
||
img.card-logo.amex-logo(src='img/card-logos/amex.svg')
|
||
img.card-logo.discover-logo(src='img/card-logos/discover.svg')
|
||
img.card-logo.jcb-logo(src='img/card-logos/jcb.svg')
|
||
// img.card-logo.maestro-logo(src='img/card-logos/maestro.svg')
|
||
img.card-logo.mastercard-logo(src='img/card-logos/mastercard.svg')
|
||
img.card-logo.visa-logo(src='img/card-logos/visa.svg')
|
||
card-expiry.input(name='expiry', placeholder='MM / YY')
|
||
card-cvc.input(name='cvc', placeholder='CVC')
|
||
p.cards-accepted
|
||
// img.card-logo.maestro-logo(src='img/card-logos/maestro.svg')
|
||
img.card-logo.visa-logo(src='img/card-logos/visa.svg')
|
||
img.card-logo.mastercard-logo(src='img/card-logos/mastercard.svg')
|
||
img.card-logo.discover-logo(src='img/card-logos/discover.svg')
|
||
img.card-logo.amex-logo(src='img/card-logos/amex.svg')
|
||
// img.card-logo.jcb-logo(src='img/card-logos/jcb.svg')
|
||
a.stripe-link(href='//www.stripe.com', target='_blank')
|
||
img.stripe-logo(src='img/stripelogo.png')
|
||
// p.legal
|
||
// | Transactions are always encrypted. Credit card information is never stored.
|
||
// img.security-code(src='img/card-logos/security-code.svg')
|
||
// <div class="confirmation">
|
||
// <h1>
|
||
// Almost Done
|
||
// </h1>
|
||
br
|
||
.shipping-information
|
||
h1
|
||
| Shipping
|
||
.fields
|
||
shippingaddress-name.input(placeholder='Recipient')
|
||
shippingaddress-line1.input(placeholder='Address')
|
||
shippingaddress-line2.input(placeholder='Suite')
|
||
.fields
|
||
shippingaddress-city.input(placeholder='City')
|
||
shippingaddress-postalcode.input(placeholder='Postal Code')
|
||
.fields
|
||
shippingaddress-state.input(placeholder='State')
|
||
shippingaddress-country.input(placeholder='Country')
|
||
terms
|
||
label(for='terms')
|
||
| I have read and accept the
|
||
a(href='terms', target='_blank') terms and conditions
|
||
|
||
button(class='{ loading: loading || checkedOut }', __disabled='{ loading || checkedOut }', type='submit')
|
||
span Checkout
|
||
.error(if='{ errorMessage }')
|
||
| { errorMessage }
|
||
|
||
cart
|
||
div(if='{ !isEmpty() }')
|
||
h1
|
||
label(for='cart-collapsed') Your Order
|
||
lineitems(if='{ !isEmpty() }')
|
||
div
|
||
.product-image-container
|
||
include _cart-images.pug
|
||
.product-text-container
|
||
span.product-description
|
||
span.product-name { data.get('productName') }
|
||
p { data.get('description') }
|
||
span.product-quantity-container.locked(if="{ data.get('locked') }")
|
||
| { data.get('quantity') }
|
||
span.product-quantity-container(if="{ !data.get('locked') }")
|
||
quantity-select-control
|
||
.product-price-container.invoice-amount
|
||
.product-price
|
||
| { renderCurrency(parentData.get('currency'), data.get().price * data.get().quantity) } { parentData.get('currency').toUpperCase() }
|
||
.product-list-price.invoice-amount(if='{ data.get().listPrice > data.get().price }')
|
||
| { renderCurrency(parentData.get('currency'), data.get().listPrice * data.get().quantity) } { parentData.get('currency').toUpperCase() }
|
||
.promo
|
||
.promo-label
|
||
| Coupon
|
||
.promo-row(class='{ green: promoMessage.indexOf("Applied") >= 0, red: promoMessage && promoMessage.indexOf("Applied") < 0 }')
|
||
promocode.input(placeholder='Coupon')
|
||
button(class='{ loading: applying, notify: !applying && data.get("order.promoCode") && !promoMessage }', onclick='{ applyPromoCode }')
|
||
span ✓
|
||
span ✕
|
||
// .promo-message(if="{ data.get('order.promoCode') && !promoMessage && !applying }")
|
||
// | Don't forget to apply your code!
|
||
// .promo-message(if='{ promoMessage }', class='{ green: promoMessage.indexOf("Applied") >= 0 }')
|
||
// | { promoMessage }
|
||
.invoice-discount.invoice-line.animated.fadeInUp(if="{ data.get('order.discount') > 0 }")
|
||
.invoice-label
|
||
| Discount
|
||
.invoice-amount
|
||
| { renderCurrency(data.get('order.currency'), data.get('order.discount'))} { data.get('order.currency').toUpperCase() }
|
||
.invoice-line
|
||
.invoice-label
|
||
| Subtotal
|
||
.invoice-amount
|
||
| { renderCurrency(data.get('order.currency'), data.get('order.subtotal'))} { data.get('order.currency').toUpperCase() }
|
||
.invoice-line
|
||
.invoice-label
|
||
| Shipping
|
||
.invoice-amount.not-bold
|
||
| { data.get('order.shipping') == 0 ? 'FREE' : renderCurrency(data.get('order.currency'), data.get('order.shipping'))} { data.get('order.shipping') == 0 ? '' : data.get('order.currency').toUpperCase() }
|
||
.invoice-line
|
||
.invoice-label
|
||
| Tax ({ data.get('order.taxRate') * 100 }%)
|
||
.invoice-amount
|
||
| { renderCurrency(data.get('order.currency'), data.get('order.tax'))} { data.get('order.currency').toUpperCase() }
|
||
.invoice-line.invoice-total
|
||
.invoice-label
|
||
| Total
|
||
.invoice-amount
|
||
| { renderCurrency(data.get('order.currency'), data.get('order.total'))} { data.get('order.currency').toUpperCase() }
|
||
.invoice-line.estimated-delivery
|
||
.invoice-label
|
||
| Ships
|
||
.invoice-amount= shipDate
|
||
// span.notes
|
||
// p
|
||
// span.tax-notice Customers will be responsible for any VAT or customs and import duties.
|
||
p.legal
|
||
a(href='returns', target='_blank') Return Policy
|
||
a(href='privacy', target='_blank') Privacy Policy
|
||
a(href='terms', target='_blank') Terms of Service
|
||
|
||
.thankyou
|
||
h1 Thank You!
|
||
p
|
||
| Your order number is
|
||
strong
|
||
| .
|
||
|
||
p
|
||
| Tell your friends to get Lux!
|
||
|
||
.share-field
|
||
span.ref-text.ref-link Loading...
|
||
span.copied Copied!
|
||
|
||
ul.social
|
||
li
|
||
a.share-facebook(href=social.facebook.shareLink, target='_blank')
|
||
i.fa.fa-facebook-square
|
||
li
|
||
a.share-twitter(href=social.twitter.shareLink, target='_blank')
|
||
i.fa.fa-twitter
|
||
li
|
||
a.share-email(href=social.email.shareLink)
|
||
i.fa.fa-envelope
|
||
|
||
register(immediate-login='true')
|
||
div(if='{ !userExists }')
|
||
p
|
||
| Finish creating your account to learn how to get another
|
||
strong FREE PAIR.
|
||
| Enter a password to save your account.
|
||
.password-row
|
||
user-password.input(placeholder='Password')
|
||
#register-recaptcha
|
||
.error(if='{ errorMessage }')
|
||
| { errorMessage }
|
||
|
||
button(type='submit')
|
||
| Save
|
||
|
||
a(href='/store')
|
||
| No, I don't want my free pair of earbuds.
|
||
|
||
block signup
|