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

Skip to content

Commit 3505085

Browse files
arshadkazmi42vinaypuppal
authored andcommitted
- Added edit button click event to redirect to github doc - Add @arshadkazmi42 as a contributor
1 parent e76e316 commit 3505085

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,15 @@
233233
"contributions": [
234234
"code"
235235
]
236+
},
237+
{
238+
"login": "arshadkazmi42",
239+
"name": "Arshad Kazmi",
240+
"avatar_url": "https://avatars3.githubusercontent.com/u/4654382?v=4",
241+
"profile": "http://arshad.kaspat.com",
242+
"contributions": [
243+
"code"
244+
]
236245
}
237246
],
238247
"repoType": "github"

README.md

Lines changed: 2 additions & 2 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-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)
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-24-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

@@ -28,5 +28,5 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
2828
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
2929
| [<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") |
3030
| [<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") |
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") |
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") | [<img src="https://avatars3.githubusercontent.com/u/4654382?v=4" width="100px;"/><br /><sub><b>Arshad Kazmi</b></sub>](http://arshad.kaspat.com)<br />[💻](https://github.com/coderplex/coderplex/commits?author=arshadkazmi42 "Code") |
3232
<!-- ALL-CONTRIBUTORS-LIST:END -->

components/learn/subject-banner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Container = styled.section`
3939
}
4040
`;
4141

42-
export default ({ title, subTitle, icon }) => (
42+
export default ({ title, subTitle, icon, githubUrl }) => (
4343
<BannerSection py={[1, 3]} px={[2, 1]}>
4444
<Container>
4545
<Flex alignItems={'flex-end'}>
@@ -53,7 +53,7 @@ export default ({ title, subTitle, icon }) => (
5353
<SubTitle className="subtitle">{subTitle}</SubTitle>
5454
</Box>
5555
<Box flex={['0 1 auto']}>
56-
<Button inverted medium className="edit">
56+
<Button inverted medium target="_blank" href={githubUrl} className="edit">
5757
EDIT
5858
</Button>
5959
</Box>

pages/learn/subject.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,18 @@ export default class Subject extends React.Component {
141141
title={`Learn ${subject.title}`}
142142
subTitle={`Curriculum for ${this.props.url.query.subject.toUpperCase()} and others Coming soon!!`}
143143
icon={subject.icon}
144+
githubUrl={subject.githubUrl}
144145
/>
145146
</Layout>
146147
) : (
147148
<Layout>
148-
<BannerSection textInverted title={`Learn ${subject.title}`} subTitle={subject.domain} icon={subject.icon} />
149+
<BannerSection
150+
textInverted
151+
title={`Learn ${subject.title}`}
152+
subTitle={subject.domain}
153+
icon={subject.icon}
154+
githubUrl={subject.githubUrl}
155+
/>
149156
<CurriculumSection my={[0, 5]}>
150157
<Flex flexDirection="row">
151158
{this.state.isSidebarOpen ? (

0 commit comments

Comments
 (0)