Skip to content

Commit 761c7de

Browse files
committed
Adds Taskforce community
Available at the endpoint /community/taskforce and `taskforce` subdomain Authorization is controlled by the group ID 20000003 Fixes #90
1 parent 3f7f7b6 commit 761c7de

File tree

24 files changed

+499
-3
lines changed

24 files changed

+499
-3
lines changed

__tests__/shared/components/examples/__snapshots__/Content.jsx.snap

+8
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ exports[`Matches shallow shapshot 1`] = `
181181
Demo Expert Community
182182
</Link>
183183
</li>
184+
<li>
185+
<Link
186+
replace={false}
187+
to="/community/taskforce/home"
188+
>
189+
Taskforce community
190+
</Link>
191+
</li>
184192
<li>
185193
<Link
186194
replace={false}
Loading
234 KB
Loading
Loading
Loading
16.1 KB
Loading
27 KB
Loading
23.4 KB
Loading
Loading
85.2 KB
Loading
25.5 KB
Loading
28.6 KB
Loading
23.6 KB
Loading
Loading
80.2 KB
Loading
6.76 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"authorizedGroupIds": [
3+
"20000003"
4+
],
5+
"challengeFilter": {
6+
"groupIds": ["20000003"]
7+
},
8+
"communityId": "taskforce",
9+
"communityName": "Taskforce",
10+
"communitySelector": [{
11+
"label": "Taskforce",
12+
"value": "1"
13+
}, {
14+
"label": "Cognitive Community",
15+
"redirect": "http://cognitive.topcoder.com/",
16+
"value": "2"
17+
}, {
18+
"label": "iOS Community",
19+
"redirect": "https://ios.topcoder.com/",
20+
"value": "3"
21+
}],
22+
"groupId": "20000003",
23+
"leaderboardApiUrl": "https://api.topcoder.com/v4/looks/458/run/json/",
24+
"logos": [
25+
"/themes/taskforce/wipro-logo.png",
26+
"/themes/taskforce/logo_topcoder_with_name.svg"
27+
],
28+
"menuItems": [
29+
{
30+
"title": "Home",
31+
"url": "."
32+
}, {
33+
"title": "Learn",
34+
"url": "learn"
35+
}, {
36+
"title": "Challenges",
37+
"url": "challenges"
38+
}, {
39+
"title": "Leaderboard",
40+
"url": "leaderboard"
41+
}
42+
],
43+
"newsFeed": "http://www.topcoder.com/feed"
44+
}

src/shared/components/examples/Content/index.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ export default function Content() {
8989
<li>
9090
<Link to="/community/demo-expert/home">Demo Expert Community</Link>
9191
</li>
92+
<li>
93+
<Link to="/community/taskforce/home">Taskforce community</Link>
94+
</li>
9295
<li>
9396
<Link to="/community/tc-prod-dev/home">Topcoder Product
9497
Development</Link>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
/**
2+
* Static implementation of Home page for Wipro 2 community
3+
*
4+
* It hardcodes data which is passed to dummy components,
5+
* thus we disable max-len eslint rule for this file
6+
*/
7+
/* eslint-disable max-len */
8+
9+
import React from 'react';
10+
import Section from 'components/tc-communities/Section';
11+
import Banner from 'components/tc-communities/Banner';
12+
import ImageText from 'components/tc-communities/ImageText';
13+
import ResourceCard from 'components/tc-communities/ResourceCard';
14+
import NewsletterSignup from 'components/tc-communities/NewsletterSignup';
15+
import NewsSection from 'components/tc-communities/NewsSection';
16+
import PT from 'prop-types';
17+
18+
import GroupStats from 'containers/tc-communities/GroupStats';
19+
import JoinCommunity from 'containers/tc-communities/JoinCommunity';
20+
21+
import IconRocket from '../../../../../../assets/images/tc-communities/rocket.svg';
22+
import IconNetwork from '../../../../../../assets/images/tc-communities/network.svg';
23+
import IconMedal from '../../../../../../assets/images/tc-communities/medal.svg';
24+
25+
import style from './style.scss';
26+
27+
export default function Home(props) {
28+
return (
29+
<main>
30+
<Banner
31+
title="Wipro Crowd"
32+
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."
33+
link={{
34+
title: 'Compete Now',
35+
url: 'challenges',
36+
}}
37+
imageSrc="/themes/wipro/home/banner.jpg"
38+
/>
39+
40+
<GroupStats />
41+
42+
<JoinCommunity />
43+
44+
<Section
45+
theme={{
46+
container: style.linksContainer,
47+
}}
48+
>
49+
<div>
50+
<ImageText
51+
title="Improve Your Skills"
52+
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."
53+
link={{
54+
title: 'Start Learning',
55+
url: 'learn',
56+
}}
57+
imageSrc="/themes/wipro/home/image-text-learn.jpg"
58+
/>
59+
<ImageText
60+
title="Get Involved"
61+
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."
62+
link={{
63+
title: 'Start Earning',
64+
url: 'challenges',
65+
}}
66+
imageSrc="/themes/wipro/home/image-text-do.jpg"
67+
/>
68+
</div>
69+
</Section>
70+
71+
<Section
72+
theme={{
73+
container: style.resourcesContainer,
74+
}}
75+
>
76+
<ResourceCard
77+
icon={IconNetwork}
78+
title="Up Your iOS and Swift Development Skills"
79+
text="Pellentesque non dignissim neque. Nunc vel rhoncus nibh, ut tincidunt turpis. Integer ac enim pellentesque, adipiscing metus id, pharetra odio."
80+
link={{
81+
title: 'Browse resources',
82+
url: 'learn',
83+
}}
84+
/>
85+
<ResourceCard
86+
icon={IconMedal}
87+
title="Take the First Steps to Stand Out in the Community"
88+
text="Donec bibendum nunc sit amet tortor scelerisque luctus et sit amet mauris. Suspendisse felis sem, condimentum ullamcorper est sit amet, molestie"
89+
link={{
90+
title: 'Learn about badges',
91+
url: 'leaderboard',
92+
}}
93+
/>
94+
<ResourceCard
95+
icon={IconRocket}
96+
title="Compete in Challenges and Win Cash"
97+
text="Suspendisse felis sem, condimentum ullamcorper est sit amet, molestie mollis nulla. Etiam lorem orci, consequat ac magna quis, facilisis"
98+
link={{
99+
title: 'Browse challenges',
100+
url: 'challenges',
101+
}}
102+
/>
103+
</Section>
104+
105+
<NewsSection news={props.news} />
106+
107+
<NewsletterSignup
108+
title="Sign up for our newsletter"
109+
text="Don’t miss out on the latest Topcoder IOS challenges and information!"
110+
imageSrc="/themes/wipro/subscribe-bg.jpg"
111+
/>
112+
113+
</main>
114+
);
115+
}
116+
117+
Home.defaultProps = {
118+
news: [],
119+
};
120+
121+
Home.propTypes = {
122+
news: PT.arrayOf(PT.shape()),
123+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
@import '~styles/tc-styles';
2+
3+
.statsContainer {
4+
padding: 0;
5+
}
6+
7+
.statsContent {
8+
border-bottom: 1px solid #ddd;
9+
padding: 43px 38px 50px;
10+
11+
@include xxs-to-sm {
12+
display: flex;
13+
justify-content: space-around;
14+
padding: 30px 12px 32px;
15+
}
16+
}
17+
18+
.resourcesContainer {
19+
background-color: #fafafa;
20+
padding: 70px 0;
21+
22+
@include xxs-to-sm {
23+
padding: 40px 0;
24+
}
25+
}
26+
27+
.linksContainer {
28+
padding: 24px 0 60px;
29+
30+
@include xxs-to-sm {
31+
padding: 0;
32+
}
33+
}

0 commit comments

Comments
 (0)