From b68458cdb528962ee568e62bcde7afa1d04ec9e3 Mon Sep 17 00:00:00 2001 From: Michael Q Larson Date: Fri, 24 Oct 2014 15:22:09 -0700 Subject: [PATCH] get email persisting but still need to pull it in on authentication --- models/User.js | 2 +- views/contact.jade | 26 +++++++++++++------------- views/layout.jade | 4 ++-- views/partials/meta.jade | 23 +++++++++++++++++++++++ 4 files changed, 39 insertions(+), 16 deletions(-) create mode 100644 views/partials/meta.jade diff --git a/models/User.js b/models/User.js index 0eb9c5d163..0d9a9dd4c0 100644 --- a/models/User.js +++ b/models/User.js @@ -3,7 +3,7 @@ var bcrypt = require('bcrypt-nodejs'); var crypto = require('crypto'); var userSchema = new mongoose.Schema({ -// email: { type: String, unique: true, lowercase: true }, + email: { type: String, unique: true, lowercase: true }, // password: String, linkedin: String, diff --git a/views/contact.jade b/views/contact.jade index 3ae45c92b8..f00becded8 100644 --- a/views/contact.jade +++ b/views/contact.jade @@ -1,19 +1,19 @@ extends layout block content - .page-header - h1 We love non-profits! - h2 We want to help you get things done faster and better! - h3 Our students will help you build that donor tracking system, community message board, or whatever your organization needs, at no cost. In exchange, we ask only that you: - h4 - ul - li • meet with them regularly in person. If that's not possible, you can teleconference with them. This way, you can collaboratively establish and review milestones. - br - li • clearly communicate your goals for the project: what will this project solve, and for whom? - br - li • know that they will use cutting edge JavaScript frameworks to build your project. Please don't expect them to use Wordpress or other proprietary or old-school technologies. - br - li • don't lower your expectiations. Their goal is to produce work that's up to your standards. + .jumbotron + h1 Hey non-profits, + h2 We want to help you get things done faster and better! + h3 Our students will help you build that donor tracking system, community message board, or whatever your organization needs, at no cost. In exchange, we ask only that you: + h4 + ul + li • meet with them regularly in person. If that's not possible, you can teleconference with them. This way, you can collaboratively establish and review milestones. + br + li • clearly communicate your goals for the project: what will this project solve, and for whom? + br + li • know that they will use cutting edge JavaScript frameworks to build your project. Please don't expect them to use Wordpress or other proprietary or old-school technologies. + br + li • don't lower your expectiations. Their goal is to produce work that's up to your standards. h3 If you're OK with all this, great! We can help you! h4 Fill this out and we'll get right back to you. form.form-horizontal(role='form', method='POST') diff --git a/views/layout.jade b/views/layout.jade index 4b75877626..7ad68a9bac 100644 --- a/views/layout.jade +++ b/views/layout.jade @@ -4,10 +4,10 @@ html meta(charset='utf-8') meta(http-equiv='X-UA-Compatible', content='IE=edge') meta(name='viewport', content='width=device-width, initial-scale=1.0') - meta(name='description', content='') meta(name='csrf-token', content=_csrf) - meta(name='author', content='') + include partials/meta title #{title} | Free Code Camp + != css('styles') body include partials/navbar diff --git a/views/partials/meta.jade b/views/partials/meta.jade new file mode 100644 index 0000000000..387b821eb1 --- /dev/null +++ b/views/partials/meta.jade @@ -0,0 +1,23 @@ +title Building apps for non-profits. +meta(name='keywords', content='foo bar baz') +meta(content="Your free coding bootcamp. Learn JavaScript, build a portfolio, and get great references - all by helping non-profits!", property="og:title") +meta(content="FreeCodeCamp", property="og:site_name") +meta(content="http://www.freecodecamp.com", property="og:url") +meta(content="Your free coding bootcamp. Learn JavaScript, build a portfolio, and get great references - all by helping non-profits!", property="og:description") +meta(content="https://s3.amazonaws.com/courseforward/freecodecamp_logo.png", property="og:image") +meta(content="article", property="og:type") +meta(content="https://www.facebook.com/freecodecamp", property="article:publisher") +meta(content="Responsive", property="article:section") +//meta(content="44011818", property="fb:admins") +//Google +meta(content="Your free coding bootcamp. Learn JavaScript, build a portfolio, and get great references - all by helping non-profits!", name="description") +link(href="https://plus.google.com/114148836969274586544", rel="author") +//Twitter +meta(content="freecodecamp", name="twitter:creator") +meta(content="http://www.freecodecamp.com", name="twitter:url") +meta(content="freecodecamp", name="twitter:site") +meta(content="summary_large_image", name="twitter:card") +meta(content="Your free coding bootcamp. Learn JavaScript, build a portfolio, and get great references - all by helping non-profits!", name="twitter:title") +meta(content="https://s3.amazonaws.com/courseforward/freecodecamp_logo.png", name="twitter:image:src") +meta(content="Your free coding bootcamp. Learn JavaScript, build a portfolio, and get great references - all by helping non-profits!", name="twitter:description") +meta(content="a40ee5d5dba3bb091ad783ebd2b1383f", name="p:domain_verify") \ No newline at end of file