Skip to content

Commit 8b409fe

Browse files
committed
Adds Blockchain community
1 parent 1da39f3 commit 8b409fe

File tree

25 files changed

+621
-2
lines changed

25 files changed

+621
-2
lines changed

.exchange-rates.cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"disclaimer":"Usage subject to terms: https://openexchangerates.org/terms","license":"https://openexchangerates.org/license","timestamp":1505134800,"base":"USD","rates":{"AED":3.673158,"AFN":68.511133,"ALL":111.35,"AMD":477.717813,"ANG":1.779944,"AOA":165.9215,"ARS":17.239763,"AUD":1.243978,"AWG":1.796754,"AZN":1.7,"BAM":1.62815,"BBD":2,"BDT":82.092054,"BGN":1.631036,"BHD":0.376993,"BIF":1750,"BMD":1,"BND":1.344267,"BOB":6.973965,"BRL":3.086607,"BSD":1,"BTC":0.0002386114,"BTN":63.913767,"BWP":10.03885,"BYN":1.921964,"BZD":2.015447,"CAD":1.21299,"CDF":1555,"CHF":0.952766,"CLF":0.02301,"CLP":618.485,"CNH":6.536801,"CNY":6.528665,"COP":2902.64,"CRC":577.026761,"CUC":1,"CUP":25.5,"CVE":92.05,"CZK":21.76955,"DJF":178.97,"DKK":6.207786,"DOP":47.643397,"DZD":110.8235,"EGP":17.6337,"ERN":15.34,"ETB":23.55,"EUR":0.834407,"FJD":2.028748,"FKP":0.757815,"GBP":0.757815,"GEL":2.45715,"GGP":0.757815,"GHS":4.435,"GIP":0.757815,"GMD":46.125,"GNF":9000,"GTQ":7.293029,"GYD":208.000254,"HKD":7.812632,"HNL":23.38763,"HRK":6.195598,"HTG":63.397325,"HUF":255.4334,"IDR":13182.206593,"ILS":3.5252,"IMP":0.757815,"INR":63.915,"IQD":1182.5,"IRR":33257,"ISK":106.204172,"JEP":0.757815,"JMD":127.892089,"JOD":0.709001,"JPY":108.73196875,"KES":102.696847,"KGS":68.5396,"KHR":4050,"KMF":410.1,"KPW":900,"KRW":1134.1025,"KWD":0.301153,"KYD":0.83319,"KZT":337.774131,"LAK":8305,"LBP":1506.262443,"LKR":152.610797,"LRD":117.014732,"LSL":12.895386,"LYD":1.36,"MAD":9.327672,"MDL":17.689816,"MGA":2940,"MKD":51.379806,"MMK":1352.3,"MNT":2437.166667,"MOP":8.046219,"MRO":364.5,"MUR":33.1095,"MVR":15.400126,"MWK":725.55,"MXN":17.658869,"MYR":4.200006,"MZN":61.499992,"NAD":12.90375,"NGN":359.640566,"NIO":30.425,"NOK":7.821985,"NPR":102.225849,"NZD":1.376338,"OMR":0.384969,"PAB":1,"PEN":3.232746,"PGK":3.194117,"PHP":50.896,"PKR":105.375465,"PLN":3.544657,"PYG":5656.65,"QAR":3.702492,"RON":3.836965,"RSD":99.696,"RUB":57.19,"RWF":835.5,"SAR":3.750306,"SBD":7.73036,"SCR":13.758514,"SDG":6.6775,"SEK":7.996179,"SGD":1.344762,"SHP":0.757815,"SLL":7537.5,"SOS":588,"SRD":7.438,"SSP":125.3494,"STD":20403.5,"SVC":8.748987,"SYP":514.98999,"SZL":12.899107,"THB":33.1295,"TJS":8.808573,"TMT":3.499986,"TND":2.447001,"TOP":2.212146,"TRY":3.404051,"TTD":6.77901,"TWD":30.030855,"TZS":2241.2,"UAH":26.010855,"UGX":3637.566138,"USD":1,"UYU":28.78556,"UZS":8105,"VEF":10.03565,"VND":22744.1,"VUV":103.187,"WST":2.495256,"XAF":547.334931,"XAG":0.05625901,"XAU":0.00075031,"XCD":2.70255,"XDR":0.69897,"XOF":547.334931,"XPD":0.00106784,"XPF":99.571208,"XPT":0.00100201,"YER":250.275,"ZAR":12.927287,"ZMW":9.257589,"ZWL":322.355011}}
1+
{"disclaimer":"Usage subject to terms: https://openexchangerates.org/terms","license":"https://openexchangerates.org/license","timestamp":1505206800,"base":"USD","rates":{"AED":3.673058,"AFN":68.72675,"ALL":111.531389,"AMD":480.095,"ANG":1.788001,"AOA":165.9215,"ARS":17.1325,"AUD":1.245465,"AWG":1.7965,"AZN":1.7,"BAM":1.635829,"BBD":2,"BDT":82.462679,"BGN":1.634334,"BHD":0.377119,"BIF":1751.4,"BMD":1,"BND":1.345455,"BOB":7.005362,"BRL":3.102798,"BSD":1,"BTC":0.000231975022,"BTN":63.935477,"BWP":10.083696,"BYN":1.930583,"BZD":2.0245,"CAD":1.211814,"CDF":1562.881563,"CHF":0.956875,"CLF":0.02315,"CLP":623.059006,"CNH":6.542497,"CNY":6.53625,"COP":2918.68,"CRC":580.015,"CUC":1,"CUP":25.5,"CVE":92.45,"CZK":21.826572,"DJF":178.77,"DKK":6.221366,"DOP":47.855552,"DZD":111.171,"EGP":17.6613,"ERN":15.33154,"ETB":23.707367,"EUR":0.83627,"FJD":2.006049,"FKP":0.75369,"GBP":0.75369,"GEL":2.4577,"GGP":0.75369,"GHS":4.434224,"GIP":0.75369,"GMD":46.1,"GNF":9003.55,"GTQ":7.325494,"GYD":208.905526,"HKD":7.8137,"HNL":23.491844,"HRK":6.223419,"HTG":63.692126,"HUF":256.551,"IDR":13191.943326,"ILS":3.528092,"IMP":0.75369,"INR":64.005,"IQD":1172.1,"IRR":33276.5,"ISK":106.53,"JEP":0.75369,"JMD":128.468141,"JOD":0.708801,"JPY":109.71247508,"KES":102.801361,"KGS":68.539494,"KHR":4067.5,"KMF":411.164675,"KPW":900,"KRW":1128.43,"KWD":0.301407,"KYD":0.836945,"KZT":339.21,"LAK":8322.55,"LBP":1509.637443,"LKR":153.361485,"LRD":117.002232,"LSL":12.9536,"LYD":1.358616,"MAD":9.338,"MDL":17.689816,"MGA":2962.75,"MKD":51.525,"MMK":1358.4,"MNT":2441.517475,"MOP":8.082378,"MRO":365.575,"MUR":33.2325,"MVR":15.409873,"MWK":725.003277,"MXN":17.729,"MYR":4.206454,"MZN":61.168857,"NAD":12.9536,"NGN":361.08,"NIO":30.350097,"NOK":7.847559,"NPR":102.688849,"NZD":1.368246,"OMR":0.384984,"PAB":1,"PEN":3.228906,"PGK":3.208312,"PHP":50.915,"PKR":105.83,"PLN":3.554991,"PYG":5681.9,"QAR":3.714996,"RON":3.846093,"RSD":99.89435,"RUB":57.54745,"RWF":834.34,"SAR":3.7504,"SBD":7.766352,"SCR":13.54984,"SDG":6.70546,"SEK":7.975132,"SGD":1.345969,"SHP":0.75369,"SLL":7537.841265,"SOS":579.965,"SRD":7.438,"SSP":125.2496,"STD":20473.244362,"SVC":8.788235,"SYP":515,"SZL":12.95736,"THB":33.113,"TJS":8.848051,"TMT":3.50998,"TND":2.419595,"TOP":2.210602,"TRY":3.432433,"TTD":6.809439,"TWD":30.034,"TZS":2237.8,"UAH":26.128295,"UGX":3610.7,"USD":1,"UYU":28.939864,"UZS":8133.25,"VEF":10.11485,"VND":22742.153404,"VUV":103.323044,"WST":2.498181,"XAF":548.557367,"XAG":0.05619578,"XAU":0.00075386,"XCD":2.70255,"XDR":0.701262,"XOF":548.557367,"XPD":0.00106501,"XPF":99.793594,"XPT":0.00101318,"YER":250.294142,"ZAR":12.948425,"ZMW":9.300326,"ZWL":322.355011}}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,14 @@ exports[`Matches shallow shapshot 1`] = `
240240
Separate Topcoder Communities
241241
</h3>
242242
<ul>
243+
<li>
244+
<Link
245+
replace={false}
246+
to="/community/blockchain/home"
247+
>
248+
Blockchain Community
249+
</Link>
250+
</li>
243251
<li>
244252
<Link
245253
replace={false}
Loading
234 KB
Loading
Loading
Loading
16.1 KB
Loading
27 KB
Loading
23.4 KB
Loading
85.2 KB
Loading
Loading
Loading
Loading
Lines changed: 29 additions & 0 deletions
Loading
80.2 KB
Loading
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"challengeFilter": {
3+
"groupIds": ["20000010"]
4+
},
5+
"communityId": "blockchain",
6+
"communityName": "Blockchain",
7+
"communitySelector": [{
8+
"label": "Blockchain Community",
9+
"value": "1"
10+
}, {
11+
"label": "Topcoder Public Community",
12+
"redirect": "https://www.topcoder.com",
13+
"value": "2"
14+
}],
15+
"groupId": "20000010",
16+
"logos": [{
17+
"img": "/themes/blockchain/logo_topcoder_with_name.svg",
18+
"url": "https://www.topcoder.com"
19+
}],
20+
"menuItems": [
21+
{
22+
"title": "Home",
23+
"url": "."
24+
}, {
25+
"title": "Learn",
26+
"url": "learn"
27+
}, {
28+
"title": "Challenges",
29+
"url": "challenges"
30+
}
31+
],
32+
"leaderboardApiUrl": "https://api.topcoder.com/v4/looks/458/run/json/",
33+
"newsFeed": "http://www.topcoder.com/feed",
34+
"description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore.",
35+
"image":"1.jpg"
36+
}

src/shared/components/Content/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ export default function Content() {
9696

9797
<h3>Separate Topcoder Communities</h3>
9898
<ul>
99+
<li>
100+
<Link to="/community/blockchain/home">Blockchain Community</Link>
101+
</li>
99102
<li>
100103
<Link to="/community/community-2/home">Community 2</Link>
101104
</li>
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
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 CommunityStats from 'containers/tc-communities/CommunityStats';
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="Topcoder Blockchain Community"
32+
text="This is the place where Topcoder members can come to focus on work that involves Blockchain."
33+
link={{
34+
title: 'Compete Now',
35+
url: 'challenges',
36+
}}
37+
imageSrc="/themes/blockchain/community-hero.jpg"
38+
/>
39+
40+
<CommunityStats />
41+
42+
<JoinCommunity />
43+
44+
<Section
45+
theme={{
46+
container: style.linksContainer,
47+
}}
48+
>
49+
<div>
50+
<ImageText
51+
title="Ramp Up"
52+
text="Learn about what we're working on, our environments, procedures, etc. If you want to get involved in Topcoder projects, this is a good place to start. We run challenges and tasks constantly, so we're always looking for help."
53+
link={{
54+
title: 'Start Learning',
55+
url: 'learn',
56+
}}
57+
imageSrc="/themes/blockchain/home/image-text-learn.jpg"
58+
/>
59+
<ImageText
60+
title="Get Involved"
61+
text="Whether you're a copilot, designer, developer, or data scientist...we want you involved. Topcoder is one of the biggest customers of our own platform, so there is never a shortage of interesting things to work on."
62+
link={{
63+
title: 'Start Contributing',
64+
url: 'challenges',
65+
}}
66+
imageSrc="/themes/blockchain/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="Learn about our platform"
79+
text="There are many aspects to our platform...something for everyone."
80+
link={{
81+
title: 'Browse resources',
82+
url: 'learn',
83+
}}
84+
/>
85+
<ResourceCard
86+
icon={IconMedal}
87+
title="What's in it for me?"
88+
text="Topcoder rewards participants with cash. The more deliverables you produce, the more you can make."
89+
link={{
90+
title: 'Learn about rewards',
91+
url: 'leaderboard',
92+
}}
93+
/>
94+
<ResourceCard
95+
icon={IconRocket}
96+
title="Participate in many ways"
97+
text="We're always running challenges and tasks. Check back every day to see what's new."
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 Topcoder Product Development Updates"
109+
text="Don’t miss out opportunities to work on the Topcoder Platform!"
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+
};
124+
Lines changed: 33 additions & 0 deletions
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-xs {
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-xs {
23+
padding: 40px 0;
24+
}
25+
}
26+
27+
.linksContainer {
28+
padding: 24px 0 60px;
29+
30+
@include xxs-to-xs {
31+
padding: 0;
32+
}
33+
}

0 commit comments

Comments
 (0)