Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 68cbc1a

Browse files
authored
Merge pull request #219 from coderplex/develop
Release dev version
2 parents d17ffff + 423b24d commit 68cbc1a

21 files changed

+2171
-2628
lines changed

.all-contributorsrc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,16 @@
224224
"contributions": [
225225
"review"
226226
]
227+
},
228+
{
229+
"login": "charan1922",
230+
"name": "Charan Teja",
231+
"avatar_url": "https://avatars3.githubusercontent.com/u/23609292?v=4",
232+
"profile": "http://charan1922.github.io/myportfolio",
233+
"contributions": [
234+
"code"
235+
]
227236
}
228-
]
237+
],
238+
"repoType": "github"
229239
}

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Coderplex Website
22

3-
[![Build Status](https://travis-ci.org/coderplex/coderplex.svg?branch=master)](https://travis-ci.org/coderplex/coderplex) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) [![Greenkeeper badge](https://badges.greenkeeper.io/coderplex/coderplex.svg)](https://greenkeeper.io/) [![All Contributors](https://img.shields.io/badge/all_contributors-22-orange.svg?style=flat-square)](#contributors) [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://github.com/coderplex/coderplex/blob/master/LICENSE)
3+
[![Build Status](https://travis-ci.org/coderplex/coderplex.svg?branch=master)](https://travis-ci.org/coderplex/coderplex) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) [![Greenkeeper badge](https://badges.greenkeeper.io/coderplex/coderplex.svg)](https://greenkeeper.io/) [![All Contributors](https://img.shields.io/badge/all_contributors-23-orange.svg?style=flat-square)](#contributors) [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://github.com/coderplex/coderplex/blob/master/LICENSE)
44

55
## Follow our community here at [https://www.coderplex.org](https://www.coderplex.org)
66

@@ -23,12 +23,10 @@ We welcome pull requests from beginners and seasoned javaScript developers alike
2323
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
2424

2525
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
26-
2726
<!-- prettier-ignore -->
2827
| [<img src="https://avatars1.githubusercontent.com/u/8843216?v=4" width="100px;"/><br /><sub><b>Vinay Puppal</b></sub>](https://www.vinaypuppal.com/)<br />[🐛](https://github.com/coderplex/coderplex/issues?q=author%3Avinaypuppal "Bug reports") [💻](https://github.com/coderplex/coderplex/commits?author=vinaypuppal "Code") [🤔](#ideas-vinaypuppal "Ideas, Planning, & Feedback") [👀](#review-vinaypuppal "Reviewed Pull Requests") | [<img src="https://avatars2.githubusercontent.com/u/17708702?v=4" width="100px;"/><br /><sub><b>Md_ZubairAhmed</b></sub>](https://in.linkedin.com/in/mzubairahmed)<br />[🐛](https://github.com/coderplex/coderplex/issues?q=author%3AM-ZubairAhmed "Bug reports") [💻](https://github.com/coderplex/coderplex/commits?author=M-ZubairAhmed "Code") [📖](https://github.com/coderplex/coderplex/commits?author=M-ZubairAhmed "Documentation") [💡](#example-M-ZubairAhmed "Examples") [🤔](#ideas-M-ZubairAhmed "Ideas, Planning, & Feedback") [🔌](#plugin-M-ZubairAhmed "Plugin/utility libraries") [👀](#review-M-ZubairAhmed "Reviewed Pull Requests") [⚠️](https://github.com/coderplex/coderplex/commits?author=M-ZubairAhmed "Tests") [💬](#question-M-ZubairAhmed "Answering Questions") | [<img src="https://avatars3.githubusercontent.com/u/17903466?v=4" width="100px;"/><br /><sub><b>P Bhanu Teja</b></sub>](https://github.com/pbteja1998)<br />[💬](#question-pbteja1998 "Answering Questions") [🐛](https://github.com/coderplex/coderplex/issues?q=author%3Apbteja1998 "Bug reports") [💻](https://github.com/coderplex/coderplex/commits?author=pbteja1998 "Code") [🤔](#ideas-pbteja1998 "Ideas, Planning, & Feedback") | [<img src="https://avatars0.githubusercontent.com/u/23223985?v=4" width="100px;"/><br /><sub><b>Sai Abhijith</b></sub>](https://github.com/saiabhijitht)<br />[🎨](#design-saiabhijitht "Design") [🤔](#ideas-saiabhijitht "Ideas, Planning, & Feedback") [👀](#review-saiabhijitht "Reviewed Pull Requests") | [<img src="https://avatars1.githubusercontent.com/u/6577624?v=4" width="100px;"/><br /><sub><b>Kapil Dutta</b></sub>](http://duttakapil.github.io/)<br />[🐛](https://github.com/coderplex/coderplex/issues?q=author%3Aduttakapil "Bug reports") [🤔](#ideas-duttakapil "Ideas, Planning, & Feedback") [👀](#review-duttakapil "Reviewed Pull Requests") | [<img src="https://avatars0.githubusercontent.com/u/15874356?v=4" width="100px;"/><br /><sub><b>Shiva Krishna Yadav</b></sub>](https://github.com/shivakrishna9)<br />[💻](https://github.com/coderplex/coderplex/commits?author=shivakrishna9 "Code") [📖](https://github.com/coderplex/coderplex/commits?author=shivakrishna9 "Documentation") | [<img src="https://avatars2.githubusercontent.com/u/14841940?v=4" width="100px;"/><br /><sub><b>Vineeth Kanaparthi</b></sub>](https://github.com/VineethKanaparthi)<br />[📖](https://github.com/coderplex/coderplex/commits?author=VineethKanaparthi "Documentation") |
2928
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
3029
| [<img src="https://avatars2.githubusercontent.com/u/5159834?v=4" width="100px;"/><br /><sub><b>buoyantair</b></sub>](https://github.com/buoyantair)<br />[💻](https://github.com/coderplex/coderplex/commits?author=buoyantair "Code") | [<img src="https://avatars2.githubusercontent.com/u/5133505?v=4" width="100px;"/><br /><sub><b>Jeffrey Berry</b></sub>](https://github.com/jberry93)<br />[💻](https://github.com/coderplex/coderplex/commits?author=jberry93 "Code") | [<img src="https://avatars2.githubusercontent.com/u/6535023?v=4" width="100px;"/><br /><sub><b>Sebastian</b></sub>](https://github.com/HerrVoennchen)<br />[💻](https://github.com/coderplex/coderplex/commits?author=HerrVoennchen "Code") | [<img src="https://avatars3.githubusercontent.com/u/15249170?v=4" width="100px;"/><br /><sub><b>Hafiz T</b></sub>](https://github.com/hafiz703)<br />[💻](https://github.com/coderplex/coderplex/commits?author=hafiz703 "Code") | [<img src="https://avatars0.githubusercontent.com/u/13974570?v=4" width="100px;"/><br /><sub><b>Raja Sekhar Karanam</b></sub>](https://github.com/rkaranam)<br />[📖](https://github.com/coderplex/coderplex/commits?author=rkaranam "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/2767425?v=4" width="100px;"/><br /><sub><b>sreenivas alapati</b></sub>](https://twitter.com/CgCnu)<br />[💻](https://github.com/coderplex/coderplex/commits?author=cg-cnu "Code") | [<img src="https://avatars0.githubusercontent.com/u/11747818?v=4" width="100px;"/><br /><sub><b>Luis Lacruz</b></sub>](https://about.me/luislacruz)<br />[💻](https://github.com/coderplex/coderplex/commits?author=luixlacrux "Code") |
3130
| [<img src="https://avatars0.githubusercontent.com/u/32811957?v=4" width="100px;"/><br /><sub><b>Mazin Majid</b></sub>](https://github.com/majidmazin)<br />[📖](https://github.com/coderplex/coderplex/commits?author=majidmazin "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/22547780?v=4" width="100px;"/><br /><sub><b>loangelak</b></sub>](https://github.com/loangelak)<br />[💻](https://github.com/coderplex/coderplex/commits?author=loangelak "Code") | [<img src="https://avatars0.githubusercontent.com/u/4998544?v=4" width="100px;"/><br /><sub><b>Atte Niemi</b></sub>](http://twitter.com/HursCode)<br />[💻](https://github.com/coderplex/coderplex/commits?author=hur "Code") | [<img src="https://avatars1.githubusercontent.com/u/28659384?v=4" width="100px;"/><br /><sub><b>tdeschryver</b></sub>](https://github.com/tdeschryver)<br />[💻](https://github.com/coderplex/coderplex/commits?author=tdeschryver "Code") | [<img src="https://avatars1.githubusercontent.com/u/5432702?v=4" width="100px;"/><br /><sub><b>Alicia Perez</b></sub>](http://www.linkedin.com/in/aliciapr)<br />[💻](https://github.com/coderplex/coderplex/commits?author=aliciaphes "Code") | [<img src="https://avatars2.githubusercontent.com/u/18336304?v=4" width="100px;"/><br /><sub><b>abiduzz420</b></sub>](https://medium.com/@abiduzair420)<br />[💻](https://github.com/coderplex/coderplex/commits?author=abiduzz420 "Code") [📢](#talk-abiduzz420 "Talks") | [<img src="https://avatars2.githubusercontent.com/u/10849586?v=4" width="100px;"/><br /><sub><b>thepriefy</b></sub>](https://github.com/thepriefy)<br />[💻](https://github.com/coderplex/coderplex/commits?author=thepriefy "Code") |
32-
| [<img src="https://avatars0.githubusercontent.com/u/8036315?v=4" width="100px;"/><br /><sub><b>Aravind Balla</b></sub>](http://aravindballa.com)<br />[👀](#review-aravindballa "Reviewed Pull Requests") |
33-
31+
| [<img src="https://avatars0.githubusercontent.com/u/8036315?v=4" width="100px;"/><br /><sub><b>Aravind Balla</b></sub>](http://aravindballa.com)<br />[👀](#review-aravindballa "Reviewed Pull Requests") | [<img src="https://avatars3.githubusercontent.com/u/23609292?v=4" width="100px;"/><br /><sub><b>Charan Teja</b></sub>](http://charan1922.github.io/myportfolio)<br />[💻](https://github.com/coderplex/coderplex/commits?author=charan1922 "Code") |
3432
<!-- ALL-CONTRIBUTORS-LIST:END -->

components/common/banner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const BannerSection = styled.section`
1212
`;
1313

1414
export default ({ title, subTitle, textInverted = false }) => (
15-
<BannerSection py={[2, 3]} px={[2, 1]}>
15+
<BannerSection py={[3, 4]} px={[3, 2]}>
1616
<Container>
1717
<Title inverted={textInverted}>{title}</Title>
1818
<SubTitle inverted={textInverted}>{subTitle}</SubTitle>

components/common/footer/index.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import styled from 'react-emotion';
3-
import { Flex, Box } from 'grid-emotion';
3+
import { Flex, Box } from 'grid-styled/emotion';
44
import FaFacebook from 'react-icons/lib/fa/facebook';
55
import FaYoutube from 'react-icons/lib/fa/youtube-play';
66
import FaGithub from 'react-icons/lib/fa/github-alt';
@@ -121,6 +121,7 @@ export default class FooterBar extends React.Component {
121121
emailSubmittingError: '',
122122
subscriberEmailPosted: false,
123123
};
124+
124125
handleChange = event => {
125126
this.setState({
126127
subscribersEmail: event.target.value,
@@ -132,7 +133,7 @@ export default class FooterBar extends React.Component {
132133
e.preventDefault();
133134
console.log('submitting....');
134135
this.setState({ emailSubmittingError: '' });
135-
const emailRegx = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
136+
const emailRegx = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
136137
const email = this.state.subscribersEmail;
137138
if (!email) {
138139
this.setState({
@@ -169,12 +170,19 @@ export default class FooterBar extends React.Component {
169170
});
170171
}
171172
}
173+
172174
render() {
173175
return (
174176
<Footer>
175177
<Container>
176-
<Flex wrap py={[0, 3]}>
177-
<Flex align="center" direction="column" justify="center" width={[1, 1, 1 / 2]} px={[2, 3]} py={[3, 0]}>
178+
<Flex flexWrap="wrap" py={[0, 4]}>
179+
<Flex
180+
alignItems="center"
181+
flexDirection="column"
182+
justifyContent="center"
183+
width={[1, 1, 1 / 2]}
184+
px={[3, 4]}
185+
py={[4, 0]}>
178186
<Title>
179187
We are constantly updating our platform.
180188
<br />Do subscribe to stay informed.
@@ -198,8 +206,8 @@ export default class FooterBar extends React.Component {
198206
<p>{this.state.emailSubmittingError}</p>
199207
</Message>
200208
</Flex>
201-
<Flex className="follow" align="center" justify="center" width={[1, 1, 1 / 2]}>
202-
<Box p={[1, 2]}>
209+
<Flex className="follow" alignItems="center" justifyContent="center" width={[1, 1, 1 / 2]}>
210+
<Box p={[2, 3]}>
203211
<Title>Follow Us</Title>
204212
<SocialLinks>
205213
<SocialLink>

components/common/header/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,14 @@ class NavBar extends React.Component {
6363
},
6464
],
6565
};
66+
6667
toggleMenu = e => {
6768
e.preventDefault();
6869
this.setState(state => {
6970
return { menuOpen: !state.menuOpen };
7071
});
7172
};
73+
7274
render() {
7375
const pathName = this.props.router.pathname;
7476
const metaData = MetaInfo[pathName === '/' ? 'home' : pathName.split('/')[1]];
@@ -80,8 +82,7 @@ class NavBar extends React.Component {
8082
)} | Learn ${this.props.router.query.subject[0].toUpperCase() +
8183
this.props.router.query.subject.slice(1)} | Coderplex`
8284
: metaData.title;
83-
const description = metaData.description;
84-
const image = metaData.image;
85+
const { description, image } = metaData;
8586
return (
8687
<Headroom>
8788
<Header>

components/events/event-card.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import styled from 'react-emotion';
33
import { space, fontSize } from 'styled-system';
4-
import { Flex, Box } from 'grid-emotion';
4+
import { Flex, Box } from 'grid-styled/emotion';
55
import TimeIcon from 'react-icons/lib/fa/calendar';
66
import format from 'date-fns/format';
77
import LocationIcon from 'react-icons/lib/md/location-on';
@@ -75,7 +75,7 @@ const CardTitle = styled.h3`
7575
`;
7676

7777
export default props => (
78-
<Card my={[3]} wrap>
78+
<Card my={[4]} flexWrap="wrap">
7979
{props.showImg && (
8080
<Flex align="streach" width={[1, 1, 1 / 4]}>
8181
<img
@@ -88,50 +88,50 @@ export default props => (
8888
</Flex>
8989
)}
9090
<Box className="eventDetails" width={props.showImg ? [1, 1, 3 / 4] : [1, 1, 1]}>
91-
<Flex className="eventDetails" column justify="space-between">
91+
<Flex className="eventDetails" flexDirection="column" justifyContent="space-between">
9292
<CardTitle inverted color="#222" px={[2]} py={[1]} m={0}>
9393
{truncateString(props.name, 64)}
9494
</CardTitle>
95-
<Box fontSize={[12, 14, 16]} className="secondaryText" px={[2]} my={props.showImg ? [1, 1, 0] : [1, 1, 1]}>
95+
<Box fontSize={[12, 14]} className="secondaryText" px={[3]} my={props.showImg ? [2, 2, 0] : [2, 2, 2]}>
9696
<LocationIcon className="icons" />
9797
<span>{truncateString(props.location, 55)}</span>
9898
</Box>
99-
<Box px={2} pb={[2, 1]}>
100-
<Flex wrap>
99+
<Box px={3} pb={[3, 2]}>
100+
<Flex flexWrap="wrap">
101101
<Box
102-
fontSize={[12, 14, 16]}
102+
fontSize={[12, 14]}
103103
width={props.showImg ? [1, 1, 0.38] : [1, 1, 1 / 2]}
104104
className="secondaryText"
105-
pr={1}
105+
pr={2}
106106
mr={[0]}
107-
my={props.showImg ? [1, 1, 0] : [1, 1, 1]}>
107+
my={props.showImg ? [2, 2, 0] : [2, 2, 2]}>
108108
<TimeIcon className="icons" />
109109
<span>{format(props.time, "ddd MMM Do 'YY, h:mm A")}</span>
110110
</Box>
111111
<Box
112-
fontSize={[12, 14, 16]}
112+
fontSize={[12, 14]}
113113
width={props.showImg ? [1, 1, 0.24] : [1, 1, 1 / 2]}
114114
className="secondaryText"
115-
pr={1}
115+
pr={2}
116116
mx={[0]}
117-
my={props.showImg ? [1, 1, 0] : [1, 1, 1]}>
117+
my={props.showImg ? [2, 2, 0] : [2, 2, 2]}>
118118
<AttendeesIcon className="icons" />
119119
<span>{props.tense === 'past' ? `${props.attendees} attended` : `${props.attendees} attending`}</span>
120120
</Box>
121121
<Box
122-
fontSize={[12, 14, 16]}
122+
fontSize={[12, 14]}
123123
width={props.showImg ? [1, 1, 0.21] : [1, 1, 1 / 2]}
124124
className="secondaryText"
125-
pr={1}
125+
pr={2}
126126
mx={[0]}
127-
my={props.showImg ? [1, 1, 0] : [1, 1, 1]}>
127+
my={props.showImg ? [2, 2, 0] : [2, 2, 2]}>
128128
{props.online ? <StreamIcon className="icons" /> : <TicketIcon className="icons" />}
129129
<span>{props.online ? 'Free session' : 'Free entry'}</span>
130130
</Box>
131131
<Box
132-
fontSize={[12, 14, 16]}
132+
fontSize={[12, 14]}
133133
width={props.showImg ? [1, 1, 0.17] : [1, 1, 1 / 2]}
134-
mt={props.showImg ? [1, 1, 0] : [1, 1, 1]}
134+
mt={props.showImg ? [2, 2, 0] : [2, 2, 2]}
135135
className="rsvp">
136136
<Button href={props.link} inverted medium>
137137
{props.tense === 'past' ? 'View' : 'RSVP'}

components/events/event-content-loader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import ContentLoader from 'react-content-loader';
33
import styled from 'react-emotion';
44
import { space } from 'styled-system';
5-
import { Flex } from 'grid-emotion';
5+
import { Flex } from 'grid-styled/emotion';
66

77
import { breakpoints, graySecondary } from '../../utils/base.styles';
88

@@ -23,7 +23,7 @@ const EventLoader = styled(Flex)`
2323
`;
2424

2525
export default () => (
26-
<EventLoader my={[3]} wrap>
26+
<EventLoader my={[4]} flexWrap="wrap">
2727
<ContentLoader width="100%" speed={4} primaryColor={'#f3f3f3'} secondaryColor={'#ecebeb'}>
2828
<rect x="0" y="0" rx="5" ry="5" width="200" height="132" />
2929
<rect x="207" y="7" rx="4" ry="4" width="550" height="20" />

components/learn/subject-banner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import styled from 'react-emotion';
33
import { space } from 'styled-system';
4-
import { Flex, Box } from 'grid-emotion';
4+
import { Flex, Box } from 'grid-styled/emotion';
55

66
import { baseContainer, Title, SubTitle, Button, breakpoints } from '../../utils/base.styles';
77

@@ -42,7 +42,7 @@ const Container = styled.section`
4242
export default ({ title, subTitle, icon }) => (
4343
<BannerSection py={[1, 3]} px={[2, 1]}>
4444
<Container>
45-
<Flex wrap={false} align={'flex-end'}>
45+
<Flex alignItems={'flex-end'}>
4646
<Box flex={'0 1 auto'}>
4747
<div className="logo">
4848
<i className={icon} />

components/learn/subject-card.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import styled from 'react-emotion';
3-
import { Flex, Box } from 'grid-emotion';
3+
import { Flex, Box } from 'grid-styled/emotion';
44
import { space, fontSize } from 'styled-system';
55
import Link from 'next/link';
66
import LearningIcon from 'react-icons/lib/fa/book';
@@ -85,12 +85,12 @@ export default ({ subject }) => (
8585
<p className="subtitle" fontSize={[12, 14, 16]}>
8686
{subject.domain}
8787
</p>
88-
<Flex className="stats" wrap>
89-
<Box pr={[1]} pb={[1]} fontSize={[12, 14, 16]}>
88+
<Flex className="stats" flexWrap="wrap">
89+
<Box pr={[1]} pb={[2]} fontSize={[12, 14]}>
9090
<LearningIcon className="icons" />
9191
<span>20 learning</span>
9292
</Box>
93-
<Box fontSize={[12, 14, 16]}>
93+
<Box fontSize={[12, 14]}>
9494
<EstimateIcon className="icons" />
9595
<span>20 hours</span>
9696
</Box>

0 commit comments

Comments
 (0)