Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE UNTIL FEB 15 - Removed code from before Feb 15 Updates #206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 1 addition & 10 deletions src/core/modules/categories.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,15 @@ const categories = [
showNameCatPage: true,
},
{
// TODO: REMOVE THIS CODE AFTER Feb 15
id: 6,
name: 'VALENTINE',
description: 'Valentine\'s Day Picks',
imageUrl: '/images/categories/Cat_Valentine_2x.jpg',
hiddenInNavigation: true,
showNameCatPage: false,
},
{
id: 7,
name: 'WEEKNIGHT',
description: 'Weeknight Favorites',
imageUrl: '/images/categories/Cat_Weeknights_2x.jpg',
hiddenInNavigation: true,
showNameCatPage: false,
},
{
id: 8,
id: 7,
name: 'SPIN',
description: 'Classics Revisited',
imageUrl: '/images/categories/Cat_Spin_2x.jpg',
Expand Down
72 changes: 20 additions & 52 deletions src/pages/home/home-page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// libs
import React from 'react';
import _ from 'lodash';
import moment from 'moment';

// components
import ActionBlock from './action-block';
Expand All @@ -12,57 +11,26 @@ import Icon from 'ui/icon';
// styles
import styles from './home-page.css';

const timeTarget = moment('2017-02-15');
const timeNow = moment();

let mainBlocks = [];

if (timeTarget > timeNow) {
// before timeTarget
// TODO: Remove this block after 2/15
mainBlocks = [
{
imageUrl: '/images/home-page/Home_Page_Valentines.jpg',
description: '',
title: 'Dinners In That Feel Like Nights Out',
action: { title: 'Shop Now', link: '/VALENTINE' },
},
{
imageUrl: '/images/home-page/Home_Page_Kid_2x.jpg',
description: 'Under $5 Per Entrée',
title: 'Weeknight Favorites',
action: { title: 'Shop Now', link: '/WEEKNIGHT' },
},
{
imageUrl: '/images/home-page/Home_Page_EggRolls.jpg',
description: 'Dishes you know and love, revisited with unique and delicious twists',
title: 'A New Spin On The Classics',
action: { title: 'Shop Now', link: '/SPIN' },
},
];
} else {
// on and after timeTarget
mainBlocks = [
{
imageUrl: '/images/home-page/Home_Page_Kid_2x.jpg',
description: 'Under $5 Per Entrée',
title: 'Weeknight Favorites',
action: { title: 'Shop Now', link: '/WEEKNIGHT' },
},
{
imageUrl: '/images/home-page/Home_Page_EggRolls.jpg',
description: 'Dishes you know and love, revisited with unique and delicious twists',
title: 'A New Spin On The Classics',
action: { title: 'Shop Now', link: '/SPIN' },
},
{
imageUrl: '/images/home-page/Home_Page_TriedTrue-2x.jpg',
description: '',
title: 'Tried and True Favorites',
action: { title: 'Shop Now', link: '/FAVORITES' },
},
];
}
const mainBlocks = [
{
imageUrl: '/images/home-page/Home_Page_Kid_2x.jpg',
description: 'Under $5 Per Entrée',
title: 'Weeknight Favorites',
action: { title: 'Shop Now', link: '/WEEKNIGHT' },
},
{
imageUrl: '/images/home-page/Home_Page_EggRolls.jpg',
description: 'Dishes you know and love, revisited with unique and delicious twists',
title: 'A New Spin On The Classics',
action: { title: 'Shop Now', link: '/SPIN' },
},
{
imageUrl: '/images/home-page/Home_Page_TriedTrue-2x.jpg',
description: '',
title: 'Tried and True Favorites',
action: { title: 'Shop Now', link: '/FAVORITES' },
},
];

const instagramLinks = [
'https://www.instagram.com/p/BPvzneyhjGD',
Expand Down