]> git.ipfire.org Git - ipfire.org.git/commitdiff
Refactor donation page
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Jul 2018 09:37:30 +0000 (10:37 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Jul 2018 09:37:30 +0000 (10:37 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/scss/_donation.scss [deleted file]
src/scss/_variables.scss
src/scss/style.scss
src/static/img/paypal.png [new file with mode: 0644]
src/static/img/paypal@2x.png [new file with mode: 0644]
src/static/img/paypal@3x.png [new file with mode: 0644]
src/templates/donate.html

index 9a2ac226f2e3db6ef4ffd7097a9e31739258a3e9..9db1b2046879f617b3d5b7c3a7bd70bca358e38d 100644 (file)
@@ -101,6 +101,7 @@ webdir = $(backenddir)/web
 templates_DATA = \
        src/templates/base.html \
        src/templates/base-1.html \
+       src/templates/donate.html \
        src/templates/error.html \
        src/templates/error-404.html \
        src/templates/error-500.html \
@@ -129,7 +130,6 @@ templates_staticdir = $(templatesdir)/static
 
 SCSS_FILES = \
        src/scss/style.scss \
-       src/scss/_donation.scss \
        src/scss/_fonts.scss \
        src/scss/_icons.scss \
        src/scss/_variables.scss
@@ -158,9 +158,21 @@ static_fonts_DATA = \
 static_fontsdir = $(staticdir)/fonts
 
 static_images_DATA = \
+       src/static/img/amex.png \
+       src/static/img/amex@2x.png \
+       src/static/img/amex@3x.png \
        src/static/img/appliance-pro.png \
        src/static/img/header-background.jpg \
-       src/static/img/ipfire-tux.png
+       src/static/img/ipfire-tux.png \
+       src/static/img/mastercard.png \
+       src/static/img/mastercard@2x.png \
+       src/static/img/mastercard@3x.png \
+       src/static/img/paypal.png \
+       src/static/img/paypal@2x.png \
+       src/static/img/paypal@3x.png \
+       src/static/img/visa.png \
+       src/static/img/visa@2x.png \
+       src/static/img/visa@3x.png
 
 static_imagesdir = $(staticdir)/img
 
diff --git a/src/scss/_donation.scss b/src/scss/_donation.scss
deleted file mode 100644 (file)
index d4b62ca..0000000
+++ /dev/null
@@ -1,232 +0,0 @@
-.donation {
-       background-image: url('../img/header-background.jpg');
-       background-size: cover;
-       background-attachment: fixed;
-       background-position: center center;
-       width: 100vw;
-       height: 768px;
-       margin-bottom: 1122px;
-       @include media-breakpoint-up(sm) {
-               margin-bottom: 1078px;
-       }
-       @include media-breakpoint-up(md) {
-               margin-bottom: 668px;
-       }
-       @include media-breakpoint-up(lg) {
-               margin-bottom: 522px;
-       }
-       @include media-breakpoint-up(xl) {
-               height: 800px;
-               margin-bottom: 328px;
-       }
-}
-
-.donation-card {
-       border-radius: 4px;
-       background-color: white;
-       box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
-       @include media-breakpoint-down(sm) {
-               background-color: transparent;
-               box-shadow: none;
-               border-radius: 0;
-       }
-       h3 a {
-               color: white;
-       }
-       .card {
-               @include media-breakpoint-down(sm) {
-                       height: 1100px;
-                       margin-bottom: 32px;
-                       border-radius: 4px;
-                       background-color: white;
-                       box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
-               }
-               @include media-breakpoint-down(xs) {
-                       border-radius: 0;
-                       box-shadow: none;
-                       margin-bottom: 0;
-               }
-       }
-       .info {
-               border-radius: 4px 0 0 4px;
-               @include media-breakpoint-down(sm) {
-                       border-radius: 4px;
-                       box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
-               }
-               @include media-breakpoint-down(xs) {
-                       border-radius: 0;
-                       box-shadow: none;
-               }
-       }
-}
-
-.ownamount {
-       overflow: hidden;
-       width: 95%;
-       height: 48px;
-       padding: 0 16px;
-       border-radius: 2px;
-       border: none;
-}
-
-.ownamount {
-       background-color: rgba($blue-grey-900, .08);
-       border-bottom: 2px solid $blue-grey-900;
-       width: 90%;
-}
-
-input.radiobtn:not(old) {
-       display: none;
-}
-
-input.radiobtn:not(old) + label {
-       display: inline-block;
-       background-image: url("/static/img/icons/icon-radiobtn-off.png");
-       background-repeat: no-repeat;
-       background-position: 0 0;
-       padding-left: 40px;
-       @include media-breakpoint-up(lg) {
-               padding-left: 28px;
-       }
-}
-
-input.radiobtn:not(old):checked + label {
-       background-image: url("/static/img/icons/icon-radiobtn-on.png");
-}
-
-.inline-card {
-       border-radius: 8px;
-       background-color: $blue-grey-50;
-       padding: 24px;
-       position: relative;
-       padding: 24px 20px;
-       #amount {
-               margin-left: -8px;
-       }
-}
-
-label.amount {
-       width: 76px;
-       height: 48px;
-       display: block;
-       background-color: white;
-       border-radius: 2px;
-       box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 1px 2px 0 rgba(0, 0, 0, 0.23);
-       font-size: 20px;
-       color: $blue-400;
-       text-align: center;
-       margin: 0 4px 12px 4px;
-       padding: 8px 0 0 0;
-       @include media-breakpoint-up(sm) {
-               width: 84px;
-               margin: 0 8px 16px 8px;
-       }
-}
-
-label.cc img {
-       height: 24px;
-}
-
-#ccpayment,
-#paymentpaypal,
-#sepapayment {
-       @include media-breakpoint-down(lg) {
-               padding-bottom: 24px;
-               margin-bottom: 32px;
-               label img {
-                       position: relative;
-               }
-       }
-}
-
-#ccpayment {
-       @include media-breakpoint-up(lg) {
-               margin-top: 16px;
-               label {
-                       background-position: 0 4px;
-               }
-       }
-}
-
-#paymentpaypal {
-       @include media-breakpoint-down(lg) {
-               label img {
-                       top: -7px;
-               }
-       }
-       @include media-breakpoint-up(lg) {
-               margin-top: 14px;
-               label {
-                       background-position: 0 6px;
-               }
-       }
-       @include media-breakpoint-up(xl) {
-               margin-top: 0;
-               label {
-                       background-position: 0 20px;
-               }
-       }
-}
-
-#sepapayment {
-       @include media-breakpoint-up(lg) {
-               padding-top: 20px;
-       }
-}
-
-input[name=amount] {
-       display: none;
-}
-
-input[name=amount]:checked + label {
-       background-image: linear-gradient(120deg, rgb(79, 195, 247), rgb(25, 118, 210));
-       color: white;
-}
-
-.or {
-       display: block;
-       height: 1px;
-       width: 90%;
-       border: 1px solid $blue-grey-300;
-       position: absolute;
-       left: 5%;
-       top: 212px;
-       @include media-breakpoint-up(sm) {
-               top: 222px;
-       }
-       @include media-breakpoint-up(lg) {
-               height: 200px;
-               width: 1px;
-               border: 1px solid $blue-grey-300;
-               left: 257px;
-               top: 12px;
-       }
-       @include media-breakpoint-up(xl) {
-               left: 350px;
-       }
-       &:before {
-               content: "OR";
-               font-family: 'Ubuntu', sans-serif;
-               font-size: 16px;
-               font-weight: 500;
-               text-align: center;
-               color: $blue-grey-300;
-               background-color: $blue-grey-50;
-               display: block;
-               position: absolute;
-               top: -13px;
-               left: 50%;
-               margin-left: -20px;
-               width: 40px;
-               height: 24px;
-               @include media-breakpoint-up(lg) {
-                       text-align: left;
-                       display: block;
-                       top: 12px;
-                       left: -12px;
-                       margin-left: 0;
-                       width: 24px;
-                       height: 24px;
-               }
-       }
-}
index 780493bd955dabc796844b96c6412a5cb490a586..d5dc326c2fc58bbc3198c54256f27a1cdaaa6abe 100644 (file)
@@ -35,6 +35,7 @@ $cyan:                                                #00bcd4;
 // Theme
 $primary:                                      $red-900;
 $secondary:                                    white;
+$light:                                                $blue-grey-50;
 $dark:                                         $blue-grey-900;
 
 $yiq-text-dark:                                $primary;
@@ -68,7 +69,7 @@ $lead-font-size:                      1.5rem;
 $small-font-size:                      87.5%;
 
 // Headings
-$headings-font-weight:         300;
+$headings-font-weight:         400;
 $headings-line-height:         1.5;
 $headings-margin-bottom:       1.5rem;
 $headings-color:                       $blue-grey-900;
index 3e08f7d20272f3381a60a50d276754660b12fe05..e9e086ad09c2bfecb5e212c1825fc63d1487d60b 100644 (file)
 @import "../bootstrap/scss/media";
 @import "../bootstrap/scss/list-group";
 @import "../bootstrap/scss/close";
+@import "../bootstrap/scss/modal";
 @import "../bootstrap/scss/utilities";
 @import "../bootstrap/scss/print";
 
 // Include fonts
 @import "fonts";
 
-// Donation Box
-@import "_donation";
-
 // Custom stuff
 @import '_icons';
 
diff --git a/src/static/img/paypal.png b/src/static/img/paypal.png
new file mode 100644 (file)
index 0000000..112fcdb
Binary files /dev/null and b/src/static/img/paypal.png differ
diff --git a/src/static/img/paypal@2x.png b/src/static/img/paypal@2x.png
new file mode 100644 (file)
index 0000000..345891e
Binary files /dev/null and b/src/static/img/paypal@2x.png differ
diff --git a/src/static/img/paypal@3x.png b/src/static/img/paypal@3x.png
new file mode 100644 (file)
index 0000000..21ca749
Binary files /dev/null and b/src/static/img/paypal@3x.png differ
index cfb06a077ca14b7c94824c30ed47c7d4d5dbb15e..a20933667c1d302afbfeaccdd8e807fe9273709a 100644 (file)
 {% extends "base-1.html" %}
-               
+
 {% block title %}{{ _("Donate") }}{% end block %}
+
 {% block container %}
+       {% set amounts = (10, 25, 50, 75, 100, 250) %}
+
+       <h1 class="text-center mt-5 mb-5">{{ _("Donate") }}</h1>
+
        <section class="donation">
                <div class="container">
-                       <div class="row">
-                               <section class="features-content col-12 text-center">
-                                       <h2 class="display-2">{{ _("Donate") }}</h2>
-
-                                       <form action="" method="POST">
-                                               {% raw xsrf_form_html() %}
-
-                                               <div class="row justify-content-center mb-6">
-                                                       <div class="col-12 col-sm-11 col-xl-12">
-                                                               <div class="row">
-                                                                       <div class="donation-card d-flex flex-column flex-md-row-reverse text-left col p-0">
-                                                                               <div class="card p-4 p-sm-6 p-md-4 pt-6">
-                                                                                       <div class="row py-md-3 px-md-6">
-                                                                                               <div class="col-12 col-lg-6 d-flex flex-column mb-6 mb-lg-0">
-                                                                                                       <h4 class="mb-5">Choose a currency</h4>
-                                                                                                       <div class="row pt-4">
-                                                                                                               <div class="col col-sm-4 col-md-5">
-                                                                                                                       <input class="form-check-input mr-4 radiobtn" type="radio" name="currency" id="EUR" value="EUR" checked>
-                                                                                                                       <label for="EUR" class="form-check-label radiobtn">€uro</label>
-                                                                                                               </div>
-                                                                                                               <div class="col col-sm-4 col-md-5">
-                                                                                                                       <input class="form-check-input mr-4 radiobtn" type="radio" name="currency" id="USD" value="USD">
-                                                                                                                       <label for="USD" class="form-check-label radiobtn">USD $</label>
-                                                                                                               </div>
-                                                                                                       </div>
-                                                                                               </div>
-                                                                                               
-                                                                                               <div class="col d-flex flex-column">
-                                                                                                       <h4 class="mb-5">Frequency</h4>
-                                                                                                       <div class="row pt-4">
-                                                                                                               <div class="col col-sm-4 col-md-5 col-lg-6">
-                                                                                                                       <input class="form-check-input mr-4 radiobtn" type="radio" name="frequency" id="one-time-payment" value="single" checked>
-                                                                                                                       <label for="one-time-payment" class="form-check-label radiobtn">One time</label>
-                                                                                                               </div>
-                                                                                                               <div class="col col-sm-4 col-md-5">
-                                                                                                                       <input class="form-check-input mr-4 radiobtn" type="radio" name="frequency" id="monthly-payment" value="monthly">
-                                                                                                                       <label for="monthly-payment" class="form-check-label radiobtn">Monthly</label>
-                                                                                                               </div>
-                                                                                                       </div>
-                                                                                               </div>
-                                                                                       </div>
-                                                                               
-                                                                                       <div class="row mt-6">
-                                                                                               <div class="inline-card bg-blue-grey-50 col-11 mx-auto">
-                                                                                                       <div class="or"></div>
-                                                                                                       <div class="row mb-4 mb-sm-6 mb-lg-0">
-                                                                                                               <div class="col-12 col-lg-6 mb-6">
-                                                                                                                       <h4 class="mb-5">Choose an amount</h4>
-                                                                                                                       <div class="form-group d-flex flex-row flex-wrap" id="amount">
-                                                                                                                               <input class="amount-check" type="radio" name="amount" id="10" value="10" checked>
-                                                                                                                               <label for="10" class="form-check-label amount"><span id="amount_10">10</span><span class="currency">€</span></label>
-                                                                                                                               
-                                                                                                                               <input class="amount-check" type="radio" name="amount" id="25" value="25">
-                                                                                                                               <label for="25" class="form-check-label amount"><span id="amount_25">25</span><span class="currency">€</span></label>
-                                                                                                                               
-                                                                                                                               <input class="amount-check" type="radio" name="amount" id="50" value="50">
-                                                                                                                               <label for="50" class="form-check-label amount"><span id="amount_50">50</span><span class="currency">€</span></label>
-                                                                                                                               
-                                                                                                                               <input class="amount-check" type="radio" name="amount" id="75" value="50">
-                                                                                                                               <label for="50" class="form-check-label amount"><span id="amount_75">75</span><span class="currency">€</span></label>
-                                                                                                                       
-                                                                                                                               <input class="amount-check" type="radio" name="amount" id="100" value="100">
-                                                                                                                               <label for="100" class="form-check-label amount"><span id="amount_100">100</span><span class="currency">€</span></label>
-                                                                                                                               
-                                                                                                                               <input class="amount-check" type="radio" name="amount" id="250" value="250">
-                                                                                                                               <label for="250" class="form-check-label amount"><span id="amount_250">250</span><span class="currency">€</span></label>
-                                                                                                                       </div>                                                                                  
-                                                                                                               </div>
-                                                                                                               <div class="col">
-                                                                                                                       <div class="form-group">
-                                                                                                                               <h4 class="mb-5">Enter your own</h4>
-                                                                                                                               <input type="number" class="ownamount w-100" id="enterYourOwn" placeholder="Enter your own amount">
+                       <div class="row mb-5">
+                               <div class="col-12">
+                                       <div class="card">
+                                               <div class="card-body">
+                                                       <div class="row">
+                                                               <div class="col col-lg-4">
+                                                                       <h5>IP<strong>Fire</strong> is an Open Source software project.</h5>
+
+                                                                       <p>
+                                                                               IPFire is an Open Source software project.
+                                                                       </p>
+
+                                                                       <p>
+                                                                               Development and keeping the project healthy is carried out by a
+                                                                               group of volunteers who have built a very successful product,
+                                                                               which hundreds of thousands of people use every day.
+                                                                       </p>
+
+                                                                       <p>
+                                                                               Your donation helps us to make IPFire even better...
+                                                                       </p>
+                                                               </div>
+
+                                                               <div class="col col-lg-8">
+                                                                       <form action="" method="POST">
+                                                                               {% raw xsrf_form_html() %}
+
+                                                                               <div class="row justify-content-center">
+                                                                                       <div class="col-12 col-sm-11 col-xl-12">
+                                                                                               <div class="row">
+                                                                                                       <div class="d-flex flex-column flex-md-row-reverse text-left col p-0">
+                                                                                                               <div class="p-4 p-sm-6 p-md-4 pt-6">
+                                                                                                                       <div class="row step1">
+                                                                                                                               <div class="col-12 col-lg-6">
+                                                                                                                                       <h6>Choose a currency</h6>
+
+                                                                                                                                       <div class="form-check form-check-inline">
+                                                                                                                                               <input class="form-check-input" type="radio" name="currency" id="EUR" value="EUR" checked>
+                                                                                                                                               <label class="form-check-label" for="EUR">{{ _("Euro") }}</label>
+                                                                                                                                       </div>
+
+                                                                                                                                       <div class="form-check form-check-inline">
+                                                                                                                                               <input class="form-check-input" type="radio" name="currency" id="USD" value="USD">
+                                                                                                                                               <label class="form-check-label" for="USD">{{ _("US Dollar") }}</label>
+                                                                                                                                       </div>
+                                                                                                                               </div>
+
+                                                                                                                               <div class="col-12 col-lg-6">
+                                                                                                                                       <h6>Frequency</h6>
+
+                                                                                                                                       <div class="form-check form-check-inline">
+                                                                                                                                               <input class="form-check-input" type="radio" name="frequency" id="frequency-single" value="single" checked>
+                                                                                                                                               <label class="form-check-label" for="frequency-single">{{ _("One Time") }}</label>
+                                                                                                                                       </div>
+
+                                                                                                                                       <div class="form-check form-check-inline">
+                                                                                                                                               <input class="form-check-input" type="radio" name="frequency" id="frequency-monthly" value="monthly">
+                                                                                                                                               <label class="form-check-label" for="frequency-monthly">{{ _("Monthly") }}</label>
+                                                                                                                                       </div>
+                                                                                                                               </div>
                                                                                                                        </div>
-                                                                                                               </div>
-                                                                                                       </div>
-                                                                                                       <div class="row mt-5 mt-sm-6 mb-5 mb-lg-0 mt-lg-0">
-                                                                                                               <div class="col d-flex flex-row">
-                                                                                                                       <h4 class="mr-3">Choose payment</h4>
-                                                                                                                       <svg class="icon i_secure ml-4"><use xlink:href="#secure"/></svg>
-                                                                                                                       <p class="text-uppercase blue_grey_300"><strong>Secure</strong></p>
-                                                                                                               </div>
-                                                                                                       </div>
-                                                                                                       
-                                                                                                       <div class="row d-flex flex-column flex-lg-row pl-4 pr-4 md-4 mb-lg-0 mb-xl-6">
-                                                                                                               <div class="col col-lg-6 col-xl-4" id="ccpayment">
-                                                                                                                       <input class="form-check-input mr-4 radiobtn" type="radio" name="payment" id="credit-card" value="credit-card" checked>
-                                                                                                                       <label for="credit-card" class="form-check-label radiobtn cc">
-                                                                                                                               <picture>
-                                                                                                                                       <source srcset="{{ static_url("img/amex.png") }},
-                                                                                                                                               {{ static_url("img/amex@2x.png") }} 2x,
-                                                                                                                                               {{ static_url("img/amex@3x.png") }} 3x ">
-                                                                                                                                       <img src="{{ static_url("img/amex.png") }}"
-                                                                                                                                               srcset="{{ static_url("img/amex.png") }},
-                                                                                                                                               {{ static_url("img/amex@2x.png") }} 2x,
-                                                                                                                                               {{ static_url("img/amex@3x.png") }} 3x "
-                                                                                                                                               alt="Amex" class="m-xl-2">
-                                                                                                                               </picture>
-                                                                                                                               
-                                                                                                                               <picture>
-                                                                                                                                       <source srcset="{{ static_url("img/mastercard.png") }},
-                                                                                                                                               {{ static_url("img/mastercard@2x.png") }} 2x,
-                                                                                                                                               {{ static_url("img/mastercard@3x.png") }} 3x ">
-                                                                                                                                       <img src="{{ static_url("img/mastercard.png") }}"
-                                                                                                                                               srcset="{{ static_url("img/mastercard.png") }},
-                                                                                                                                               {{ static_url("img/mastercard@2x.png") }} 2x,
-                                                                                                                                               {{ static_url("img/mastercard@3x.png") }} 3x "
-                                                                                                                                               alt="Mastercard" class="m-xl-2">
-                                                                                                                               </picture>
-                                                                                                                               
-                                                                                                                               <picture>
-                                                                                                                                       <source srcset="{{ static_url("img/visa.png") }},
-                                                                                                                                               {{ static_url("img/visa@2x.png") }} 2x,
-                                                                                                                                               {{ static_url("img/visa@3x.png") }} 3x ">
-                                                                                                                                       <img src="{{ static_url("img/visa.png") }}"
-                                                                                                                                               srcset="{{ static_url("img/visa.png") }},
-                                                                                                                                               {{ static_url("img/visa@2x.png") }} 2x,
-                                                                                                                                               {{ static_url("img/visa@3x.png") }} 3x "
-                                                                                                                                               alt="Visa" class="m-xl-2">
-                                                                                                                               </picture>
-                                                                                                                       </label>
-                                                                                                               </div>
-                                                                                                               
-                                                                                                               <div class="col col-lg-6 col-xl-4" id="sepapayment">
-                                                                                                                       <input class="form-check-input mr-4 radiobtn" type="radio" name="payment" id="direct-debit" value="direct-debit">
-                                                                                                                       <label for="direct-debit" class="form-check-label radiobtn">SEPA direct debit</label>
-                                                                                                               </div>
-                                                                                                               
-                                                                                                               <div class="col col-lg-6 col-xl-4" id="paymentpaypal">
-                                                                                                                       <input class="form-check-input mr-4 radiobtn" type="radio" name="payment" id="paypal" value="paypal">
-                                                                                                                       <label for="paypal" class="form-check-label radiobtn">
-                                                                                                                               <picture>
-                                                                                                                                       <source srcset="{{ static_url("img/paypal.png") }},
-                                                                                                                                               {{ static_url("img/paypal@2x.png") }} 2x,
-                                                                                                                                               {{ static_url("img/paypal@3x.png") }} 3x ">
-                                                                                                                                       <img src="{{ static_url("img/paypal.png") }}"
-                                                                                                                                               srcset="{{ static_url("img/paypal.png") }},
-                                                                                                                                               {{ static_url("img/paypal@2x.png") }} 2x,
-                                                                                                                                               {{ static_url("img/paypal@3x.png") }} 3x "
-                                                                                                                                               alt="PayPal" class="m-xl-4">
-                                                                                                                               </picture>
-                                                                                                                       </label>
+
+                                                                                                                       <div class="my-5 p-5 bg-light">
+                                                                                                                               <h6>{{ _("Choose an amount") }}</h6>
+
+                                                                                                                               <div class="btn-group-toggle flex-wrap mb-3" data-toggle="buttons">
+                                                                                                                                       {% for amount in amounts %}
+                                                                                                                                               <label class="btn btn-secondary btn-lg mb-2">
+                                                                                                                                                       <input type="radio" name="amount" value="{{ amount }}"
+                                                                                                                                                               autocomplete="off"> <span class="USD">$</span>{{ amount }} <span class="EUR">€</span>
+                                                                                                                                               </label>
+                                                                                                                                       {% end %}
+                                                                                                                               </div>
+
+                                                                                                                               <div class="form-group row mb-5">
+                                                                                                                                       <label class="col-sm-5 col-form-label col-form-label-lg">
+                                                                                                                                               or enter your own
+                                                                                                                                       </label>
+
+                                                                                                                                       <div class="col-sm-5">
+                                                                                                                                               <input type="number" class="form-control form-control-lg" id="enterYourOwn">
+                                                                                                                                       </div>
+                                                                                                                               </div>
+
+                                                                                                                               <div class="row mb-5">
+                                                                                                                                       <div class="col">
+                                                                                                                                               <h6>Choose payment</h6>
+
+                                                                                                                                               <div class="form-check form-check-inline">
+                                                                                                                                                       <input class="form-check-input" type="radio"
+                                                                                                                                                               name="payment" id="credit-card" value="credit-card" checked>
+                                                                                                                                                       <label for="credit-card" class="form-check-label">
+                                                                                                                                                               <picture>
+                                                                                                                                                                       <source srcset="{{ static_url("img/amex.png") }},
+                                                                                                                                                                               {{ static_url("img/amex@2x.png") }} 2x,
+                                                                                                                                                                               {{ static_url("img/amex@3x.png") }} 3x ">
+                                                                                                                                                                       <img src="{{ static_url("img/amex.png") }}"
+                                                                                                                                                                               srcset="{{ static_url("img/amex.png") }},
+                                                                                                                                                                               {{ static_url("img/amex@2x.png") }} 2x,
+                                                                                                                                                                               {{ static_url("img/amex@3x.png") }} 3x "
+                                                                                                                                                                               alt="Amex" class="m-xl-2">
+                                                                                                                                                               </picture>
+
+                                                                                                                                                               <picture>
+                                                                                                                                                                       <source srcset="{{ static_url("img/mastercard.png") }},
+                                                                                                                                                                               {{ static_url("img/mastercard@2x.png") }} 2x,
+                                                                                                                                                                               {{ static_url("img/mastercard@3x.png") }} 3x ">
+                                                                                                                                                                       <img src="{{ static_url("img/mastercard.png") }}"
+                                                                                                                                                                               srcset="{{ static_url("img/mastercard.png") }},
+                                                                                                                                                                               {{ static_url("img/mastercard@2x.png") }} 2x,
+                                                                                                                                                                               {{ static_url("img/mastercard@3x.png") }} 3x "
+                                                                                                                                                                               alt="Mastercard" class="m-xl-2">
+                                                                                                                                                               </picture>
+
+                                                                                                                                                               <picture>
+                                                                                                                                                                       <source srcset="{{ static_url("img/visa.png") }},
+                                                                                                                                                                               {{ static_url("img/visa@2x.png") }} 2x,
+                                                                                                                                                                               {{ static_url("img/visa@3x.png") }} 3x ">
+                                                                                                                                                                       <img src="{{ static_url("img/visa.png") }}"
+                                                                                                                                                                               srcset="{{ static_url("img/visa.png") }},
+                                                                                                                                                                               {{ static_url("img/visa@2x.png") }} 2x,
+                                                                                                                                                                               {{ static_url("img/visa@3x.png") }} 3x "
+                                                                                                                                                                               alt="Visa" class="m-xl-2">
+                                                                                                                                                               </picture>
+                                                                                                                                                       </label>
+                                                                                                                                               </div>
+
+                                                                                                                                               <div class="form-check form-check-inline">
+                                                                                                                                                       <input class="form-check-input" type="radio" name="payment"
+                                                                                                                                                               id="direct-debit" value="direct-debit">
+
+                                                                                                                                                       <label for="direct-debit" class="form-check-label">
+                                                                                                                                                               SEPA
+                                                                                                                                                       </label>
+                                                                                                                                               </div>
+
+                                                                                                                                               <div class="form-check form-check-inline paypal">
+                                                                                                                                                       <input class="form-check-input" type="radio" name="payment"
+                                                                                                                                                               id="paypal" value="paypal">
+
+                                                                                                                                                       <label for="paypal" class="form-check-label">
+                                                                                                                                                               <picture>
+                                                                                                                                                                       <source srcset="{{ static_url("img/paypal.png") }},
+                                                                                                                                                                               {{ static_url("img/paypal@2x.png") }} 2x,
+                                                                                                                                                                               {{ static_url("img/paypal@3x.png") }} 3x ">
+                                                                                                                                                                       <img src="{{ static_url("img/paypal.png") }}"
+                                                                                                                                                                               srcset="{{ static_url("img/paypal.png") }},
+                                                                                                                                                                               {{ static_url("img/paypal@2x.png") }} 2x,
+                                                                                                                                                                               {{ static_url("img/paypal@3x.png") }} 3x "
+                                                                                                                                                                               alt="PayPal" class="m-xl-2">
+                                                                                                                                                               </picture>
+                                                                                                                                                       </label>
+                                                                                                                                               </div>
+                                                                                                                                       </div>
+                                                                                                                               </div>
+
+                                                                                                                               <div class="row collapse" id="address">
+                                                                                                                                       <div class="col d-flex flex-column">
+                                                                                                                                               <div class="form-row">
+                                                                                                                                                       <div class="col">
+                                                                                                                                                               <div class="form-check form-check-inline mb-3">
+                                                                                                                                                                       <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1">
+                                                                                                                                                                       <label class="form-check-label" for="inlineRadio1">{{ _("Mr.") }}</label>
+                                                                                                                                                               </div>
+                                                                                                                                                               <div class="form-check form-check-inline mb-3">
+                                                                                                                                                                       <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2">
+                                                                                                                                                                       <label class="form-check-label" for="inlineRadio2">{{ _("Mrs.") }}</label>
+                                                                                                                                                               </div>
+                                                                                                                                                       </div>
+                                                                                                                                               </div>
+
+                                                                                                                                               <div class="form-row">
+                                                                                                                                                       <div class="col-sm-6">
+                                                                                                                                                               <div class="form-group">
+                                                                                                                                                                       <input type="text" class="form-control" id="exampleFormControlInput1"
+                                                                                                                                                                       placeholder="{{ _("First Name" )}}" required>
+                                                                                                                                                               </div>
+                                                                                                                                                       </div>
+
+                                                                                                                                                       <div class="col-sm-6">
+                                                                                                                                                               <div class="form-group">
+                                                                                                                                                                       <input type="text" class="form-control" id="exampleFormControlInput1"
+                                                                                                                                                                               placeholder="{{ _("Last Name" )}}" required>
+                                                                                                                                                               </div>
+                                                                                                                                                       </div>
+                                                                                                                                               </div>
+
+                                                                                                                                               <div class="form-group">
+                                                                                                                                                       <input type="email" class="form-control" id="exampleFormControlInput1"
+                                                                                                                                                               placeholder="{{ _("Email Address") }}" required>
+                                                                                                                                               </div>
+
+                                                                                                                                               <div class="form-group">
+                                                                                                                                                       <input type="text" class="form-control" id="exampleFormControlInput1"
+                                                                                                                                                               placeholder="{{ _("Company Name (optional)") }}">
+                                                                                                                                               </div>
+
+                                                                                                                                               <div class="form-group">
+                                                                                                                                                       <input type="text" class="form-control" id="exampleFormControlInput1"
+                                                                                                                                                               placeholder="{{ _("Address Line 1") }}" required>
+                                                                                                                                               </div>
+
+                                                                                                                                               <div class="form-group">
+                                                                                                                                                       <input type="text" class="form-control" id="exampleFormControlInput1"
+                                                                                                                                                               placeholder="{{ _("Address Line 2") }}">
+                                                                                                                                               </div>
+
+                                                                                                                                               <div class="form-row">
+                                                                                                                                                       <div class="col-sm-6">
+                                                                                                                                                               <input type="text" class="form-control" id="exampleFormControlInput1"
+                                                                                                                                                                       placeholder="{{ _("City") }}" required>
+                                                                                                                                                       </div>
+
+                                                                                                                                                       <div class="col-sm-6">
+                                                                                                                                                               <div class="form-group">
+                                                                                                                                                                       <input type="text" class="form-control" id="exampleFormControlInput1"
+                                                                                                                                                                               placeholder="{{ _("Post Code") }}" required>
+                                                                                                                                                               </div>
+                                                                                                                                                       </div>
+                                                                                                                                               </div>
+
+                                                                                                                                               <div class="form-row">
+                                                                                                                                                       <div class="col-sm-6">
+                                                                                                                                                               <select class="form-control" id="exampleFormControlSelect1" required>
+                                                                                                                                                                       <option value="">- {{ _("Country") }} -</option>
+                                                                                                                                                                       <option>2</option>
+                                                                                                                                                                       <option>3</option>
+                                                                                                                                                                       <option>4</option>
+                                                                                                                                                                       <option>5</option>
+                                                                                                                                                               </select>
+                                                                                                                                                       </div>
+
+                                                                                                                                                       <div class="col-sm-6">
+                                                                                                                                                               <div class="form-group">
+                                                                                                                                                                       <input type="text" class="form-control" id="exampleFormControlInput1"
+                                                                                                                                                                               placeholder="{{ _("State (optional)") }}">
+                                                                                                                                                               </div>
+                                                                                                                                                       </div>
+                                                                                                                                               </div>
+
+                                                                                                                                               <input type="submit" class="btn btn-primary btn-lg mx-auto"
+                                                                                                                                                       id="donate" value="{{ _("Donate Now") }}">
+                                                                                                                                       </div>
+                                                                                                                               </div>
+
+                                                                                                                               <div class="row">
+                                                                                                                                       <div class="col text-center">
+                                                                                                                                               <button class="btn btn-primary btn-lg" id="next"
+                                                                                                                                                       data-toggle="collapse" href="#address">{{ _("Next") }} &raquo;</button>
+                                                                                                                                       </div>
+                                                                                                                               </div>
+
+                                                                                                                               <div class="modal fade" tabindex="-1" role="dialog" id="modal-upsell" aria-hidden="true">
+                                                                                                                                       <div class="modal-dialog modal-dialog-centered" role="document">
+                                                                                                                                               <div class="modal-content">
+                                                                                                                                                       <div class="modal-header">
+                                                                                                                                                               <h5 class="modal-title">Modal title</h5>
+                                                                                                                                                               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
+                                                                                                                                                                       <span aria-hidden="true">&times;</span>
+                                                                                                                                                               </button>
+                                                                                                                                                       </div>
+
+                                                                                                                                                       <div class="modal-body">
+                                                                                                                                                               <p>Modal body text goes here.</p>
+                                                                                                                                                       </div>
+
+                                                                                                                                                       <div class="modal-footer">
+                                                                                                                                                               <button type="button" class="btn btn-primary">Save changes</button>
+                                                                                                                                                               <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
+                                                                                                                                                       </div>
+                                                                                                                                               </div>
+                                                                                                                                       </div>
+                                                                                                                               </div>
+                                                                                                                       </div>
+
+                                                                                                                       <p class="small text-muted">
+                                                                                                                               There should also be some area for the small-print since we need to tell people who they are donating to and that we don't do any refunds, etc.
+                                                                                                                       </p>
                                                                                                                </div>
                                                                                                        </div>
                                                                                                </div>
                                                                                        </div>
-                                                                                       
-                                                                                       <input type="submit" class="btn btn-primary btn-lg m-0" style="position: relative; top: -24px; left: 50%; transform: translateX(-50%);" value="Donate Now">
-                                                                               
-                                                                                       <p class="small text-left mt-5 mb-6">
-                                                                                               There should also be some area for the small-print since we need to tell people who they are donating to and that we don't do any refunds, etc.
-                                                                                       </p>
                                                                                </div>
-                                                                               
-                                                                               <div class="info col-md-4 bg-blue-grey-900 text-white p-5 pt-6">
-                                                                                       <div class="mb-6">
-                                                                                               <h3>IP<strong>Fire</strong> is an Open Source software project.</h3>
-
-                                                                                               <p class="copy">
-                                                                                                       IPFire is an Open Source software project.
-                                                                                               </p>
-                                                                       
-                                                                                               <p class="copy">
-                                                                                                       Development and keeping the project healthy is carried out by a
-                                                                                                       group of volunteers who have built a very successful product,
-                                                                                                       which hundreds of thousands of people use every day.
-                                                                                               </p>
-                                                                       
-                                                                                               <p class="copy">
-                                                                                                       Your donation helps us to make IPFire even better...
-                                                                                               </p>
-                                                                                       </div>
-                                                                                               
-                                                                                       <div class="mb-6 d-flex justify-content-between">                                                                               
-                                                                                               <h3><a href="#whydonate">Why should I donate?</a></h3><a href="#whydonate"><svg class="icon i_arrow_down_2 ml-4"><use xlink:href="#arrow-down-2"/></svg></a>
-                                                                                       </div>
-                                                                               
-                                                                                       <div class="mb-6 d-flex justify-content-between">
-                                                                                               <h3><a href="#howmuch">How much should I give?</a></h3><a href="#howmuch"><svg class="icon i_arrow_down_2 ml-4"><use xlink:href="#arrow-down-2"/></svg></a>
-                                                                                       </div>
-                                                                               </div>
-                                                                       </div>
+                                                                       </form>
                                                                </div>
                                                        </div>
                                                </div>
-                                       </form>
+                                       </div>
                                </section>
                        </div>
                </div>
        </section>
-       
+
        <section>
-               <div class="container"> 
+               <div class="container">
                                <div class="row text-left">
                                        <div class="col-10 col-md-5 offset-sm-1 offset-xl-0">
-                                               <div class="mb-6" id="whydonate">                                                                               
+                                               <div class="mb-6" id="whydonate">
                                                        <h3>Why should I donate?</h3>
-                               
+
                                                        <p class="copy">We are proud of what we are doing here at IPFire. We create a free firewall
                                                                distribution that is free to use for everyone anywhere in the world. To do that,
                                                                we need to provide the infrastructure to distribute it to our users and provide
                                                                the right tools for our developers to help them to make IPFire better every day.
                                                        </p>
-                                                       
+
                                                        <p class="copy">Donations from individuals and corporations are the only way to keep all of our
                                                                services free for everyone. They pay for hosting, advertising, purchase
                                                                equipment and to fund the work of the people behind it.
                                                        </p>
-                                                       
+
                                                        <p class="copy">Our ambition is to compete with projects backed by large corporations and
                                                                proprietary solutions and we cannot do that without you. Become a supporter
                                                                today!
                                                        </p>
                                                </div>
-                                       
+
                                                <div class="mb-6" id="howmuch">
                                                        <h3>How much should I give?</h3>
-                                                       
+
                                                        <p class="copy">Donations range from single digits donations to hundreds. For us it is important
                                                                to give something back to help this project to succeed. If you want to help,
                                                                please do so and encourage others to do so, too.
                                                        </p>
                                                </div>
                                        </div>
-                                       
+
                                        <div class="col-10 col-md-4 offset-sm-1 offset-xl-2">
                                                <h3>Frequently Asked Questions</h3>
                                                <p class="copy">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.</p>
                <path d="M11,3v14.2l-3.6-3.6L6,15l6,6l6-6l-1.4-1.4L13,17.2V3H11z"/>
        </symbol>
 </svg>
+{% end block %}
+
+{% block javascript %}
+       <script type="text/javascript">
+               $(document).ready(function() {
+                       $(".USD").hide();
+
+                       $("input[name='currency']").on("change", function() {
+                               var currency = $(this).val();
+
+                               if (currency == "EUR") {
+                                       $(".EUR").show();
+                                       $(".USD").hide();
+                               } else if (currency == "USD") {
+                                       $(".EUR").hide();
+                                       $(".USD").show();
+                               }
+                       });
+
+                       $("input[name='frequency']").on("change", function() {
+                               var frequency = $(this).val();
+
+                               if (frequency == "monthly") {
+                                       $(".paypal").hide();
+                               } else {
+                                       $(".paypal").show();
+                               }
+                       })
+
+                       $("#next").click(function (event) {
+                               $(this).hide();
+                       });
+
+                       $("#donate").click(function (event) {
+                               var frequency = $("input[name='frequency']");
+
+                               if (frequency == "once") {
+                                       event.preventDefault();
 
-<script type="text/javascript">
-$(document).ready(function(){
-       $("input[name='currency']").on("change", function(){
-               if ($(this).val() == "EUR") {
-                       $('.currency').html('€');
-               }
-               else if ($(this).val() == "USD") {
-                       $('.currency').html('$');
-               }
-       });
-       $("input[name='frequency']").on("change", function(){
-               if ($(this).val() == "single") {
-                       $("input#10").attr("value", "10");
-                       document.getElementById("amount_10").innerHTML="10";
-                       $("input#25").attr("value", "25");
-                       document.getElementById("amount_25").innerHTML="25";
-                       $("input#50").attr("value", "50");
-                       document.getElementById("amount_50").innerHTML="50";
-                       $("input#75").attr("value", "75");
-                       document.getElementById("amount_75").innerHTML="75";
-                       $("input#100").attr("value", "100");
-                       document.getElementById("amount_100").innerHTML="100";
-                       $("input#250").attr("value", "250");
-                       document.getElementById("amount_250").innerHTML="250";
-                       document.getElementById("paymentpaypal").style.visibility = 'visible';
-               }
-               else if ($(this).val() == "monthly") {
-                       $("input#10").attr("value", "2");
-                       document.getElementById("amount_10").innerHTML="2";
-                       $("input#25").attr("value", "3");
-                       document.getElementById("amount_25").innerHTML="3";
-                       $("input#50").attr("value", "5");
-                       document.getElementById("amount_50").innerHTML="5";
-                       $("input#75").attr("value", "7");
-                       document.getElementById("amount_75").innerHTML="7";
-                       $("input#100").attr("value", "10");
-                       document.getElementById("amount_100").innerHTML="10";
-                       $("input#250").attr("value", "12");
-                       document.getElementById("amount_250").innerHTML="12";
-                       document.getElementById("paymentpaypal").style.visibility = 'hidden';
-               }
-       })
-});
-</script>
-       
+                                       $("#modal-upsell").modal("show");
+                               }
+                       });
+               });
+       </script>
 {% end block %}