pay.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. ---
  2. title: Pay
  3. page-header: Pay
  4. layout: pay
  5. permalink: pay.html
  6. page-libs: [tabler-payments, imask]
  7. ---
  8. <div class="bg-dark bg-cover" style="background-image: url({{ page | relative }}/static/bg-cover.jpg)">
  9. <div class="bg-dark bg-opacity-75 pt-5 bg-blur">
  10. <div class="container container-tight bg-overlay">
  11. <img src="{{ page | relative }}/static/bg-cover.jpg" alt="" class="img-fluid rounded-lg rounded-top">
  12. </div>
  13. </div>
  14. </div>
  15. <div class="container container-tight">
  16. <div class="card rounded-top-0 border-top-0">
  17. <div class="card-body pt-0">
  18. <div class="mb-3 text-center">
  19. {% include "ui/avatar.html" person-id=1 size="xl" rounded class="avatar-cover rounded-circle mb-3" %}
  20. <div class="mb-4">
  21. <h2 class="h2">Front-End Learning</h2>
  22. <div class="text-secondary">Learn to build web apps with HTML & CSS. Get started quickly with included templates.
  23. </div>
  24. </div>
  25. </div>
  26. <nav class="nav nav-segmented w-100 mb-4" role="tablist">
  27. <button href="#tab-card" class="nav-link active" data-bs-toggle="tab" role="tab" aria-controls="tab-card"
  28. aria-selected="true">
  29. {% include "ui/icon.html" icon="credit-card" %}
  30. <span>Pay With Card</span>
  31. </button>
  32. <button href="#tab-paypal" class="nav-link" data-bs-toggle="tab" role="tab" aria-controls="tab-paypal"
  33. aria-selected="false">
  34. {% include "ui/icon.html" icon="brand-paypal" %}
  35. <span>Pay With PayPal</span>
  36. </button>
  37. </nav>
  38. <div class="tab-content">
  39. <div class="tab-pane active show" id="tab-card" role="tabpanel">
  40. <form>
  41. <div class="space-y">
  42. <div>
  43. <label class="form-label" for="card-number">Card Number</label>
  44. {% capture html -%}
  45. {% include "ui/payment.html" payment="visa" size="xs" %}
  46. {%- endcapture %}
  47. {% include "ui/form/input-group.html" id="card-number-addon" prepend-html=html flat=true placeholder="0000 0000 0000 0000" %}
  48. </div>
  49. <div class="row g-3">
  50. <div class="col-sm-6">
  51. <label class="form-label" for="card-expiry">Expiry Date</label>
  52. <input type="text" class="form-control" id="card-expiry" placeholder="MM/YY"
  53. inputmode="numeric" aria-required="true" maxlength="5"/>
  54. </div>
  55. <div class="col-sm-6">
  56. <label class="form-label" for="card-cvc">CVC</label>
  57. <input type="text" class="form-control" id="card-cvc" placeholder="CVC" inputmode="numeric"
  58. aria-required="true" maxlength="3"/>
  59. </div>
  60. </div>
  61. <div>
  62. <label class="form-label" for="card-name">Name on Card</label>
  63. <input type="text" class="form-control" id="card-name" placeholder="Full name"
  64. aria-required="true" />
  65. </div>
  66. <div>
  67. <label class="form-label" for="card-email">Email</label>
  68. <input type="email" class="form-control" id="card-email" placeholder="[email protected]"
  69. aria-required="true" />
  70. </div>
  71. <div>
  72. <button type="button" class="btn btn-primary w-100">
  73. Pay $253
  74. </button>
  75. <div class="text-secondary text-center small mt-3">You'll be charged $253, including
  76. $48 for VAT in Poland</div>
  77. </div>
  78. </div>
  79. </form>
  80. </div>
  81. <div class="tab-pane" id="tab-paypal" role="tabpanel">
  82. <button type="button" class="btn btn-primary w-100">
  83. {% include "ui/icon.html" icon="brand-paypal" %}
  84. <span class="ms-2">Pay with PayPal - $253</span>
  85. </button>
  86. <div class="text-secondary text-center small mt-3">You'll be charged $253, including $48 for VAT in
  87. Poland</div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>