add 2 simple static landing pages
This commit is contained in:
parent
abf3c6f0f5
commit
d58330d8da
|
|
@ -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>`
|
||||
|
||||
})
|
||||
|
|
@ -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>`
|
||||
|
||||
})
|
||||
|
|
@ -12,4 +12,6 @@
|
|||
*= require dialogs/dialog
|
||||
*= require icheck/minimal/minimal
|
||||
*= require landings/posa_activation
|
||||
*= require landings/simple_jamtracks
|
||||
*= require landings/simple_jamclass
|
||||
*/
|
||||
|
|
@ -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%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -451,5 +451,21 @@ class LandingsController < ApplicationController
|
|||
@page_data = {retailer: @retailer, has_teachers: @retailer.teachers.count > 0}
|
||||
render 'posa_activation', layout: 'web'
|
||||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -17,8 +17,11 @@
|
|||
<%= render "layouts/social_meta" %>
|
||||
<% end %>
|
||||
<%= render "shared/ad_sense" %>
|
||||
<% if @responsive %>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<% end %>
|
||||
</head>
|
||||
<body class="web jam <%= yield(:page_name) %>">
|
||||
<body class="web jam <%= yield(:page_name) %> <% @responsive ? 'responsive' : 'not-responsive' %>">
|
||||
<%= javascript_include_tag "web/web" %>
|
||||
<div class="dialog-overlay op70" style="display:none; width:100%; height:100%; z-index:99;"></div>
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@ Rails.application.routes.draw do
|
|||
match '/redeem_giftcard', to: 'landings#redeem_giftcard', via: :get
|
||||
|
||||
# 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/wo', to: 'landings#watch_overview', as: 'landing_wo'
|
||||
get '/landing/wbt', to: 'landings#watch_bands_tight', as: 'landing_wbt'
|
||||
|
|
|
|||
Loading…
Reference in New Issue