Skip to content

Commit 840a6ba

Browse files
committed
Adds tutorial videos to the TopGear's FAQ page
1 parent 3beed47 commit 840a6ba

File tree

7 files changed

+149
-1
lines changed

7 files changed

+149
-1
lines changed

package-lock.json

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"react-dom": "^15.6.1",
7979
"react-dropdown": "^1.2.1",
8080
"react-hot-loader": "^3.0.0-beta.6",
81+
"react-player": "^0.20.0",
8182
"react-redux": "^5.0.3",
8283
"react-router-dom": "^4.0.0",
8384
"react-select": "^1.0.0-rc.3",
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* ArticleCard component
3+
*/
4+
5+
import Player from 'react-player';
6+
import PT from 'prop-types';
7+
import React from 'react';
8+
import { themr } from 'react-css-themr';
9+
import defaultStyle from './style.scss';
10+
11+
function ArticleCard(props) {
12+
const { title, theme, url } = props;
13+
return (
14+
<div className={theme.container}>
15+
<Player className={theme.video} url={url} controls />
16+
<div className={theme.content}>
17+
<h3 className={theme.title}>{title}</h3>
18+
</div>
19+
</div>
20+
);
21+
}
22+
23+
ArticleCard.propTypes = {
24+
title: PT.string.isRequired,
25+
theme: PT.shape({
26+
container: PT.string,
27+
content: PT.string,
28+
title: PT.string,
29+
video: PT.string,
30+
}).isRequired,
31+
url: PT.string.isRequired,
32+
};
33+
34+
export default themr('tcCommunities-ArticleCard', defaultStyle)(ArticleCard);
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
@import '~styles/tc-styles';
2+
3+
.container {
4+
display: block;
5+
background: #fff;
6+
border-radius: 4px;
7+
box-shadow: 0 6px 20px 0 rgba(101, 101, 112, 0.2);
8+
margin: 0 6px 24px;
9+
padding-bottom: 24px;
10+
width: 300px;
11+
12+
@include sm {
13+
width: 220px;
14+
}
15+
16+
@include xxs-to-xs {
17+
height: auto;
18+
margin: 0 15px;
19+
padding-bottom: 30px;
20+
width: auto;
21+
22+
& + & {
23+
margin-top: 30px;
24+
}
25+
}
26+
}
27+
28+
.content {
29+
padding: 0 12px;
30+
text-align: center;
31+
}
32+
33+
.title {
34+
color: #394146;
35+
font: 600 20px/150% 'Open Sans';
36+
margin-top: 20px;
37+
max-height: 64px;
38+
overflow: hidden;
39+
text-overflow: ellipsis;
40+
41+
@include sm {
42+
font-size: 16px;
43+
}
44+
}
45+
46+
.video {
47+
height: auto !important;
48+
width: 100% !important;
49+
}

src/shared/components/tc-communities/communities/wipro/FAQ/index.jsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import React from 'react';
1010
// import { Link } from 'react-router-dom';
1111
import Section from 'components/tc-communities/Section';
12+
import VideoCard from 'components/tc-communities/VideoCard';
1213
/*
1314
import Accordion from 'components/tc-communities/Accordion/Accordion';
1415
import AccordionItem from 'components/tc-communities/Accordion/AccordionItem';
@@ -67,6 +68,34 @@ export default function Learn() {
6768
</AccordionItem>
6869
</Accordion>
6970
</Section>
71+
<Section
72+
title="Tutorials"
73+
theme={{
74+
content: style.tutorialsContent,
75+
title: style.tutorialsTitle,
76+
}}
77+
>
78+
<VideoCard
79+
title="Introduction"
80+
url="https://drive.google.com/uc?id=0B3y3SEA9cIEkWmZVb2pCcFB4emM"
81+
/>
82+
<VideoCard
83+
title="Registration"
84+
url="https://drive.google.com/uc?id=0B3y3SEA9cIEkNExxVlhnQ0ZNT2c"
85+
/>
86+
<VideoCard
87+
title="Challenge Navigation"
88+
url="https://drive.google.com/uc?id=0B3y3SEA9cIEkcjNvUnV1ajN2clE"
89+
/>
90+
<VideoCard
91+
title="Joining a Challenge"
92+
url="https://drive.google.com/uc?id=0B3y3SEA9cIEkYzA1U0RhN2Rscnc"
93+
/>
94+
<VideoCard
95+
title="Submission"
96+
url="https://drive.google.com/uc?id=0B3y3SEA9cIEkdm9maXpZQ3FGa00"
97+
/>
98+
</Section>
7099
</main>
71100
</ThemeProvider>
72101
);

src/shared/components/tc-communities/communities/wipro/FAQ/style.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,12 @@
132132
font-weight: bold;
133133
}
134134
}
135+
136+
.tutorialsTitle {
137+
padding-top: 0;
138+
}
139+
140+
.tutorialsContent {
141+
flex-wrap: wrap;
142+
justify-content: center;
143+
}
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":1503496800,"base":"USD","rates":{"AED":3.672973,"AFN":68.8825,"ALL":112.25,"AMD":478.572298,"ANG":1.7795,"AOA":165.9205,"ARS":17.1851,"AUD":1.267203,"AWG":1.795504,"AZN":1.7,"BAM":1.6581,"BBD":2,"BDT":81.228683,"BGN":1.658254,"BHD":0.37704,"BIF":1725,"BMD":1,"BND":1.362404,"BOB":6.972833,"BRL":3.160475,"BSD":1,"BTC":0.000236411194,"BTN":64.116224,"BWP":10.222107,"BYN":1.930945,"BZD":2.015086,"CAD":1.257895,"CDF":1600,"CHF":0.965674,"CLF":0.02387,"CLP":641.4,"CNH":6.66656,"CNY":6.6611,"COP":2989.79,"CRC":576.22,"CUC":1,"CUP":25.5,"CVE":94.1,"CZK":22.152921,"DJF":178.57,"DKK":6.304009,"DOP":47.131,"DZD":109.95,"EGP":17.74,"ERN":15.345659,"ETB":23.258364,"EUR":0.847586,"FJD":2.022499,"FKP":0.781767,"GBP":0.781767,"GEL":2.394275,"GGP":0.781767,"GHS":4.41,"GIP":0.781767,"GMD":46.125,"GNF":8887.6,"GTQ":7.27135,"GYD":207.830851,"HKD":7.826028,"HNL":23.375691,"HRK":6.2792,"HTG":64.461254,"HUF":256.078333,"IDR":13350.75345,"ILS":3.614304,"IMP":0.781767,"INR":64.0644,"IQD":1167.65,"IRR":32859,"ISK":107.41125,"JEP":0.781767,"JMD":127.802183,"JOD":0.709001,"JPY":109.1921,"KES":103.195,"KGS":68.632592,"KHR":4095.75,"KMF":419.219527,"KPW":900,"KRW":1130.94,"KWD":0.301912,"KYD":0.833082,"KZT":333.779041,"LAK":8285.55,"LBP":1507.75,"LKR":152.731919,"LRD":115.005853,"LSL":13.23556,"LYD":1.368765,"MAD":9.424201,"MDL":17.915302,"MGA":2952.5,"MKD":52.2585,"MMK":1366.36006,"MNT":2437.670874,"MOP":8.058161,"MRO":364.9,"MUR":33.226,"MVR":15.450233,"MWK":725.61,"MXN":17.74495,"MYR":4.278534,"MZN":60.994761,"NAD":13.26125,"NGN":361.5,"NIO":29.915408,"NOK":7.888925,"NPR":102.55,"NZD":1.386174,"OMR":0.384985,"PAB":1,"PEN":3.238987,"PGK":3.180999,"PHP":51.160667,"PKR":105.325922,"PLN":3.62883,"PYG":5595.8,"QAR":3.672501,"RON":3.886665,"RSD":101.130779,"RUB":59.148,"RWF":828.81,"SAR":3.7502,"SBD":7.754399,"SCR":13.673139,"SDG":6.68,"SEK":8.090595,"SGD":1.36202,"SHP":0.781767,"SLL":7550,"SOS":578.345,"SRD":7.438,"SSP":125.2166,"STD":20781.898308,"SVC":8.747434,"SYP":514.98499,"SZL":13.241279,"THB":33.35,"TJS":8.807589,"TMT":3.499986,"TND":2.448652,"TOP":2.222702,"TRY":3.497701,"TTD":6.775398,"TWD":30.281549,"TZS":2238.3,"UAH":25.571451,"UGX":3599,"USD":1,"UYU":28.715422,"UZS":4181.1,"VEF":10.01295,"VND":22714.153233,"VUV":105.166488,"WST":2.503962,"XAF":555.980076,"XAG":0.05882873,"XAU":0.00077661,"XCD":2.70255,"XDR":0.709645,"XOF":555.980076,"XPD":0.00107142,"XPF":101.143933,"XPT":0.00102042,"YER":250.325,"ZAR":13.25142,"ZMW":9.03,"ZWL":322.355011}}
1+
{"disclaimer":"Usage subject to terms: https://openexchangerates.org/terms","license":"https://openexchangerates.org/license","timestamp":1503720005,"base":"USD","rates":{"AED":3.673097,"AFN":68.593617,"ALL":111.35,"AMD":478.825,"ANG":1.779302,"AOA":165.9205,"ARS":17.2255,"AUD":1.260549,"AWG":1.795249,"AZN":1.7,"BAM":1.6543,"BBD":2,"BDT":80.478539,"BGN":1.641206,"BHD":0.377278,"BIF":1740,"BMD":1,"BND":1.356042,"BOB":6.910011,"BRL":3.1586,"BSD":1,"BTC":0.000230652686,"BTN":64.01782,"BWP":10.184278,"BYN":1.931799,"BZD":2.015013,"CAD":1.24795,"CDF":1538.825758,"CHF":0.956435,"CLF":0.02361,"CLP":634.4,"CNH":6.642532,"CNY":6.6478,"COP":2924.25,"CRC":577.445,"CUC":1,"CUP":25.5,"CVE":93.55,"CZK":21.8879,"DJF":178.97,"DKK":6.2367,"DOP":47.575,"DZD":109.584,"EGP":17.705,"ERN":15.340791,"ETB":23.186557,"EUR":0.838574,"FJD":2.036695,"FKP":0.776452,"GBP":0.776452,"GEL":2.41168,"GGP":0.776452,"GHS":4.403276,"GIP":0.776452,"GMD":46.1,"GNF":8970,"GTQ":7.273772,"GYD":207.982754,"HKD":7.818095,"HNL":23.185416,"HRK":6.220699,"HTG":64.949009,"HUF":255.264,"IDR":13338.527156,"ILS":3.5834,"IMP":0.776452,"INR":63.856,"IQD":1156.7,"IRR":32876.5,"ISK":105.1,"JEP":0.776452,"JMD":127.899589,"JOD":0.709001,"JPY":109.445,"KES":103.183661,"KGS":68.465363,"KHR":4070,"KMF":416.95,"KPW":900,"KRW":1121.55,"KWD":0.302108,"KYD":0.833054,"KZT":330.578046,"LAK":8301,"LBP":1494.65,"LKR":151.667257,"LRD":114.925,"LSL":13.033945,"LYD":1.369587,"MAD":9.42867,"MDL":17.906796,"MGA":2931.45,"MKD":51.929662,"MMK":1351.274087,"MNT":2431.919885,"MOP":8.054724,"MRO":363.5,"MUR":33.165667,"MVR":15.450233,"MWK":725.475,"MXN":17.6163,"MYR":4.2725,"MZN":60.994761,"NAD":13.005,"NGN":356.05161,"NIO":29.905,"NOK":7.753115,"NPR":102.425565,"NZD":1.381502,"OMR":0.385088,"PAB":1,"PEN":3.2385,"PGK":3.153907,"PHP":51.086,"PKR":104.456445,"PLN":3.573922,"PYG":5589.75,"QAR":3.680008,"RON":3.856526,"RSD":99.917,"RUB":58.615,"RWF":820.996237,"SAR":3.7502,"SBD":7.807077,"SCR":13.6395,"SDG":6.68,"SEK":7.965985,"SGD":1.3558,"SHP":0.776452,"SLL":7539.799473,"SOS":573.300573,"SRD":7.438,"SSP":125.4582,"STD":20666.68041,"SVC":8.747084,"SYP":514.95499,"SZL":13.037455,"THB":33.2615,"TJS":8.811894,"TMT":3.50998,"TND":2.4274,"TOP":2.232294,"TRY":3.43891,"TTD":6.722321,"TWD":30.158,"TZS":2240.15,"UAH":25.329054,"UGX":3619.658069,"USD":1,"UYU":28.649937,"UZS":4202.5,"VEF":10.099404,"VND":22724.232876,"VUV":105.465864,"WST":2.514233,"XAF":550.068767,"XAG":0.05863408,"XAU":0.00077447,"XCD":2.70255,"XDR":0.708581,"XOF":550.068767,"XPD":0.0010783,"XPF":100.068548,"XPT":0.00102517,"YER":250.325,"ZAR":13.019645,"ZMW":8.970282,"ZWL":322.355011}}

0 commit comments

Comments
 (0)