Skip to content

Commit

Permalink
feat(landing page design): users should see landing page
Browse files Browse the repository at this point in the history
- Redesign the landing page
Create css style for the landing page
[Deliver #156882158]
  • Loading branch information
chika onuchukwu committed May 7, 2018
2 parents 919c33e + dbe3cc1 commit 7697c8d
Show file tree
Hide file tree
Showing 17 changed files with 111 additions and 259 deletions.
1 change: 0 additions & 1 deletion app/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const UserSchema = new Schema({
hashed_password: String,
facebook: {},
twitter: {},
github: {},
google: {}
});

Expand Down
2 changes: 0 additions & 2 deletions app/views/users/auth.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ block content
.offset1.span5
a(href="/auth/facebook")
img(src="/img/icons/facebook.png")
a(href="/auth/github")
img(src="/img/icons/github.png")
a(href="/auth/twitter")
img(src="/img/icons/twitter.png")
a(href="/auth/google")
Expand Down
4 changes: 2 additions & 2 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import _ from 'underscore';
// Load app configuration

module.exports = _.extend(
require(`${__dirname}/../config/env/all.js`),
require(`${__dirname}/../config/env/${process.env.NODE_ENV}.json`) || {}
require('../config/env/all.js'),
require(`./env/${process.env.NODE_ENV}`) || {}
);
16 changes: 16 additions & 0 deletions config/env/development.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
require('dotenv').config();

module.exports = {
app: {
name: 'Cards for Humanity - Development'
},
facebook: {
callbackURL: process.env.FB_CALLBACK
},
twitter: {
callbackURL: process.env.TWITTER_CALLBACK
},
google: {
callbackURL: process.env.GOOGLE_CALLBACK
}
};
25 changes: 0 additions & 25 deletions config/env/development.json

This file was deleted.

16 changes: 16 additions & 0 deletions config/env/production.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
require('dotenv').config();

module.exports = {
app: {
name: 'Cards for Humanity - Development'
},
facebook: {
callbackURL: process.env.FB_CALLBACK
},
twitter: {
callbackURL: process.env.TWITTER_CALLBACK
},
google: {
callbackURL: process.env.GOOGLE_CALLBACK
}
};
25 changes: 0 additions & 25 deletions config/env/production.json

This file was deleted.

23 changes: 23 additions & 0 deletions config/env/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
require('dotenv').config();

module.exports = {
port: 3001,
app: {
name: 'Cards for Humanity - Test'
},
facebook: {
clientID: 'APP_ID',
clientSecret: 'APP_SECRET',
callbackURL: 'http://localhost:3000/auth/facebook/callback'
},
twitter: {
clientID: 'CONSUMER_KEY',
clientSecret: 'CONSUMER_SECRET',
callbackURL: 'http://localhost:3000/auth/twitter/callback'
},
google: {
clientID: 'APP_ID',
clientSecret: 'APP_SECRET',
callbackURL: 'http://localhost:3000/auth/google/callback'
}
};
26 changes: 0 additions & 26 deletions config/env/test.json

This file was deleted.

24 changes: 24 additions & 0 deletions config/env/travis.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
require('dotenv').config();

module.exports = {
port: 3001,
app: {
name: 'Cards for Humanity - Test on travis'
},
facebook: {
clientID: 'APP_ID',
clientSecret: 'APP_SECRET',
callbackURL: 'http://localhost:3000/auth/facebook/callback'
},
twitter: {
clientID: 'CONSUMER_KEY',
clientSecret: 'CONSUMER_SECRET',
callbackURL: 'http://localhost:3000/auth/twitter/callback'
},

google: {
clientID: 'APP_ID',
clientSecret: 'APP_SECRET',
callbackURL: 'http://localhost:3000/auth/google/callback'
}
};
26 changes: 0 additions & 26 deletions config/env/travis.json

This file was deleted.

Loading

0 comments on commit 7697c8d

Please sign in to comment.