* VRFS-2991 - seo mvp mostly done with new meta tags

This commit is contained in:
Seth Call 2015-04-15 15:16:05 -05:00
parent 42b58a97e8
commit cda3adc931
45 changed files with 74 additions and 37 deletions

View File

@ -67,12 +67,14 @@ class LandingsController < ApplicationController
end
def individual_jamtrack
@jam_track = JamTrack.find_by_plan_code("jamtrack-" + params[:plan_code])
gon.jam_track_plan_code = params[:plan_code] ? "jamtrack-" + params[:plan_code] : nil
gon.generic = params[:generic]
render 'individual_jamtrack', layout: 'web'
end
def individual_jamtrack_band
@jam_track = JamTrack.find_by_plan_code("jamtrack-" + params[:plan_code])
gon.jam_track_plan_code = params[:plan_code] ? "jamtrack-" + params[:plan_code] : nil
render 'individual_jamtrack_band', layout: 'web'

View File

@ -212,35 +212,6 @@ class UsersController < ApplicationController
render :layout => "web"
end
# DO NOT USE CURRENT_USER IN THIS ROUTINE. IT'S CACHED FOR THE WHOLE SITE
def welcome
@slides = [
Slide.new("JamKazam Overview", "web/carousel_overview.png", "http://www.youtube.com/embed/ylYcvTY9CVo?autoplay=1"),
Slide.new("The Revolutionary New JamBlaster!", "web/carousel_jamblaster.png", "http://www.youtube.com/embed/gAJAIHMyois?autoplay=1"),
Slide.new("Kudos From Our Community", "web/carousel_community.png", "http://www.youtube.com/embed/_7qj5RXyHCo?autoplay=1"),
Slide.new("JamKazam Overview", "web/carousel_overview.png", "http://www.youtube.com/embed/ylYcvTY9CVo?autoplay=1"),
Slide.new("The Revolutionary New JamBlaster!", "web/carousel_fans.jpg", "http://www.youtube.com/embed/gAJAIHMyois?autoplay=1"),
Slide.new("Kudos From Our Community", "web/carousel_community.png", "http://www.youtube.com/embed/_7qj5RXyHCo?autoplay=1")
]
@promo_buzz = PromoBuzz.active
if Rails.application.config.use_promos_on_homepage
@promo_latest = PromoLatest.active
else
@promo_latest, start = Feed.index(nil, limit: 10)
end
# temporary--will go away soon
#@jamfest_2014 = Event.find_by_id('80bb6acf-3ddc-4305-9442-75e6ec047c27') # production ID
#@jamfest_2014 = Event.find_by_id('a2dfbd26-9b17-4446-8c61-b67a542ea6ee') unless @jamfest_2014 # development ID
# temporary--end
#@welcome_page = true
render :layout => "web"
end
# DO NOT USE CURRENT_USER IN THIS ROUTINE. IT'S CACHED FOR THE WHOLE SITE
def home

View File

@ -10,6 +10,14 @@ module ApplicationHelper
end
end
def meta_description(description)
if description
description
else
'JamKazam'
end
end
def self.base_uri(request)
(request.ssl? ? "https://" : "http://") + request.host_with_port
end

View File

@ -49,8 +49,8 @@ module RecordingHelper
end
end
def description_for_claimed_recording(claimed_recording)
truncate(claimed_recording.name, length:250)
def description_for_claimed_recording(claimed_recording, length = 250)
truncate(claimed_recording.name, length:length)
end
def listen_mix_url(recording)

View File

@ -32,7 +32,7 @@
.homebox-info
/! 1 session invitation, 19 public sessions active
-if jamtracks
.homecard.jamtrack layout-grid-columns=small_tile_size layout-grid-position=column_positions[2] layout-grid-rows="1" layout-link="jamtrack"
.homecard.jamtrack layout-grid-columns=small_tile_size layout-grid-position=column_positions[2] layout-grid-rows="1" layout-link="jamtrackLanding"
h2 jamtracks
.homebox-info
/! 5 followers, 3 following

View File

@ -1,5 +1,5 @@
- provide(:title, @event.title)
- provide(:description, @event.social_description || "Play music together over the Internet as if in the same room.")
-content_for :social_meta do
%meta{property: 'fb_app_id', content: Rails.application.config.facebook_app_id}

View File

@ -1,3 +1,5 @@
- provide(:description, "Extra settings.")
%h1 Extra Feature Settings
%form

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'landing_page full landing_jamtrack individual_jamtrack')
- provide(:description, @jam_track.nil? ? nil : "Preview our JamTrack: #{@jam_track.name}")
.two_by_two
.row

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'landing_page full landing_jamtrack individual_jamtrack_band')
- provide(:description, @jam_track.nil? ? nil : "Preview our JamTrack: #{@jam_track.name}")
.two_by_two
.row

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'landing_page full landing_product product_jamblaster')
- provide(:description, 'Learn more about the JamBlaster, a device designed from the ground up to meet the unique requirements of real-time, online, distributed music performance')
.two_by_two
.row

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'landing_page full landing_product product_jamtracks')
- provide(:description, 'Learn more about JamTracks, which are complete multitrack recordings, with fully isolated tracks for each part')
.two_by_two
.row

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'landing_page full landing_product product_platform')
- provide(:description, 'Learn more about the JamKazam platform, an innovative live music platform and social network')
.two_by_two
.row

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'landing_page full wb_1')
- provide(:description, 'Watch 6 Bands Play Together from Different Locations')
.column
h1 Watch 6 Bands Play Together from Different Locations

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'landing_page full wb_2')
- provide(:description, 'See How JamKazam Works')
.column
h1 See How JamKazam Works

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'landing_page full wb_3')
- provide(:description, 'See How to Get Started')
.column
h1 See How to Get Started

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'landing_page tight wbt_1')
- provide(:description, 'Watch 6 Bands Play Together from Different Locations')
h1 Watch 6 Bands Play Together from Different Locations
.video-wrapper

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'landing_page full wo_1')
- provide(:provide, 'Watch Video to See How JamKazam Works')
.column
h1 Watch Video to See How JamKazam Works

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'landing_page full wo_2')
- provide(:description, 'Watch 6 Bands Play Together from Different Locations')
.column
h1 Watch 6 Bands Play Together from Different Locations

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'landing_page full wo_3')
- provide(:description, 'See How to Get Started Using JamKazam')
.column
h1 See How to Get Started Using JamKazam

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'landing_page tight wot_1')
- provide(:description, 'Watch Overview Video to See How JamKazam Works')
h1 Watch Overview Video to See How JamKazam Works
.video-wrapper

View File

@ -36,6 +36,7 @@
<!-- THIS NEEDS TO BE IN FRONT OF ANY OTHER JAVASCRIPT INCLUDES ACCORDING TO BUGSNAG -->
<script src="//d2wy8f7a9ursnm.cloudfront.net/bugsnag-1.0.9.min.js" data-apikey="<%= Rails.application.config.bugsnag_key %>"></script>
<% end %>
<meta name="description" content="<%= meta_description(yield(:description)) %>">
<%= include_gon %>
<%= csrf_meta_tags %>
</head>

View File

@ -2,6 +2,7 @@
<html>
<head>
<title><%= full_title(yield(:title)) %></title>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie.css" media="screen, projection"/>
<![endif]-->
@ -25,6 +26,7 @@
<%= include_gon %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
<meta name="description" content="Enter here to browse the JamKazam platform">
<% if content_for?(:social_meta) %>
<%= yield(:social_meta) %>
<% else %>

View File

@ -23,6 +23,7 @@
<%= include_gon(:init => true) %>
<%= javascript_include_tag "corp/corporate" %>
<%= csrf_meta_tags %>
<meta name="description" content="<%= meta_description("JamKazam Corporate - #{yield(:title)}") %>">
<% if content_for?(:social_meta) %>
<%= yield(:social_meta) %>
<% else %>

View File

@ -25,6 +25,7 @@
<% end %>
<%= include_gon(:init => true) %>
<%= csrf_meta_tags %>
<meta name="description" content="<%= meta_description(yield(:description)) %>">
<% if content_for?(:social_meta) %>
<%= yield(:social_meta) %>
<% else %>

View File

@ -25,6 +25,7 @@
<% end %>
<%= include_gon(:init => true) %>
<%= csrf_meta_tags %>
<meta name="description" content="<%= meta_description(yield(:description)) %>">
<% if content_for?(:social_meta) %>
<%= yield(:social_meta) %>
<% else %>

View File

@ -25,6 +25,7 @@
<% end %>
<%= include_gon(:init => true) %>
<%= csrf_meta_tags %>
<meta name="description" content="<%= meta_description(yield(:description)) %>">
<% if content_for?(:social_meta) %>
<%= yield(:social_meta) %>
<% else %>

View File

@ -1,4 +1,19 @@
- provide(:page_name, 'session_info')
- provide(:description, description_for_music_session(@music_session))
- content_for :social_meta do
%meta {property: "fb:app_id", content: Rails.application.config.facebook_app_id}
%meta {property: "og:title", content: title_for_music_session(@music_session)}
%meta {property: "og:url", content: request.original_url}
%meta {property: "og:description", content: description_for_music_session(@music_session)}
%meta {property: "og:image", content: facebook_image_for_music_session(@music_session)}
%meta {property: "og:image:width", content: facebook_image_size_for_music_session(@music_session)}
%meta {property: "og:image:height", content: facebook_image_size_for_music_session(@music_session)}
%meta {property: "og:type", content: 'website'}
%meta {property: "twitter:card", content: 'summary'}
%meta {property: "twitter:site", content: '@jamkazam'}
%meta {property: "twitter:title", content: title_for_music_session(@music_session)}
%meta {property: "twitter:description", content: description_for_music_session(@music_session)}
- unless @music_session.nil?
- provide(:title, @music_session.name)

View File

@ -1,4 +1,5 @@
<% provide(:title, "#{@music_session.description}") %>
<% provide(:description, description_for_music_session(@music_session)) %>
<% content_for :social_meta do %>
<meta property="fb:app_id" content="<%= Rails.application.config.facebook_app_id %>" />

View File

@ -1,4 +1,5 @@
<% provide(:title, "#{@claimed_recording.name}") %>
<% provide(:description, description_for_claimed_recording(@claimed_recording)) %>
<% content_for :social_meta do %>

View File

@ -1,3 +1,5 @@
<% provide(:description, 'Finished authorization') %>
<script>
window.opener._oauth_callback();
</script>

View File

@ -1,5 +1,6 @@
- provide(:title, 'Sign in')
- provide(:page_name, 'signin')
- provide(:description, 'Sign into your JamKazam account to meet & play with other musicians')
.signin-overlay.signin-page
.content-head

View File

@ -1,3 +1,5 @@
<% provide(:description, 'Unable to authorize twitter') %>
Unable to authorize application. Reasons:
<ul>

View File

@ -1,4 +1,5 @@
<% provide(:title, 'Already Signed Up') %>
<% provide(:description, 'You have already signed up with JamKazam') %>
<div class="landing-overlay">
<!-- ftue header -->

View File

@ -1,5 +1,5 @@
<% provide(:title, 'Congratulations') %>
<% provide(:description, 'Congratulations on becoming a new JamKazam member!') %>
<%= render "users/downloads" %>
<script type="text/javascript">

View File

@ -1,5 +1,5 @@
<% provide(:title, 'Congratulations') %>
<% provide(:description, 'Congratulations on becoming a new JamKazam member!') %>
<%= render "users/downloads" %>
<script type="text/javascript">

View File

@ -1,4 +1,5 @@
<% provide(:title, 'Downloads') %>
<% provide(:description, 'Download JamKazam on Windows or Mac') %>
<%= render "users/downloads" %>

View File

@ -1,4 +1,6 @@
<% provide(:title, 'Email Change Confirmation') %>
<% provide(:description, 'Your email has been changed successfully') %>
<div id="email-update-information" class="message-wrapper hidden">
<div class="left"><%= image_tag 'content/icon_information_big.png', :size=>'96x96' %></div>
<div class="message">

View File

@ -1,4 +1,5 @@
- provide(:page_name, 'home')
- provide(:description, 'Play with other musicians in real-time, and play along with multi-track backing tracks of popular songs')
.home-column
= link_to image_tag("web/thumbnail_jamtracks.jpg", :alt => "JamTracks explanatory video"), '#', class: "jamtracks-video video-item", 'data-video-header' => 'JamTracks', 'data-video-url' => 'http://www.youtube.com/embed/ylYcvTY9CVo?autoplay=1'

View File

@ -1,4 +1,5 @@
<%= content_for(:title) { 'Internet Latency Test' }%>
<% provide(:description, 'Test your internet latency using a custom Java-based tool') %>
<script src="http://www.java.com/js/deployJava.js"></script>
<h1 style="text-align:center">JamKazam Internet Latency Test: Select your Internet Service Provider</h1>
<h2 style="text-align:center">Java must be installed to run this tool. Please select logo corresponding to your ISP, or if you're not sure, choose "Other". OSX not currently supported.</h2>

View File

@ -1,5 +1,6 @@
<% provide(:page_name, 'register') %>
<% provide(:title, 'Register') %>
<% provide(:description, 'Sign up for a free JamKazam account') %>
<div class="content-wrapper register-page">
<h2 class="create-account-header"><div class="badge-number">1</div>Create your free JamKazam account</h2>

View File

@ -1,5 +1,6 @@
<% provide(:title, "Reset password") %>
<% provide(:page_name, "request-reset-password") %>
<% provide(:description, 'Reset your password') %>
<div class="landing-overlay">

View File

@ -1,4 +1,5 @@
<% provide(:title, "Reset password") %>
<% provide(:description, 'You have reset your password successfully') %>
<div class="landing-overlay">
<!-- ftue header -->

View File

@ -1,4 +1,5 @@
<% provide(:title, "Reset password") %>
<% provide(:title, "Reset password") %>
<% provide(:description, 'Enter your new password') %>
<div class="landing-overlay">

View File

@ -1,4 +1,5 @@
<% provide(:title, "Reset password") %>
<% provide(:title, "Reset password") %>
<% provide(:description, 'You have reset your password. Check your email') %>
<div class="landing-overlay">

View File

@ -1,4 +1,5 @@
<% provide(:title, 'Signup Confirmation') %>
<% provide(:description, 'Confirm your JamKazam account') %>
<% if @user.nil? %>
<h1>Signup Already Confirmed</h1>