- provide(:page_name, 'landing_page full landing_product affiliate_program')
- provide(:description, 'Signup for JamKazam Affiliate Program')

.row
  h1 JamKazam Affiliate Program
  p Do you have an audience of musician followers on social media like Facebook, YouTube, Instagram, or Twitter - or on your website, email list, etc? 
  br
  p Most of the musicians in the world don't know JamKazam exists. Now you can let your audience know about JamKazam - which is something they'll be very excited to hear about - and also generate recurring income from any of your referrals that purchase JamKazam premium subscriptions and/or JamTracks.
  br
  p JamKazam provides a 30-day free trial that makes it fun and risk-free for anyone to check out the platform. After that, users can continue with a free plan or purchase an upgrade to a premium subscription, with plans available at $4.99, $9.99, or $19.99 per month. JamKazam will pay you 30% of these revenues for a period of 3 years from the signup date of each of your referred users.
  br
  p You don't sell anything. Just share the word about a service you really like and that most others haven't heard of yet. To get started, review the affiliate agreement details below and sign up as an affiliate at the bottom of this page. Then you can go to the Account/Affiliate page in our app or website to get special links tagged with your affiliate ID that you can share with your audience. You can also track signups and earnings from that page.
  br clear="all"
.row
  h1 JamKazam Affiliate Agreement
  = render "legal/partner_agreement_v1"

  p.agreement-notice By clicking the "I Agree" button below, I certify that I have the authority to enter into this Agreement on behalf of myself as an individual or on behalf of the entity I have listed below, and I further certify that I have read, understood, and agree to be bound by the terms above.
  .entity-options
    .field.radio
      = radio_button_tag(:entity, 'individual')
      label I am entering into this Agreement as an individual
    .field.radio
      = radio_button_tag(:entity, 'entity')
      label I am executing this Agreement on behalf of the company or entity listed below

  .entity-info.hidden
    .field.entity.name
      label Entity Name
      input type="text" name="entity-name"
    .field.entity.type
      label Entity Type
      select name="entity-type"
        option value="" Choose Entity Type
        option value="Sole Proprietor" Sole Proprietor
        option value="Limited Liability Company (LLC)" Limited Liability Company (LLC)
        option value="Partnership" Partnership
        option value="Trust/Estate" Trust/Estate
        option value="S Corporation" S Corporation
        option value="C Corporation" C Corporation
        option value="Other" Other

  .agree-disagree-buttons

    = link_to "I Agree", '#', class: "agree-button button-orange"
    = link_to "I Disagree", '#', class: "disagree-button button-grey"
  p.disagree-text.hidden
    | Thank you for your interest in the JamKazam affiliate program. We are sorry, but you cannot join the program without consenting to the terms of this Agreement.

javascript:
  $(document).on('JAMKAZAM_READY', function(e, data) {
    var affiliateProgram = new JK.AffiliateProgram(data.app);
    affiliateProgram.initialize();
  })