add 2 simple static landing pages

This commit is contained in:
Seth Call 2016-10-27 20:28:21 -05:00
parent abf3c6f0f5
commit d58330d8da
10 changed files with 124 additions and 1 deletions

View File

@ -0,0 +1,16 @@
context = window
rest = context.JK.Rest()
@SimpleJamClassPage = React.createClass({
render: () ->
`<div className="container">
<div className="video-wrapper">
<div className="video-container">
<iframe src="//www.youtube.com/embed/6lICn4g5X-Q" frameborder="0" allowfullscreen="allowfullscreen"/>
</div>
</div>
</div>`
})

View File

@ -0,0 +1,16 @@
context = window
rest = context.JK.Rest()
@SimpleJamTracksPage = React.createClass({
render: () ->
`<div className="container">
<div className="video-wrapper">
<div className="video-container">
<iframe src="//www.youtube.com/embed/-rHfJggbgqk" frameborder="0" allowfullscreen="allowfullscreen"/>
</div>
</div>
</div>`
})

View File

@ -12,4 +12,6 @@
*= require dialogs/dialog *= require dialogs/dialog
*= require icheck/minimal/minimal *= require icheck/minimal/minimal
*= require landings/posa_activation *= require landings/posa_activation
*= require landings/simple_jamtracks
*= require landings/simple_jamclass
*/ */

View File

@ -0,0 +1,29 @@
@import "client/common.scss";
body.landing_page.full.simple_jamclass {
.logo-home {
left: 50%;
margin-left: -149px;
width: 298px;
position: relative;
}
div.wrapper {
width:100%;
max-width:1100px;
}
.landing-content {
font-size: 1rem;
.video-wrapper {
padding-top: 30px;
}
.video-container {
margin-left: 12.75%;
width: 75%;
}
}
}

View File

@ -0,0 +1,29 @@
@import "client/common.scss";
body.landing_page.full.simple_jamtracks {
.logo-home {
left: 50%;
margin-left: -149px;
width: 298px;
position: relative;
}
div.wrapper {
width:100%;
max-width:1100px;
}
.landing-content {
font-size: 1rem;
.video-wrapper {
padding-top: 30px;
}
.video-container {
margin-left: 12.75%;
width: 75%;
}
}
}

View File

@ -451,5 +451,21 @@ class LandingsController < ApplicationController
@page_data = {retailer: @retailer, has_teachers: @retailer.teachers.count > 0} @page_data = {retailer: @retailer, has_teachers: @retailer.teachers.count > 0}
render 'posa_activation', layout: 'web' render 'posa_activation', layout: 'web'
end end
def simple_jamtracks
@no_landing_tag = true
@landing_tag_play_learn_earn = false
@responsive = true
render 'simple_jamtracks', layout: 'web'
end
def simple_jamclass
@no_landing_tag = true
@landing_tag_play_learn_earn = false
@responsive = true
render 'simple_jamclass', layout: 'web'
end
end end

View File

@ -0,0 +1,5 @@
- provide(:page_name, 'landing_page full simple_jamclass')
- provide(:description, @description)
- provide(:title, @title)
= react_component 'SimpleJamClassPage', @page_data.to_json

View File

@ -0,0 +1,5 @@
- provide(:page_name, 'landing_page full simple_jamtracks')
- provide(:description, @description)
- provide(:title, @title)
= react_component 'SimpleJamTracksPage', @page_data.to_json

View File

@ -17,8 +17,11 @@
<%= render "layouts/social_meta" %> <%= render "layouts/social_meta" %>
<% end %> <% end %>
<%= render "shared/ad_sense" %> <%= render "shared/ad_sense" %>
<% if @responsive %>
<meta name="viewport" content="width=device-width, initial-scale=1">
<% end %>
</head> </head>
<body class="web jam <%= yield(:page_name) %>"> <body class="web jam <%= yield(:page_name) %> <% @responsive ? 'responsive' : 'not-responsive' %>">
<%= javascript_include_tag "web/web" %> <%= javascript_include_tag "web/web" %>
<div class="dialog-overlay op70" style="display:none; width:100%; height:100%; z-index:99;"></div> <div class="dialog-overlay op70" style="display:none; width:100%; height:100%; z-index:99;"></div>

View File

@ -24,6 +24,8 @@ Rails.application.routes.draw do
match '/redeem_giftcard', to: 'landings#redeem_giftcard', via: :get match '/redeem_giftcard', to: 'landings#redeem_giftcard', via: :get
# landing pages # landing pages
get '/jamtracks', to: 'landings#simple_jamtracks', as: 'landing_simple_jamtracks'
get '/jamclass', to: 'landings#simple_jamclass', as: 'landing_simple_class'
get '/landing/wb', to: 'landings#watch_bands', as: 'landing_wb' get '/landing/wb', to: 'landings#watch_bands', as: 'landing_wb'
get '/landing/wo', to: 'landings#watch_overview', as: 'landing_wo' get '/landing/wo', to: 'landings#watch_overview', as: 'landing_wo'
get '/landing/wbt', to: 'landings#watch_bands_tight', as: 'landing_wbt' get '/landing/wbt', to: 'landings#watch_bands_tight', as: 'landing_wbt'