Skip to content

Adds Taskforce community #91

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

Merged
merged 1 commit into from
Jul 5, 2017
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,14 @@ exports[`Matches shallow shapshot 1`] = `
Demo Expert Community
</Link>
</li>
<li>
<Link
replace={false}
to="/community/taskforce/home"
>
Taskforce community
</Link>
</li>
<li>
<Link
replace={false}
Expand Down
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 src/assets/themes/taskforce/home/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 src/assets/themes/taskforce/home/news-01.jpg
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 src/assets/themes/taskforce/home/news-02.jpg
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 src/assets/themes/taskforce/home/news-03.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 src/assets/themes/taskforce/learn/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions src/assets/themes/taskforce/logo_topcoder_with_name.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 src/assets/themes/taskforce/subscribe-bg.jpg
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 src/assets/themes/taskforce/wipro-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions src/server/tc-communities/taskforce/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"authorizedGroupIds": [
"20000003"
],
"challengeFilter": {
"groupIds": ["20000003"]
},
"communityId": "taskforce",
"communityName": "Taskforce",
"communitySelector": [{
"label": "Taskforce",
"value": "1"
}, {
"label": "Cognitive Community",
"redirect": "http://cognitive.topcoder.com/",
"value": "2"
}, {
"label": "iOS Community",
"redirect": "https://ios.topcoder.com/",
"value": "3"
}],
"groupId": "20000003",
"leaderboardApiUrl": "https://api.topcoder.com/v4/looks/458/run/json/",
"logos": [
"/themes/taskforce/wipro-logo.png",
"/themes/taskforce/logo_topcoder_with_name.svg"
],
"menuItems": [
{
"title": "Home",
"url": "."
}, {
"title": "Learn",
"url": "learn"
}, {
"title": "Challenges",
"url": "challenges"
}, {
"title": "Leaderboard",
"url": "leaderboard"
}
],
"newsFeed": "http://www.topcoder.com/feed"
}
3 changes: 3 additions & 0 deletions src/shared/components/examples/Content/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ export default function Content() {
<li>
<Link to="/community/demo-expert/home">Demo Expert Community</Link>
</li>
<li>
<Link to="/community/taskforce/home">Taskforce community</Link>
</li>
<li>
<Link to="/community/tc-prod-dev/home">Topcoder Product
Development</Link>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
/**
* Static implementation of Home page for Wipro 2 community
*
* It hardcodes data which is passed to dummy components,
* thus we disable max-len eslint rule for this file
*/
/* eslint-disable max-len */

import React from 'react';
import Section from 'components/tc-communities/Section';
import Banner from 'components/tc-communities/Banner';
import ImageText from 'components/tc-communities/ImageText';
import ResourceCard from 'components/tc-communities/ResourceCard';
import NewsletterSignup from 'components/tc-communities/NewsletterSignup';
import NewsSection from 'components/tc-communities/NewsSection';
import PT from 'prop-types';

import GroupStats from 'containers/tc-communities/GroupStats';
import JoinCommunity from 'containers/tc-communities/JoinCommunity';

import IconRocket from '../../../../../../assets/images/tc-communities/rocket.svg';
import IconNetwork from '../../../../../../assets/images/tc-communities/network.svg';
import IconMedal from '../../../../../../assets/images/tc-communities/medal.svg';

import style from './style.scss';

export default function Home(props) {
return (
<main>
<Banner
title="Wipro Crowd"
text="Wipro's Hybrid Crowd gives our vast ecosystem of customers and partners options to access new range of skills that provide new value services and efficiency options all over the world."
link={{
title: 'Compete Now',
url: 'challenges',
}}
imageSrc="/themes/wipro/home/banner.jpg"
/>

<GroupStats />

<JoinCommunity />

<Section
theme={{
container: style.linksContainer,
}}
>
<div>
<ImageText
title="Improve Your Skills"
text="Our continuously evolving structured learning paths, constantly abreast of the latest, tailored for employees to deepen your knowledge, infuses important software capabilities that are industry specific and help you get the skills you need to succeed."
link={{
title: 'Start Learning',
url: 'learn',
}}
imageSrc="/themes/wipro/home/image-text-learn.jpg"
/>
<ImageText
title="Get Involved"
text="Rewards program is intended to celebrate and recognize your contribution. Rewards for project contributions are given using ‘Reward Points’. Points earned translate into badges. Quarterly rewards are given away to the toppers of all categories."
link={{
title: 'Start Earning',
url: 'challenges',
}}
imageSrc="/themes/wipro/home/image-text-do.jpg"
/>
</div>
</Section>

<Section
theme={{
container: style.resourcesContainer,
}}
>
<ResourceCard
icon={IconNetwork}
title="Up Your iOS and Swift Development Skills"
text="Pellentesque non dignissim neque. Nunc vel rhoncus nibh, ut tincidunt turpis. Integer ac enim pellentesque, adipiscing metus id, pharetra odio."
link={{
title: 'Browse resources',
url: 'learn',
}}
/>
<ResourceCard
icon={IconMedal}
title="Take the First Steps to Stand Out in the Community"
text="Donec bibendum nunc sit amet tortor scelerisque luctus et sit amet mauris. Suspendisse felis sem, condimentum ullamcorper est sit amet, molestie"
link={{
title: 'Learn about badges',
url: 'leaderboard',
}}
/>
<ResourceCard
icon={IconRocket}
title="Compete in Challenges and Win Cash"
text="Suspendisse felis sem, condimentum ullamcorper est sit amet, molestie mollis nulla. Etiam lorem orci, consequat ac magna quis, facilisis"
link={{
title: 'Browse challenges',
url: 'challenges',
}}
/>
</Section>

<NewsSection news={props.news} />

<NewsletterSignup
title="Sign up for our newsletter"
text="Don’t miss out on the latest Topcoder IOS challenges and information!"
imageSrc="/themes/wipro/subscribe-bg.jpg"
/>

</main>
);
}

Home.defaultProps = {
news: [],
};

Home.propTypes = {
news: PT.arrayOf(PT.shape()),
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@import '~styles/tc-styles';

.statsContainer {
padding: 0;
}

.statsContent {
border-bottom: 1px solid #ddd;
padding: 43px 38px 50px;

@include xxs-to-sm {
display: flex;
justify-content: space-around;
padding: 30px 12px 32px;
}
}

.resourcesContainer {
background-color: #fafafa;
padding: 70px 0;

@include xxs-to-sm {
padding: 40px 0;
}
}

.linksContainer {
padding: 24px 0 60px;

@include xxs-to-sm {
padding: 0;
}
}
Loading