|
| 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 | +}; |
0 commit comments