Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Splash page marketing update #1400

Merged
merged 30 commits into from
Aug 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d701931
draft content for homepage
superbryntendo Aug 22, 2017
64575a7
first pass on new bullet point formatting
superbryntendo Aug 22, 2017
97346e1
Copy updates
brianlovin Aug 22, 2017
63a8b90
merge
brianlovin Aug 22, 2017
b078bd5
content revisions to be more concise
superbryntendo Aug 23, 2017
fba2379
restructure components
superbryntendo Aug 25, 2017
5ece403
first rev done
superbryntendo Aug 26, 2017
44d027a
homepage > splash to clarify between home view with a user's feed and…
superbryntendo Aug 28, 2017
59fcdfa
got links working to internal pages, but can't extract the nav bar fr…
superbryntendo Aug 28, 2017
626a728
Change homepage fallback mechanism
mxstbr Aug 29, 2017
d19da87
Hide Navbar on homepage
mxstbr Aug 29, 2017
2a2a76b
Fix login page redirecting to the login page after login
mxstbr Aug 29, 2017
ed23737
fixes auth routing for log in. logout is still broken (but somehow wo…
superbryntendo Aug 30, 2017
f5c0d11
Merge branch 'master' of github.com:withspectrum/spectrum into splash…
superbryntendo Aug 30, 2017
e07f91e
Add signed out fallback
Aug 30, 2017
333e6b1
Add more logging to iris
mxstbr Aug 30, 2017
5ef4e98
Fix signing out
mxstbr Aug 30, 2017
3c316c8
Add missing dep
mxstbr Aug 30, 2017
a4d71ce
Add some more logs
mxstbr Aug 30, 2017
4b3d4b7
Comment out logout button
mxstbr Aug 30, 2017
a98b7c8
Proposed copy and layout changes
brianlovin Aug 30, 2017
6f6474b
Fix login view verb and alignment
brianlovin Aug 31, 2017
27e40c1
Copy tweaks + headline size
brianlovin Aug 31, 2017
499edc1
Fix new community signup flow
brianlovin Aug 31, 2017
aa71bf2
Remove newrelic
brianlovin Aug 31, 2017
9b2b8f3
refines button treatments and text styles. slight copy tweaks.
superbryntendo Aug 31, 2017
b235fd5
more cleanup
superbryntendo Aug 31, 2017
500e56c
Merge branch 'splash-page-v2' of github.com:withspectrum/spectrum int…
superbryntendo Aug 31, 2017
04be1f9
Copy
brianlovin Aug 31, 2017
e417612
Small typos
brianlovin Aug 31, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions iris/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ const PORT = 3001;
initPassport();
// API server
const app = express();
// $FlowFixMe
if (IS_PROD) {
require('newrelic');
}

import middlewares from './routes/middlewares';
app.use(middlewares);
Expand Down
25 changes: 0 additions & 25 deletions iris/newrelic.js

This file was deleted.

24 changes: 10 additions & 14 deletions iris/routes/auth/logout.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
// @flow
import { Router } from 'express';
const debug = require('debug')('iris:routes:auth:logout');
import { destroySession } from '../../models/session';

const IS_PROD = process.env.NODE_ENV === 'production';
const HOME = IS_PROD ? '/' : 'http://localhost:3000/';
const logoutRouter = Router();

logoutRouter.get('/', (req, res) => {
debug('started');
const sessionCookie = req.cookies['connect.sid'];
if (req.isUnauthenticated() || !sessionCookie) {
debug('is unauthenticated, aborting logout');
return res.redirect(HOME);
}
const sessionId = sessionCookie.split('.')[0].replace('s:', '');
return destroySession(sessionId)
.then(() => {
// I should not have to do this manually
// but it doesn't work otherwise ¯\_(ツ)_/¯
res.clearCookie('connect.sid');
req.logout();
res.redirect(HOME);
})
.catch(err => {
res.clearCookie('connect.sid');
console.log(err);
res.redirect(HOME);
});
debug('logging out');
req.logout();
req.session.destroy(err => {
if (err) console.log(err);
debug(`destroyed session, redirecting`);
res.redirect(HOME);
});
});

export default logoutRouter;
5 changes: 5 additions & 0 deletions iris/routes/middlewares/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import { Router } from 'express';

const middlewares = Router();

if (process.env.NODE_ENV === 'development') {
const logging = require('./logging');
middlewares.use(logging);
}

if (process.env.NODE_ENV === 'production' && !process.env.FORCE_DEV) {
// Raven (Sentry client) needs to come before everything else
const raven = require('./raven').default;
Expand Down
8 changes: 8 additions & 0 deletions iris/routes/middlewares/logging.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// @flow
// Log requests with debug
const debug = require('debug')('iris:web');

module.exports = (req: Request, res: Response, next: Function) => {
debug(`requesting ${req.url}`);
next();
};
2 changes: 1 addition & 1 deletion iris/routes/middlewares/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default session({
// Forces a session that is "uninitialized" to be saved to the store
// NOTE(@mxstbr): This might not be necessary or even useful, but the default example of
// session-rethinkdb uses it. Ref: llambda/session-rethinkdb#12
saveUninitialized: true,
saveUninitialized: false,
// Force a session identifier cookie to be set on every response, resets the expire date of the
// cookie to one year from the time of the response, meaning you'll only get logged out after a
// year of inactivity.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"flow-bin": "^0.43.0",
"lint-staged": "^3.3.0",
"micromatch": "^3.0.4",
"newrelic": "^2.2.0",
"nodemon": "^1.11.0",
"prettier": "^1.0.0",
"raw-loader": "^0.5.1",
Expand Down
162 changes: 162 additions & 0 deletions public/img/conversation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/discover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 0 additions & 37 deletions public/img/goopy-2.svg

This file was deleted.

21 changes: 0 additions & 21 deletions public/img/goopy-3.svg

This file was deleted.

17 changes: 0 additions & 17 deletions public/img/goopy-4.svg

This file was deleted.

52 changes: 0 additions & 52 deletions public/img/goopy.svg

This file was deleted.

6 changes: 5 additions & 1 deletion src/actions/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { clearApolloStore } from '../api';
import { removeItemFromStorage, storeItem } from '../helpers/localStorage';
import Raven from 'raven-js';

export const logout = () => {
export const logout = dispatch => {
track(`user`, `sign out`, null);
// clear localStorage
removeItemFromStorage('spectrum');
Expand All @@ -15,6 +15,10 @@ export const logout = () => {
process.env.NODE_ENV === 'production'
? '/auth/logout'
: 'http://localhost:3001/auth/logout';

dispatch({
type: 'CLEAR_USER',
});
};

export const saveUserDataToLocalStorage = (user: Object) => dispatch => {
Expand Down
5 changes: 5 additions & 0 deletions src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ export const SERVER_URL =
? `${window.location.protocol}//${window.location.host}`
: 'http://localhost:3001';

export const CLIENT_URL =
process.env.NODE_ENV === 'production'
? `${window.location.protocol}//${window.location.host}`
: 'http://localhost:3000';

export const PUBLIC_STRIPE_KEY =
process.env.NODE_ENV === 'production'
? 'pk_live_viV7X5XXD1sw8aN2NgQjiff6'
Expand Down
2 changes: 1 addition & 1 deletion src/components/buttons/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const baseButton = css`
line-height: 1;
position: relative;
text-align: center;
padding: ${props => (props.icon ? '4px 8px 4px 4px' : '12px 16px')};
padding: ${props => (props.icon ? '4px 8px' : '12px 16px')};

&:hover {
transition: ${Transition.hover.on};
Expand Down
2 changes: 1 addition & 1 deletion src/components/fullscreenView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
ClusterTwo,
ClusterThree,
ClusterFour,
} from '../../views/homepage/style';
} from '../../views/splash/components/illustrations';
import Icon from '../../components/icons';
import { FullscreenViewContainer, Illustrations, Close } from './style';

Expand Down
Loading