diff --git a/server/boot/randomAPIs.js b/server/boot/randomAPIs.js index 022962e2f6..a7282e1ca0 100644 --- a/server/boot/randomAPIs.js +++ b/server/boot/randomAPIs.js @@ -26,6 +26,7 @@ module.exports = function(app) { router.post('/get-help', getHelp); router.post('/get-pair', getPair); router.get('/chat', chat); + router.get('/bootcamp-calculator', bootcampCalculator); router.get('/twitch', twitch); router.get('/pmi-acp-agile-project-managers', agileProjectManagers); router.get('/pmi-acp-agile-project-managers-form', agileProjectManagersForm); @@ -325,6 +326,12 @@ module.exports = function(app) { } } + function bootcampCalculator(req, res) { + res.render('resources/calculator', { + title: 'Coding Bootcamp Cost Calculator' + }); + } + function jobsForm(req, res) { res.render('resources/jobs-form', { title: 'Employer Partnership Form for Job Postings,' + diff --git a/server/views/challengeMap/show.jade b/server/views/challengeMap/show.jade index 782f76f484..c72cffe37f 100644 --- a/server/views/challengeMap/show.jade +++ b/server/views/challengeMap/show.jade @@ -98,22 +98,21 @@ block content li.large-p.negative-10 a(href="/challenges/#{challenge.name}")= challenge.name - //#announcementModal.modal(tabindex='-1') - // .modal-dialog.animated.fadeInUp.fast-animation - // .modal-content - // .modal-header.challenge-list-header Join our Saturday Summit! - // a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') × - // .modal-body - // h3.text-left Saturday at Noon EDT: We'll live-stream our Saturday Summit on Twitch.tv. - // h3.text-left We'll announce our new Front End Development Certificate Program (it's free, of course) and our new "Free Code Camp On The Go" app.   - // a(href='http://www.freecodecamp.com/twitch', target='_blank') Add us to your calendar here - // | . - // a.btn.btn-lg.btn-info.btn-block(name='_csrf', value=_csrf, aria-hidden='true', href='http://twitch.tv/freecodecamp', target='_blank') Follow us on Twitch.tv - // a.btn.btn-lg.btn-primary.btn-block(href='#', data-dismiss='modal', aria-hidden='true') Thanks for the heads-up! - //script. - // $(document).ready(function () { - // if (!localStorage || !localStorage.day234) { - // $('#announcementModal').modal('show'); - // localStorage.day234 = "true"; - // } - // }); + #announcementModal.modal(tabindex='-1') + .modal-dialog.animated.fadeInUp.fast-animation + .modal-content + .modal-header.challenge-list-header Add us to your LinkedIn profile + a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') × + .modal-body + h3.text-left LinkedIn now recognizes Free Code Camp as a university. + img.img-responsive.img-center(src='https://www.evernote.com/l/AHTzkHwtg-BHj57bqqDL7WFF8WgrI5V8cxwB/image.png') + h3.text-left It takes less than a minute to add Free Code Camp to your LinkedIn profile. + a.btn.btn-lg.btn-info.btn-block(name='_csrf', value=_csrf, aria-hidden='true', href='/linkedin', target='_blank') Show me how to do this + a.btn.btn-lg.btn-primary.btn-block(href='#', data-dismiss='modal', aria-hidden='true') Thanks for the heads-up + script. + $(document).ready(function () { + if (!localStorage || !localStorage.linkedIn) { + $('#announcementModal').modal('show'); + localStorage.linkedIn = "true"; + } + }); diff --git a/server/views/partials/footer.jade b/server/views/partials/footer.jade index 4a174070dd..0af2fce328 100644 --- a/server/views/partials/footer.jade +++ b/server/views/partials/footer.jade @@ -3,6 +3,7 @@ a.ion-speakerphone(href='http://blog.freecodecamp.com', target='_blank')  Blog   a.ion-social-github(href="http://github.com/freecodecamp", target='_blank')  GitHub   a.ion-social-twitch-outline(href="/twitch")  Twitch  + a.ion-social-linkedin(href="/linkedin")  LinkedIn  a.ion-social-facebook(href="/field-guide/how-can-i-find-other-free-code-camp-campers-in-my-city")  Facebook   a.ion-social-twitter(href="http://twitter.com/freecodecamp", target='_blank')  Twitter   a.ion-locked(href="/privacy")  Privacy   @@ -14,6 +15,8 @@ span.sr-only Free Code Camp on GitHub a.ion-social-twitch-outline(href="/twitch") span.sr-only Free Code Camp Live Pair Programming on Twitch.tv + a.ion-social-linkedin(href="/linkedin") + span.sr-only Free Code Camp LinkedIn Alumni Network a.ion-social-facebook(href="/field-guide/how-can-i-find-other-free-code-camp-campers-in-my-city") span.sr-only Free Code Camp local groups on Facebook a.ion-social-twitter(href="http://twitter.com/freecodecamp", target='_blank') diff --git a/server/views/resources/twitch.jade b/server/views/resources/twitch.jade index 678d983411..1b89b17432 100644 --- a/server/views/resources/twitch.jade +++ b/server/views/resources/twitch.jade @@ -34,32 +34,32 @@ block content .col-xs-12.col-sm-12.col-md-6 .embed-responsive.embed-responsive-16by9.big-break iframe.embed-responsive-item(src='//www.youtube.com/embed/Z_43xApGB9Y') - p.wrappable.negative-45 link:   + p.wrappable.negative-30 link:   a(href="http://www.youtube.com/watch/Fn9HMn79KH0") http://www.youtube.com/watch/Z_43xApGB9Y .col-xs-12.col-sm-12.col-md-6 .embed-responsive.embed-responsive-16by9.big-break iframe.embed-responsive-item(src='//www.youtube.com/embed/PvWHzcebjjQ') - p.wrappable.negative-45 link:   + p.wrappable.negative-30 link:   a(href="http://www.youtube.com/watch/Fn9HMn79KH0") http://www.youtube.com/watch/PvWHzcebjjQ .col-xs-12.col-sm-12.col-md-6 .embed-responsive.embed-responsive-16by9.big-break iframe.embed-responsive-item(src='//www.youtube.com/embed/yHL6mEr-LGY') - p.wrappable.negative-45 link:   + p.wrappable.negative-30 link:   a(href="http://www.youtube.com/watch/Fn9HMn79KH0") http://www.youtube.com/watch/yHL6mEr-LGY .col-xs-12.col-sm-12.col-md-6 .embed-responsive.embed-responsive-16by9.big-break iframe.embed-responsive-item(src='//www.youtube.com/embed/dolG-yRMcPs') - p.wrappable.negative-45 link:   + p.wrappable.negative-30 link:   a(href="http://www.youtube.com/watch/Fn9HMn79KH0") http://www.youtube.com/watch/dolG-yRMcPs .col-xs-12.col-sm-12.col-md-6 .embed-responsive.embed-responsive-16by9.big-break iframe.embed-responsive-item(src='//www.youtube.com/embed/YMz_vrK_KlQ') - p.wrappable.negative-45 link:   + p.wrappable.negative-30 link:   a(href="http://www.youtube.com/watch/_BErpDdmBOw") http://www.youtube.com/watch/YMz_vrK_KlQ .col-xs-12.col-sm-12.col-md-6 .embed-responsive.embed-responsive-16by9.big-break iframe.embed-responsive-item(src='//www.youtube.com/embed/bbFVxaza8Ik') - p.wrappable.negative-45 link:   + p.wrappable.negative-30 link:   a(href="http://www.youtube.com/watch/S7iRBZJwOAs") http://www.youtube.com/watch/bbFVxaza8Ik br br diff --git a/server/views/stories/news-nav.jade b/server/views/stories/news-nav.jade index 6408520a20..48f64ae561 100644 --- a/server/views/stories/news-nav.jade +++ b/server/views/stories/news-nav.jade @@ -15,10 +15,10 @@ .spacer .row .col-xs-12.col-sm-8.col-sm-offset-2.well - h4.text-center Which Coders are Worth Following on Twitter? - img.img-responsive(src='https://www.evernote.com/l/AHQLuyBNcVpKj5TRhNzWssVuCvbRIEylm3oB/image.png') - p Share a link to the Twitter profile of your choice, and tell us in 140 characters or less why this person is a "Coder Worth Following". - p Use the headline: "Coder Worth Following: (their Twitter handle)". We'll publish a list of the 25 most-upvoted submissions (and the campers who submitted them) in Wednesday's blog post. Also - as always - you'll get 1 point every time someone upvotes your post. + h4.text-center Which other free resources do you use? + img.img-responsive(src='https://www.evernote.com/l/AHRNhlwViM1Kh5qCm6iy7MSWrbdyxYbRkWkB/image.png') + p Link us to your favorite free coding resources. + p Use the headline: "Awesome Free Resource: (the name of the book, podcast, or video series)". We'll publish a list of the 25 most-upvoted resources (and the campers who submitted them) in Wednesday's blog post, and in an upcoming Field Guide article. Also - as always - you'll get 1 point every time someone upvotes your post. .spacer #search-results diff --git a/views/resources/calculator.jade b/views/resources/calculator.jade new file mode 100644 index 0000000000..7db81dab2a --- /dev/null +++ b/views/resources/calculator.jade @@ -0,0 +1,656 @@ +extends ../layout +block content + .panel.panel-info + .panel-heading.text-center Coding Bootcamp Cost Calculator + .panel-body + .row + .col-xs-12.col-sm-10.col-sm-offset-1 + style. + #lastYearIncome{ + clear:both; + margin: 2% 0; + width: 110px; + } + #income, #calculate { + visibility:hidden; + } + .step { + font-size: 2em; + padding: 1%; + clear: both; + } + .city-buttons { + display: block; + clear: right; + } + #four p{ + font-size: .6em; + color: black; + } + .chart rect { + fill: steelblue; + } + .chart text { + fill: #121401; + font: 10px sans-serif; + text-anchor: end; + } + .axis path, + .axis line { + fill: none; + stroke: #121401; + stroke-width: 2px; + shape-rendering: crispEdges; + } + html. + +
+
+ +
Step 1: Choose your City
+
+ +
+   + +
Step 2: Enter last Year's Income
+
+ + +
+ +
Step 3: Calculate
+ + + + + +
+ +