Skip to content

Commit

Permalink
Add banners for weeks 4-7
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Revere committed Dec 5, 2017
1 parent 14b0719 commit da6ebc6
Show file tree
Hide file tree
Showing 13 changed files with 64 additions and 24 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions website/static/img/front-page/week04_dec2017.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/static/img/front-page/week04_dec2017_mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/static/img/front-page/week05_dec2017.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/static/img/front-page/week05_dec2017_mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/static/img/front-page/week06_dec2017.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/static/img/front-page/week06_dec2017_mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/static/img/front-page/week07_dec2017.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/static/img/front-page/week07_dec2017_mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 56 additions & 24 deletions website/static/js/home-page/donateBannerPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,76 @@ var currentDate = new Date();

var bannerOptions = [
{
startDate: new Date(2017, 10, 19),
endDate: new Date(2017, 10, 28),
startDate: new Date(2017, 10, 29),
endDate: new Date(2017, 11, 6),
imageLg: {
src:'/static/img/front-page/giving_tuesday_week01.png',
alt:'Things to look forward to: Thanksgiving Thursday, Black Friday, Cyber Monday, AND Giving Tuesday on ' +
'Tuesday, November 28th. Please make a gift to support the OSF tools you use and love.'
src:'/static/img/front-page/week03_dec2017.svg',
alt:'The Center for Open Science created the OSF and a suite of free products to advance the work of the ' +
'research community. If you value these tools, please make a gift to support COS’s efforts to improve and ' +
'scale these services. DONATE NOW! Image © Nestlé'
},
imageSm: {
src:'/static/img/front-page/giving_tuesday_week01_mobile.png',
alt:'Giving Tuesday is coming on Tuesday, November 28th. Please make a gift to support the OSF tools you ' +
'use and love.'
src:'/static/img/front-page/week03_dec2017_mobile.svg',
alt:'Support COS’s efforts to improve free products and advance the work of the research community. ' +
'Image © Nestlé'
},
}, {
startDate: new Date(2017, 10, 28),
endDate: new Date(2017, 10, 29),
startDate: new Date(2017, 11, 6),
endDate: new Date(2017, 11, 13),
imageLg: {
src:'/static/img/front-page/giving_tuesday_week02.png',
alt:'Happy Giving Tuesday! Please make a gift to support the OSF tools you use and love.'
src:'/static/img/front-page/week04_dec2017.svg',
alt:'Thousands of researchers use the OSF and its related services daily. If you value the OSF, make a ' +
'donation to support the Center for Open Science and its ongoing efforts to improve and advance these ' +
'public goods. Image © Pressmaster/Shutterstock'
},
imageSm: {
src:'/static/img/front-page/giving_tuesday_week02_mobile.png',
alt:'Happy Giving Tuesday! Please make a gift to support the OSF tools you use and love.'
src:'/static/img/front-page/week04_dec2017_mobile.svg',
alt:'Thousands of researchers use the OSF and its related services. Make a donation to support these ' +
'ongoing efforts. Image © Pressmaster/Shutterstock'
},
}, {
startDate: new Date(2017, 10, 29),
endDate: new Date(2017, 11, 6),
license: '© Nestlé',
startDate: new Date(2017, 11, 13),
endDate: new Date(2017, 11, 20),
imageLg: {
src:'/static/img/front-page/week03_dec2017.svg',
alt:'The Center for Open Science created the OSF and a suite of free products to advance the work of the ' +
'research community. If you value these tools, please make a gift to support COS’s efforts to improve and ' +
'scale these services. DONATE NOW!'
src:'/static/img/front-page/week05_dec2017.svg',
alt:'The Center for Open Science created the OSF and its related services as public goods. While these ' +
'services will always be free to use, they are not free to build, maintain, and improve. Please support the' +
' OSF and COS with a donation today. Image © joker1991/Shutterstock'
},
imageSm: {
src:'/static/img/front-page/week03_dec2017_mobile.svg',
alt:'Support COS’s efforts to improve free products and advance the work of the research community.'
src:'/static/img/front-page/week05_dec2017_mobile.svg',
alt:'The OSF will always be free to use, but it is not free to build, maintain, and improve. Give a gift' +
' today. Image © joker1991/Shutterstock'
},
},
}, {
startDate: new Date(2017, 11, 20),
endDate: new Date(2017, 11, 27),
imageLg: {
src:'/static/img/front-page/week06_dec2017.svg',
alt: 'The Center for Open Science launched the OSF with the goal of creating a service to support the ' +
'entire research cycle and remove barriers to accessing data. Support COS’s efforts to advance the work of' +
' researchers with a gift today! Image © angellodeco/Shutterstock'
},
imageSm: {
src:'/static/img/front-page/week06_dec2017_mobile.svg',
alt:'Support COS’s mission to create a service to support the entire research cycle. Image © ' +
'angellodeco/Shutterstock'
},
}, {
startDate: new Date(2017, 11, 27),
endDate: new Date(2018, 0, 4),
imageLg: {
src: '/static/img/front-page/week07_dec2017.svg',
alt: 'At the Center for Open Science, we envision a future in which ideas, processes, and outcomes of ' +
'research are free and open. COS relies on contributions to build the free products you use and love. Help' +
' make our vision a reality with a gift today. Image © Smithsonian Institution Archives'
},
imageSm: {
src: '/static/img/front-page/week07_dec2017_mobile.svg',
alt: 'Make a contribution to COS to build the free products you use and love. Image © Smithsonian ' +
'Institution Archives'
},
}
];

function pickBanner(bannerOptions, date) {
Expand Down

0 comments on commit da6ebc6

Please sign in to comment.