Merge pull request #8671 from QuincyLarson/fix/remove-tweet-buttons

Remove tweet buttons and /labs
This commit is contained in:
Berkeley Martinez
2016-05-18 09:34:07 -07:00
15 changed files with 35 additions and 208 deletions

View File

@@ -1,6 +1,5 @@
import request from 'request';
import constantStrings from '../utils/constantStrings.json';
import labs from '../resources/labs.json';
import testimonials from '../resources/testimonials.json';
import secrets from '../../config/secrets';
@@ -21,7 +20,6 @@ module.exports = function(app) {
router.get('/unsubscribed', unsubscribed);
router.get('/get-started', getStarted);
router.get('/submit-cat-photo', submitCatPhoto);
router.get('/labs', showLabs);
router.get('/stories', showTestimonials);
router.get('/shop', showShop);
router.get('/shop/cancel-stickers', cancelStickers);
@@ -43,13 +41,6 @@ module.exports = function(app) {
res.redirect('https://gitter.im/FreeCodeCamp/FreeCodeCamp');
}
function showLabs(req, res) {
res.render('resources/labs', {
title: 'Projects Built by Free Code Camp Software Engineers',
projects: labs
});
}
function terms(req, res) {
res.render('resources/terms-of-service', {
title: 'Terms of Service'

View File

@@ -1,65 +0,0 @@
[
{
"camper": "johnstonbl01",
"name": "Clementine.js",
"url": "http://johnstonbl01.github.io/clementinejs/",
"description": "The elegant and lightweight boilerplate for full stack JavaScript.",
"image": "//i.imgur.com/ib1wOho.png"
},
{
"camper": "adventurebear",
"name": "Coding Bootcamp Cost Calculator",
"url": "http://www.freecodecamp.com/coding-bootcamp-cost-calculator",
"description": "This d3.js-powered coding bootcamp cost calculator takes into account tuition, financing, lost wages and cost of living.",
"image": "https://qph.is.quoracdn.net/main-qimg-670d6a0c5b01f74138e777732994240f?convert_to_webp=true"
},
{
"camper": "martoncsikos",
"name": "Skill.bar",
"url": "http://www.skill.bar",
"description": "Learn. Gain points. Visualize your skills.",
"image": "//i.imgur.com/URkqqb5.png"
},
{
"camper": "ericdouglas",
"name": "Open Source Society",
"url": "https://github.com/open-source-society/computer-science",
"description": "A path to a free education in Computer Science.",
"image": "https://camo.githubusercontent.com/c42438055d3fee26b29e6d046fd8d06ebff3db20/687474703a2f2f692e696d6775722e636f6d2f6838786a72726a2e706e67"
},
{
"camper": "akiralaine",
"name": "Musare",
"url": "http://musare.com/",
"description": "Musare is a modern, collaborative, open-source Music App.",
"image": "//i.imgur.com/Y4D4MPL.png"
},
{
"camper": "bighitbiker3",
"name": "Queue That",
"url": "http://queuethat.com/",
"description": "An app that uses the SoundCloud API in order to make temporary, running playlists.",
"image": "https://www.evernote.com/l/AqSy_bYAZ0dOiJnn4CfNgo09DOSTUX1IADIB/image.png"
},
{
"camper": "storbeck",
"name": "Free Code Camp Event Zipline: Recipe Box",
"url": "http://codepen.io/GeoffStorbeck/full/bVKyzd/",
"description": "Try to reverse engineer this Recipe Box as an optional Zipline challenge.",
"image": "//i.imgur.com/5o0bwVQ.png"
},
{
"camper": "akiralaine",
"name": "Camper News Bot",
"url": "https://twitter.com/campernewsbot",
"description": "This twitter bot tweets out Camper News stories once they hit 5 upvotes.",
"image": "https://pbs.twimg.com/media/CLXOFLPWIAEHYPJ.png"
},
{
"camper": "roelver",
"name": "Free Code Camp Top 100 Campers",
"url": "http://fcctop100.herokuapp.com/",
"description": "This leaderboard tracks the campers who have been most active (completing challenges, helping other campers) in the past 30 days.",
"image": "//i.imgur.com/4CrQfFi.png"
}
]

View File

@@ -75,9 +75,6 @@ block content
.row
if (user)
#submit-challenge.animated.fadeIn.btn.btn-lg.btn-primary.btn-block Submit and go to my next challenge (ctrl + enter)
a.btn.btn-lg.btn-block.btn-twitter(target="_blank", href="https://twitter.com/intent/tweet?text=I%20just%20#{verb}%20%40FreeCodeCamp%20#{name}&url=http%3A%2F%2Ffreecodecamp.com/challenges/#{dashedName}&hashtags=LearnToCode, JavaScript", onclick="ga('send', 'event', 'twitter', 'share', 'challenge completion share');")
i.fa.fa-twitter  
= phrase
else
a#next-challenge.btn.btn-lg.btn-primary.btn-block(href="/challenges/next-challenge?id="+id) Go to my next challenge (ctrl + enter)
include ../partials/challenge-modals

View File

@@ -60,9 +60,6 @@ block content
if (user)
a.btn.btn-lg.btn-primary.btn-block#next-courseware-button(name='_csrf', value=_csrf) Submit and go to my next challenge
.button-spacer
a.btn.btn-lg.btn-block.btn-twitter(target="_blank", href="https://twitter.com/intent/tweet?text=Check%20out%20the%20project%20I%20just%20built%20with%20%40FreeCodeCamp:%20PASTE_YOUR_CODEPEN_URL_HERE_USING_FULL_INSTEAD_OF_PEN%20%0A%20%23LearnToCode%20%23JavaScript", onclick="ga('send', 'event', 'twitter', 'share', 'challenge completion share');")
i.fa.fa-twitter  Tweet this project
else
a.btn.btn-lg.btn-primary.btn-block(href='/challenges/next-challenge?id=' + id) Go to my next challenge

View File

@@ -58,11 +58,6 @@ block content
i.fa.fa-youtube
td
a(href="//youtube.com/freecodecamp", target='_blank') Our YouTube channel
tr
td.text-center
i.fa.fa-reddit
td
a(href="//www.reddit.com/r/freecodecamp", target='_blank') Our Subreddit
tr
td.text-center
i.fa.fa-github
@@ -83,6 +78,11 @@ block content
i.fa.fa-facebook
td
a(href="//facebook.com/freecodecamp") Our Facebook page
tr
td.text-center
i.fa.fa-reddit
td
a(href="//www.reddit.com/r/freecodecamp", target='_blank') Our Subreddit
tr
td.text-center
i.fa.fa-lock

View File

@@ -1,17 +0,0 @@
extends ../layout
block content
h2.text-center Projects Created by Free Code Camp Campers
hr
.row
.col-xs-12.col-sm-10.col-sm-offset-1
for project in projects
.spacer
.row
.col-xs-12.col-sm-3
img.img-responsive(src=project.image)
.col-xs-12.col-sm-9.negative-15
h3
a(href=project.url) #{project.name}
h4 by 
a(href='/' + project.camper) #{project.camper}
p= project.description

View File

@@ -1,54 +0,0 @@
extends ../layout
block content
table.table.link-table
tr
td.text-right
.ion-erlenmeyer-flask
td
a(href="/labs") Cool Apps Built by Campers
tr
td.text-right
.ion-chatbox
td
a(href="/stories") Stories from Campers
tr
td.text-right
.ion-speakerphone
td
a(href='//medium.freecodecamp.com', target='_blank') Medium Publication
tr
td.text-right
.ion-social-github
td
a(href="//github.com/freecodecamp", target='_blank') GitHub Repository
tr
td.text-right
.ion-social-reddit
td
a(href="//www.reddit.com/r/freecodecamp", target='_blank') Subreddit
tr
td.text-right
.ion-social-linkedin
td
a(href="//www.linkedin.com/edu/school?id=166029", target='_blank') LinkedIn University Page
tr
td.text-right
.ion-social-twitter
td
a(href="//twitter.com/freecodecamp", target='_blank') Twitter Feed
tr
td.text-right
.ion-social-facebook
td
a(href="//facebook.com/freecodecamp") Facebook Page
tr
td.text-right
.ion-social-twitch-outline
td
a(href="//twitch.tv/freecodecamp", target='_blank') Twitch.tv Channel
tr
td.text-right
.ion-locked
td
a(href="//github.com/FreeCodeCamp/freecodecamp/wiki/Free-Code-Camp's-Privacy-Policy") Privacy Policy
.spacer

View File

@@ -2,28 +2,6 @@ extends ../layout
block content
h1.text-center Shop
hr
.row
.col-xs-12.col-sm-8.col-sm-offset-2.col-md-6.col-md-offset-3.text-center
img.img-responsive.img-center(src='//i.imgur.com/GzpUBR5.jpg')
h3 Women's fitted black t-shirt
h4 Only $19.99!
p This high-quality American Apparel t-shirt will help you look like the fantastic developer you are.
.spacer
a.btn.btn-lg.signup-btn.btn-block(href='//teespring.com/free-code-camp-tshirt-black#pid=70&cid=2343&sid=front' target='_blank') Get this awesome shirt
.button-spacer
a.btn.btn-primary.btn-lg.btn-block(href='//teespring.com/black-free-code-camp-tshirt-eu#pid=375&cid=100052&sid=front' target='_blank') Get it here if you live in Europe
hr
.row
.col-xs-12.col-sm-8.col-sm-offset-2.col-md-6.col-md-offset-3.text-center
img.img-responsive.img-center(src='//i.imgur.com/ENPVayN.jpg')
h3 Men's black t-shirt
h4 Only $19.99!
p Features Free Code Camp's classy "function call" logo. You can't have too many awesome black t-shirts!
.spacer
a.btn.btn-lg.signup-btn.btn-block(href='//teespring.com/free-code-camp-tshirt-black' target='_blank') Get this awesome shirt
.button-spacer
a.btn.btn-primary.btn-lg.btn-block(href='//teespring.com/black-free-code-camp-tshirt-eu' target='_blank') Get it here if you live in Europe
hr
.row
.col-xs-12.col-sm-8.col-sm-offset-2.col-md-6.col-md-offset-3.text-center
img.img-responsive.img-center(src='//i.imgur.com/MH1CvwY.jpg')