From 1a0d085e208840fceff04e49113f61e385eefb5f Mon Sep 17 00:00:00 2001 From: Terry Acker Date: Wed, 24 Aug 2016 15:55:33 -0400 Subject: [PATCH 1/8] Rally Time What! --- .../components/UserDashboard/UserDashboard.js | 4 +- .../userDashboard/helpers/easterEggLink.js | 38 ---- .../userDashboard/helpers/getRallyLink.js | 162 ++++++++++++++++++ 3 files changed, 164 insertions(+), 40 deletions(-) delete mode 100644 src/universal/modules/userDashboard/helpers/easterEggLink.js create mode 100644 src/universal/modules/userDashboard/helpers/getRallyLink.js diff --git a/src/universal/modules/userDashboard/components/UserDashboard/UserDashboard.js b/src/universal/modules/userDashboard/components/UserDashboard/UserDashboard.js index fe75f33b807..153bb6e2731 100644 --- a/src/universal/modules/userDashboard/components/UserDashboard/UserDashboard.js +++ b/src/universal/modules/userDashboard/components/UserDashboard/UserDashboard.js @@ -9,7 +9,7 @@ import { import look, {StyleSheet} from 'react-look'; import UserActions from 'universal/modules/userDashboard/components/UserActions/UserActions'; import UserColumnsContainer from 'universal/modules/userDashboard/containers/UserColumns/UserColumnsContainer'; -import easterEggLink from '../../helpers/easterEggLink'; +import getRallyLink from '../../helpers/getRallyLink'; const UserDashboard = () => { const {styles} = UserDashboard; @@ -17,7 +17,7 @@ const UserDashboard = () => { - {dashTimestamp} • {easterEggLink()} + {dashTimestamp} • {getRallyLink()} diff --git a/src/universal/modules/userDashboard/helpers/easterEggLink.js b/src/universal/modules/userDashboard/helpers/easterEggLink.js deleted file mode 100644 index c550a8aa842..00000000000 --- a/src/universal/modules/userDashboard/helpers/easterEggLink.js +++ /dev/null @@ -1,38 +0,0 @@ -import React from 'react'; -import theme from 'universal/styles/theme'; - -const eggs = [ - { - phrase: 'Carpe Diem', - link: 'https://youtu.be/veYR3ZC9wMQ' - }, - { - phrase: 'Keep Moving Forward', - link: 'https://youtu.be/5HksV7ZFuhM' - }, - { - phrase: 'Discombobulate', - link: 'https://youtu.be/UxfauhR7niY' - } -]; - -const egg = eggs[Math.floor(Math.random() * eggs.length)]; - -const eggPhrase = `${egg.phrase}!`; - -const style = { - color: theme.palette.dark70l -}; - -export default function easterEggLink(hasStyle = true) { - return ( - - {eggPhrase} - - ); -} diff --git a/src/universal/modules/userDashboard/helpers/getRallyLink.js b/src/universal/modules/userDashboard/helpers/getRallyLink.js new file mode 100644 index 00000000000..49d1404f5a9 --- /dev/null +++ b/src/universal/modules/userDashboard/helpers/getRallyLink.js @@ -0,0 +1,162 @@ +import React from 'react'; +import theme from 'universal/styles/theme'; + +const rallyList = [ + { + phrase: 'Carpe Diem', + link: 'https://youtu.be/veYR3ZC9wMQ' + }, + { + phrase: 'Keep Moving Forward', + link: 'https://youtu.be/5HksV7ZFuhM' + }, + { + phrase: 'Discombobulate', + link: 'https://youtu.be/UxfauhR7niY' + }, + { + phrase: 'Be Happy', + link: 'https://youtu.be/d-diB65scQU' + }, + { + phrase: 'Bring Your Friends', + link: 'https://youtu.be/hTWKbfoikeg' + }, + { + phrase: 'The Best Times', + link: 'https://youtu.be/2H5uWRjFsGc' + }, + { + phrase: 'Can’t Touch This', + link: 'https://youtu.be/ck6i3HtktaY' + }, + { + phrase: 'C’mere! Get Free', + link: 'https://youtu.be/asOvnGHwtDU' + }, + { + phrase: 'Don’t Stop Believin’', + link: 'https://youtu.be/Pw3GTTYgEV8' + }, + { + phrase: 'Gimme Some New', + link: 'https://youtu.be/FPoKiGQzbSQ' + }, + { + phrase: 'Go! Go! Go! Go', + link: 'https://youtu.be/8PaoLy7PHwk' + }, + { + phrase: 'Hammertime', + link: 'https://youtu.be/VrqdbBZqT7U' + }, + { + phrase: 'Harder, Better, Faster', + link: 'https://youtu.be/gAjR4_CbPpQ' + }, + { + phrase: 'It’s A Lovely Day', + link: 'https://youtu.be/sYi7uEvEEmk' + }, + { + phrase: 'Kill It With Kisses', + link: 'https://youtu.be/iWOyfLBYtuU' + }, + { + phrase: 'Now or Never', + link: 'https://youtu.be/vx2u5uUu3DE' + }, + { + phrase: 'On With The Show', + link: 'https://youtu.be/4ADh8Fs3YdU' + }, + { + phrase: 'Rawr, Tiger', + link: 'https://youtu.be/btPJPFnesV4' + }, + { + phrase: 'Right Here, Right Now', + link: 'https://youtu.be/F7jSp2xmmEE' + }, + { + phrase: 'Ring That Bell', + link: 'https://youtu.be/OaBfFSOJ9H8' + }, + { + phrase: 'Run This Mother', + link: 'https://youtu.be/VBmMU_iwe6U' + }, + { + phrase: 'Serve It', + link: 'https://youtu.be/0J2QdDbelmY' + }, + { + phrase: 'Sharpness Without Effort', + link: 'https://youtu.be/hpeTLTj2tww' + }, + { + phrase: 'Stronger, Richer, Smarter', + link: 'https://youtu.be/Wmc8bQoL-J0' + }, + { + phrase: 'Wax On', + link: 'https://youtu.be/Wd7PvbJece8' + }, + { + phrase: 'The Whole Team Here', + link: 'https://youtu.be/RubBzkZzpUA' + }, + { + phrase: 'The World Is Yours', + link: 'https://youtu.be/e5PnuIRnJW8' + }, + { + phrase: 'You Are A Champion', + link: 'https://youtu.be/04854XqcfCY' + }, + { + phrase: 'You Are Beautiful', + link: 'https://youtu.be/eAfyFTzZDMM' + }, + { + phrase: 'You Bossy', + link: 'https://youtu.be/SSgp-IIgr4I' + }, + { + phrase: 'You Came To Win', + link: 'https://youtu.be/KZaz7OqyTHQ' + }, + { + phrase: 'You’re The Smart One', + link: 'https://youtu.be/bKQYK7PYQpQ' + }, + { + phrase: 'You’ve Got A Bright Future', + link: 'https://youtu.be/kZGvnI37mxk' + }, + { + phrase: 'Go Pro', + link: 'https://youtu.be/9mSMTXYj7pQ' + } +]; + +const rally = rallyList[Math.floor(Math.random() * rallyList.length)]; + +const rallyPhrase = `${rally.phrase}!`; + +const style = { + color: theme.palette.dark70l +}; + +export default function getRallyLink(hasStyle = true) { + return ( + + {rallyPhrase} + + ); +} From df16c37bbb7bc9e21598928d970d94f0c80e6509 Mon Sep 17 00:00:00 2001 From: Terry Acker Date: Thu, 25 Aug 2016 12:01:47 -0400 Subject: [PATCH 2/8] No rally link cray cray hover, updated copy --- .../landing/components/Landing/Landing.js | 2 +- .../components/UserDashboard/UserDashboard.js | 19 ++++++++++++++++++- .../userDashboard/helpers/getRallyLink.js | 7 ++++--- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/universal/modules/landing/components/Landing/Landing.js b/src/universal/modules/landing/components/Landing/Landing.js index 02620b169df..aadc011860b 100644 --- a/src/universal/modules/landing/components/Landing/Landing.js +++ b/src/universal/modules/landing/components/Landing/Landing.js @@ -40,7 +40,7 @@ export default class Landing extends Component {

Action

- The rhythm of meaningful work. + An open-source tool for adaptive teams.