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

.row
  .column
    h1.product-headline JamKazam Affiliate Program
    p Do you have a following of musicians on Facebook, YouTube, Twitter or an email list?  Generate income simply by letting them know about JamKazam.
    p Let's say you make YouTube tutorial videos.  You can link directly from a video on how to play "Back in Black" to our JamTrack for that song.  Video watchers can get this first JamTrack free, and can buy others if they like.  You get paid every time they buy something from us for 2 years.
    p Or let's say you have a Facebook group for guitarist with 5,000 members.  You can let them know they can play together free on JamKazam. For everyone who signs up, you get paid every time they buy something from us for 2 years.
    p You don't have to sell anything.  Just let your followers know about cool new stuff they'll like!  To get started, simply review the affiliate agreement below, accept it (at the end of the agreement), and then start sharing links with your affiliate code.  When referred users buy JamTracks, JamBlasters, JamLessons, and so on, you get paid!
  .column
    h1 Learn How to Make Money by Referring Users
    - if !Rails.env.test?
      .video-wrapper
        .video-container
          iframe src="//www.youtube.com/embed/96YTnO_H9a4" frameborder="0" allowfullscreen
  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 image_tag("content/agree_button.png", {:width => 213, :height => 50 }), '#', class: "agree-button"
    = link_to image_tag("content/disagree_button.png", {:width => 213, :height => 50 }), '#', class: "disagree-button"
  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();
  })