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

Commit bdf6f77

Browse files
author
Mike Bifulco
committed
Merge pull request #5 from gymnasium/theme-setup
Updating master before we go to dogwood...
2 parents e0986f1 + a179ac9 commit bdf6f77

26 files changed

+679
-167
lines changed
605 KB
Loading
236 KB
Loading
1.62 MB
Loading

static/images/social-share-400.png

16.4 KB
Loading

static/js/gymnasium.js

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,123 @@ Gymnasium.prototype.setBackgroundColorOfElementFromImage = function (element, im
2727
$(element).css('background-color','rgba(' + r + ',' + g + ',' + b + ',' + a + ')');
2828
});
2929
})
30+
};
31+
32+
///get a URL parameter passed in with HTTP GET
33+
///NOTE: this function is not case sensitive
34+
Gymnasium.prototype.getUrlParameter = function getUrlParameter(sParam) {
35+
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
36+
sURLVariables = sPageURL.split('&'),
37+
sParameterName,
38+
i;
39+
40+
for (i = 0; i < sURLVariables.length; i++) {
41+
sParameterName = sURLVariables[i].split('=');
42+
43+
if (sParameterName[0].toLowerCase() === sParam.toLowerCase()) {
44+
return sParameterName[1] === undefined ? true : sParameterName[1];
45+
}
46+
}
47+
};
48+
49+
Gymnasium.prototype.injectFBTrackingPixel = function(){
50+
var trackingPix = $('<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1074612282557779&ev=PageView&noscript=1" /></noscript>');
51+
$('body').append(trackingPix);
52+
fbq('init', '1074612282557779');
53+
fbq('track', "PageView");
54+
};
55+
56+
Gymnasium.prototype.RecordCourseEnrollment = function(firstName, lastName, emailAddress, courseId, callback)
57+
{
58+
var data = {
59+
first_name: firstName,
60+
last_name: lastName,
61+
email: emailAddress,
62+
course: courseId,
63+
utm_campaign: courseId + " - Enrollment",
64+
carrot_type: "Gymnasium Enrollment",
65+
carrot_topic: "GYM-" + courseId,
66+
PROC: "AWUISubmitExternalLead",
67+
68+
};
69+
Gymnasium.RecordCloudwallRecord(data, callback);
70+
71+
};
72+
73+
Gymnasium.prototype.RecordExamGrade = function(email, courseId, grade, callback)
74+
{
75+
var data = {
76+
leadDestination: "cw-rc",
77+
email: email,
78+
score: grade,
79+
course_id: courseId,
80+
utm_campaign: courseId + " - Grade"
81+
};
82+
};
83+
84+
Gymnasium.prototype.RecordRegistration = function(emailAddress, firstName, lastName, cityId, callback)
85+
{
86+
var data = {
87+
first_name: firstName,
88+
last_name: lastName,
89+
email: emailAddress,
90+
location: cityId,
91+
utm_campaign: "Registration",
92+
carrot_type: "Gymnasium Registration",
93+
carrot_topic: "GYM REG",
94+
PROC: "AWUISubmitExternalLead"
95+
};
96+
97+
return Gymnasium.RecordCloudwallRecord(data, callback);
98+
};
99+
100+
Gymnasium.prototype.RecordCloudwallRecord = function(jsonData, callback)
101+
{
102+
jsonData.utm_source = "gymnasium.com";
103+
jsonData.utm_medium = "web";
104+
jsonData.utm_content = "not-provided";
105+
jsonData.utm_term = "not-provided";
106+
jsonData.agent_email = "[email protected]";
107+
jsonData.agent_id = "1694600";
108+
jsonData.agent_name = "TALENT LEAD NURTURING";
109+
jsonData.carrot = "thegymnasium.com";
110+
jsonData.subdomain = "cw-rc";
111+
jsonData.language = "en_US";
112+
jsonData.medium = "1009";
113+
jsonData.referring_site = "thegymnasium.com";
114+
jsonData.status = "Talent";
115+
jsonData.referer = "thegymnasium.com";
116+
117+
118+
$.ajax("https://aquent.com/application/gymnasium-lead.htm",
119+
{
120+
contentType: "application/json",
121+
dataType: "jsonp",
122+
data: jsonData
123+
})
124+
.done(function(event)
125+
{
126+
//console.log("Success!\n", event);
127+
})
128+
.fail(function(event, textStatus, errorThrown)
129+
{
130+
//console.log("Failure:\n", textStatus, "\n", errorThrown);
131+
})
132+
.always(function(e){
133+
//console.log("always:\n", e);
134+
if (callback)
135+
{
136+
callback();
137+
}
138+
});
30139
}
31140

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

static/sass/_catalog.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.find-courses
22
{
33
background:transparent;
4+
padding-bottom:0;
45

56
.catalog-content
67
{
@@ -63,7 +64,7 @@
6364
{
6465
border: 1px solid #ccc;
6566
border-radius: 2px;
66-
margin: 0 auto 2em;
67+
margin: 0 auto 0em;
6768
}
6869

6970
.course-overview

static/sass/_courseware.scss

Lines changed: 64 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ body.courseware
1919
.content-wrapper#content
2020
{
2121
background-color:$gym-white;
22-
padding-bottom:100px;
22+
padding-bottom:1em;
2323
}
2424

2525

@@ -155,6 +155,49 @@ nav.progress.wrapper-course-material
155155
{
156156
background-color:$gym-medium-grey;
157157

158+
/* restyle the accordion sprite icon to use glyphicons from bootstrap.
159+
this is a hack. Love, Mike.
160+
*/
161+
span.ui-accordion-header-icon.ui-icon.ui-icon-triangle-1-e,
162+
span.ui-accordion-header-icon.ui-icon.ui-icon-triangle-1-s
163+
{
164+
position: relative;
165+
top: 28px;
166+
display: inline-block;
167+
font-family: 'Glyphicons Halflings';
168+
font-style: normal;
169+
font-weight: 400;
170+
line-height: 1;
171+
-webkit-font-smoothing: antialiased;
172+
background:none;
173+
background-position:0;
174+
background-image:none;
175+
opacity:1;
176+
text-indent:0;
177+
}
178+
179+
span.ui-accordion-header-icon.ui-icon.ui-icon-triangle-1-e:before,
180+
span.ui-accordion-header-icon.ui-icon.ui-icon-triangle-1-s:before
181+
{
182+
-webkit-box-sizing: border-box;
183+
-moz-box-sizing: border-box;
184+
box-sizing: border-box;
185+
color:$gym-orange;
186+
font-size:0.5em;
187+
margin-left:1em;
188+
position:absolute;
189+
top:0.5em;
190+
}
191+
span.ui-accordion-header-icon.ui-icon.ui-icon-triangle-1-e:before
192+
{
193+
content: "\e250";
194+
}
195+
196+
span.ui-accordion-header-icon.ui-icon.ui-icon-triangle-1-s:before
197+
{
198+
content: "\e252";
199+
}
200+
158201
p.subtitle
159202
{
160203
display:none;
@@ -184,15 +227,32 @@ nav.progress.wrapper-course-material
184227
color:$gym-white;
185228
background:none;
186229
box-shadow:none;
230+
padding:0;
231+
232+
h3
233+
{
234+
line-height:1.3;
235+
}
187236

188237
a
189238
{
239+
font-weight:900;
240+
letter-spacing: .04em;
241+
word-spacing: .04em;
242+
190243
color:$gym-white;
191244
background:none;
192245
box-shadow:none;
193246
text-shadow:none;
194247
border:none;
248+
margin-bottom:0.3em;
249+
250+
p
251+
{
252+
font-size:1.2em;
253+
}
195254
}
255+
196256
}
197257

198258
}
@@ -204,7 +264,7 @@ nav.progress.wrapper-course-material
204264
{
205265
border:none;
206266
border-radius:2px;
207-
margin-bottom:100px;
267+
margin-bottom:0px;
208268
border: 1px solid #ccc;
209269
font-family: "Helvetica Neue", Helvetica, sans-serif;
210270

@@ -374,12 +434,13 @@ nav.progress.wrapper-course-material
374434
.hero-banner
375435
{
376436
background: #777;
377-
border-bottom: 1px solid #ccc;
437+
border-bottom: 0px;
378438

379439
h1
380440
{
381441
color:white;
382442
font-family:brandon-grotesque;
443+
text-align:center;
383444
}
384445

385446
img

static/sass/_gymnasium.scss

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,25 @@ $footer_margin: ($baseline/4) 0;
285285
//-----------------
286286
// CSS BG Images
287287
//-----------------
288-
$homepage-bg-image: url('../themes/gymnasium/images/home-page-hero-background.png');
288+
$homepage-bg-image: url('../themes/gymnasium/images/marketing-campaign/homepage_graphic.png');
289+
.home>header
290+
{
291+
background-position-y:-25px;
292+
.container
293+
{
294+
height:100%;
295+
296+
.row
297+
{
298+
height:100%;
299+
300+
.marketing-image-container
301+
{
302+
height:100%;
303+
}
304+
}
305+
}
306+
}
289307

290308
$login-banner-image: none;
291309
$register-banner-image: none;
@@ -611,6 +629,7 @@ body a:focus,
611629
background-color:$gym-dark-grey;
612630
border-color:transparent;
613631
border:none;
632+
margin-bottom:0;
614633
}
615634
}
616635

@@ -682,7 +701,7 @@ header.global,
682701

683702
.content-wrapper#content
684703
{
685-
padding-bottom:0px;
704+
padding-bottom:1em;
686705
background-color:$gym-white;
687706
}
688707

static/sass/_home.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,17 @@
2727
position:relative;
2828
top:-11px;
2929

30+
>header
31+
{
32+
height:33em;
33+
}
34+
3035
header
3136
{
3237
border-bottom:$gym-white;
3338
margin-top:11px;
3439

40+
3541
.outer-wrapper
3642
{
3743
padding: 150px 10px 0px 740px;
@@ -208,6 +214,8 @@
208214
-webkit-box-sizing: border-box;
209215
box-sizing: border-box;
210216
vertical-align: top;
217+
position:relative;
218+
z-index:100;
211219
}
212220

213221
h1
@@ -471,3 +479,9 @@
471479
}
472480

473481
}
482+
483+
.sit-and-get-fit
484+
{
485+
position:absolute;
486+
bottom:0px;
487+
}

0 commit comments

Comments
 (0)