Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #5 from gymnasium/theme-setup
Browse files Browse the repository at this point in the history
Updating master before we go to dogwood...
  • Loading branch information
Mike Bifulco committed May 17, 2016
2 parents e0986f1 + a179ac9 commit bdf6f77
Show file tree
Hide file tree
Showing 26 changed files with 679 additions and 167 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/social-share-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
117 changes: 117 additions & 0 deletions static/js/gymnasium.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,123 @@ Gymnasium.prototype.setBackgroundColorOfElementFromImage = function (element, im
$(element).css('background-color','rgba(' + r + ',' + g + ',' + b + ',' + a + ')');
});
})
};

///get a URL parameter passed in with HTTP GET
///NOTE: this function is not case sensitive
Gymnasium.prototype.getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;

for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');

if (sParameterName[0].toLowerCase() === sParam.toLowerCase()) {
return sParameterName[1] === undefined ? true : sParameterName[1];
}
}
};

Gymnasium.prototype.injectFBTrackingPixel = function(){
var trackingPix = $('<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1074612282557779&ev=PageView&noscript=1" /></noscript>');
$('body').append(trackingPix);
fbq('init', '1074612282557779');
fbq('track', "PageView");
};

Gymnasium.prototype.RecordCourseEnrollment = function(firstName, lastName, emailAddress, courseId, callback)
{
var data = {
first_name: firstName,
last_name: lastName,
email: emailAddress,
course: courseId,
utm_campaign: courseId + " - Enrollment",
carrot_type: "Gymnasium Enrollment",
carrot_topic: "GYM-" + courseId,
PROC: "AWUISubmitExternalLead",

};
Gymnasium.RecordCloudwallRecord(data, callback);

};

Gymnasium.prototype.RecordExamGrade = function(email, courseId, grade, callback)
{
var data = {
leadDestination: "cw-rc",
email: email,
score: grade,
course_id: courseId,
utm_campaign: courseId + " - Grade"
};
};

Gymnasium.prototype.RecordRegistration = function(emailAddress, firstName, lastName, cityId, callback)
{
var data = {
first_name: firstName,
last_name: lastName,
email: emailAddress,
location: cityId,
utm_campaign: "Registration",
carrot_type: "Gymnasium Registration",
carrot_topic: "GYM REG",
PROC: "AWUISubmitExternalLead"
};

return Gymnasium.RecordCloudwallRecord(data, callback);
};

Gymnasium.prototype.RecordCloudwallRecord = function(jsonData, callback)
{
jsonData.utm_source = "gymnasium.com";
jsonData.utm_medium = "web";
jsonData.utm_content = "not-provided";
jsonData.utm_term = "not-provided";
jsonData.agent_email = "[email protected]";
jsonData.agent_id = "1694600";
jsonData.agent_name = "TALENT LEAD NURTURING";
jsonData.carrot = "thegymnasium.com";
jsonData.subdomain = "cw-rc";
jsonData.language = "en_US";
jsonData.medium = "1009";
jsonData.referring_site = "thegymnasium.com";
jsonData.status = "Talent";
jsonData.referer = "thegymnasium.com";


$.ajax("https://aquent.com/application/gymnasium-lead.htm",
{
contentType: "application/json",
dataType: "jsonp",
data: jsonData
})
.done(function(event)
{
//console.log("Success!\n", event);
})
.fail(function(event, textStatus, errorThrown)
{
//console.log("Failure:\n", textStatus, "\n", errorThrown);
})
.always(function(e){
//console.log("always:\n", e);
if (callback)
{
callback();
}
});
}

<!-- Facebook Pixel Code -->
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');
<!-- End Facebook Pixel Code -->

var Gymnasium = new Gymnasium();
3 changes: 2 additions & 1 deletion static/sass/_catalog.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.find-courses
{
background:transparent;
padding-bottom:0;

.catalog-content
{
Expand Down Expand Up @@ -63,7 +64,7 @@
{
border: 1px solid #ccc;
border-radius: 2px;
margin: 0 auto 2em;
margin: 0 auto 0em;
}

.course-overview
Expand Down
67 changes: 64 additions & 3 deletions static/sass/_courseware.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ body.courseware
.content-wrapper#content
{
background-color:$gym-white;
padding-bottom:100px;
padding-bottom:1em;
}


Expand Down Expand Up @@ -155,6 +155,49 @@ nav.progress.wrapper-course-material
{
background-color:$gym-medium-grey;

/* restyle the accordion sprite icon to use glyphicons from bootstrap.
this is a hack. Love, Mike.
*/
span.ui-accordion-header-icon.ui-icon.ui-icon-triangle-1-e,
span.ui-accordion-header-icon.ui-icon.ui-icon-triangle-1-s
{
position: relative;
top: 28px;
display: inline-block;
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: 400;
line-height: 1;
-webkit-font-smoothing: antialiased;
background:none;
background-position:0;
background-image:none;
opacity:1;
text-indent:0;
}

span.ui-accordion-header-icon.ui-icon.ui-icon-triangle-1-e:before,
span.ui-accordion-header-icon.ui-icon.ui-icon-triangle-1-s:before
{
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
color:$gym-orange;
font-size:0.5em;
margin-left:1em;
position:absolute;
top:0.5em;
}
span.ui-accordion-header-icon.ui-icon.ui-icon-triangle-1-e:before
{
content: "\e250";
}

span.ui-accordion-header-icon.ui-icon.ui-icon-triangle-1-s:before
{
content: "\e252";
}

p.subtitle
{
display:none;
Expand Down Expand Up @@ -184,15 +227,32 @@ nav.progress.wrapper-course-material
color:$gym-white;
background:none;
box-shadow:none;
padding:0;

h3
{
line-height:1.3;
}

a
{
font-weight:900;
letter-spacing: .04em;
word-spacing: .04em;

color:$gym-white;
background:none;
box-shadow:none;
text-shadow:none;
border:none;
margin-bottom:0.3em;

p
{
font-size:1.2em;
}
}

}

}
Expand All @@ -204,7 +264,7 @@ nav.progress.wrapper-course-material
{
border:none;
border-radius:2px;
margin-bottom:100px;
margin-bottom:0px;
border: 1px solid #ccc;
font-family: "Helvetica Neue", Helvetica, sans-serif;

Expand Down Expand Up @@ -374,12 +434,13 @@ nav.progress.wrapper-course-material
.hero-banner
{
background: #777;
border-bottom: 1px solid #ccc;
border-bottom: 0px;

h1
{
color:white;
font-family:brandon-grotesque;
text-align:center;
}

img
Expand Down
23 changes: 21 additions & 2 deletions static/sass/_gymnasium.scss
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,25 @@ $footer_margin: ($baseline/4) 0;
//-----------------
// CSS BG Images
//-----------------
$homepage-bg-image: url('../themes/gymnasium/images/home-page-hero-background.png');
$homepage-bg-image: url('../themes/gymnasium/images/marketing-campaign/homepage_graphic.png');
.home>header
{
background-position-y:-25px;
.container
{
height:100%;

.row
{
height:100%;

.marketing-image-container
{
height:100%;
}
}
}
}

$login-banner-image: none;
$register-banner-image: none;
Expand Down Expand Up @@ -611,6 +629,7 @@ body a:focus,
background-color:$gym-dark-grey;
border-color:transparent;
border:none;
margin-bottom:0;
}
}

Expand Down Expand Up @@ -682,7 +701,7 @@ header.global,

.content-wrapper#content
{
padding-bottom:0px;
padding-bottom:1em;
background-color:$gym-white;
}

Expand Down
14 changes: 14 additions & 0 deletions static/sass/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,17 @@
position:relative;
top:-11px;

>header
{
height:33em;
}

header
{
border-bottom:$gym-white;
margin-top:11px;


.outer-wrapper
{
padding: 150px 10px 0px 740px;
Expand Down Expand Up @@ -208,6 +214,8 @@
-webkit-box-sizing: border-box;
box-sizing: border-box;
vertical-align: top;
position:relative;
z-index:100;
}

h1
Expand Down Expand Up @@ -471,3 +479,9 @@
}

}

.sit-and-get-fit
{
position:absolute;
bottom:0px;
}
Loading

0 comments on commit bdf6f77

Please sign in to comment.