-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetched data from json and rendered in list
- Loading branch information
Showing
30 changed files
with
200 additions
and
26 deletions.
There are no files selected for viewing
Binary file modified
BIN
+1.77 KB
(340%)
.sass-cache/17d2fd42d2a8b8246274bfafbcb6155d7a2357dd/_App.scssc
Binary file not shown.
Binary file modified
BIN
+1.97 KB
(450%)
.sass-cache/17d2fd42d2a8b8246274bfafbcb6155d7a2357dd/_Company.scssc
Binary file not shown.
Binary file modified
BIN
+4.54 KB
(910%)
.sass-cache/17d2fd42d2a8b8246274bfafbcb6155d7a2357dd/_CompanyInfo.scssc
Binary file not shown.
Binary file modified
BIN
+2.68 KB
(580%)
.sass-cache/17d2fd42d2a8b8246274bfafbcb6155d7a2357dd/_CompanyList.scssc
Binary file not shown.
Binary file modified
BIN
+3.09 KB
(650%)
.sass-cache/17d2fd42d2a8b8246274bfafbcb6155d7a2357dd/_Opening.scssc
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+593 Bytes
...cc2a7d8997/Users/Nishant/Developer/InternIndia/src/Styles/Components/_ButtonPrimary.scssc
Binary file not shown.
Binary file added
BIN
+591 Bytes
...67cc2a7d8997/Users/Nishant/Developer/InternIndia/src/Styles/Components/_OpeningInfo.scssc
Binary file not shown.
Binary file added
BIN
+588 Bytes
...41567cc2a7d8997/Users/Nishant/Developer/InternIndia/src/Styles/Components/_Openings.scssc
Binary file not shown.
Binary file added
BIN
+578 Bytes
...732871195e41567cc2a7d8997/Users/Nishant/Developer/InternIndia/src/Styles/_variables.scssc
Binary file not shown.
Binary file added
BIN
+1.85 KB
.sass-cache/a6eaa19a82fe0ae3c0fcc97867972db8213ead42/_variables.scssc
Binary file not shown.
Binary file modified
BIN
+92 Bytes
(100%)
.sass-cache/a6eaa19a82fe0ae3c0fcc97867972db8213ead42/main.scssc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[ | ||
{ | ||
"name": "Razorpay", | ||
"location": { | ||
"city": "Bangalore", | ||
"country": "India" | ||
}, | ||
"openings": [ | ||
{ | ||
"role": "Design Intern - Summer 2017", | ||
"applyLink": "http://www.google.com" | ||
}, | ||
{ | ||
"role": "Backend Intern - Winter 2016", | ||
"applyLink": "http://www.google.com" | ||
}, | ||
{ | ||
"role": "Front End Intern - Summer 2017", | ||
"applyLink": "http://www.google.com" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Flipkart", | ||
"location": { | ||
"city": "Bangalore", | ||
"country": "India" | ||
}, | ||
"openings": [ | ||
{ | ||
"role": "Marketing Intern - Summer 2017", | ||
"applyLink": "http://www.google.com" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
import React, { Component, PropTypes } from 'react'; | ||
|
||
import Openings from './Openings'; | ||
import CompanyInfo from './CompanyInfo'; | ||
|
||
class Company extends Component { | ||
static propTypes = { | ||
className: PropTypes.string, | ||
}; | ||
static propTypes = { | ||
className: PropTypes.string, | ||
data: PropTypes.object | ||
}; | ||
|
||
constructor(props) { | ||
super(props); | ||
} | ||
constructor(props) { | ||
super(props); | ||
} | ||
|
||
render() { | ||
return ( | ||
<h1>This is a company</h1> | ||
); | ||
} | ||
render() { | ||
var {name, location} = this.props.data; | ||
return ( | ||
<div className="company"> | ||
<CompanyInfo name={name} location={location}/> | ||
<Openings data={this.props.data.openings}/> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Company; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React, { Component, PropTypes } from 'react'; | ||
|
||
import Opening from './Opening'; | ||
|
||
class Openings extends Component { | ||
static propTypes = { | ||
className: PropTypes.string, | ||
data: PropTypes.array | ||
}; | ||
|
||
constructor(props) { | ||
super(props); | ||
} | ||
|
||
render() { | ||
return ( | ||
<ul className="openings"> | ||
{ | ||
this.props.data.map( (opening, i) => { | ||
return( | ||
<Opening key={i} data={opening}/> | ||
); | ||
}) | ||
} | ||
</ul> | ||
); | ||
} | ||
} | ||
|
||
export default Openings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
// Delcare App wide styles here | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
html, body { | ||
font-size: 62.5%; | ||
font-family: 'Roboto', 'sans-serif'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.company { | ||
color: $color-main-text; | ||
} | ||
|
||
.company:first-child { | ||
& .companyInfo { | ||
border-top: none; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.companyInfo { | ||
padding: 30px 25px 30px 25px; | ||
border-top: 1px solid $color-main-border; | ||
border-bottom: 1px solid $color-main-border; | ||
} | ||
|
||
.companyName { | ||
font-size: 2rem; | ||
letter-spacing: 0.15rem; | ||
display: block; | ||
} | ||
|
||
.companyLocation { | ||
margin-top: 0.5rem; | ||
font-size: 1.6rem; | ||
letter-spacing: 0.12rem; | ||
display: block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.companyList { | ||
background-color: $color-main; | ||
border-radius: 2px; | ||
border: 1px solid $color-main-border; | ||
width: 750px; | ||
margin: 50px auto 0px auto; | ||
font-size: 4.8rem; | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.opening { | ||
padding: 25px; | ||
font-size: 1.8rem; | ||
font-family: 'Roboto', 'sans-serif'; | ||
background-color: $color-opening-base; | ||
border-bottom: 1px solid $color-main-border; | ||
} | ||
|
||
.opening:last-child { | ||
border-bottom: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.openings { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
$color-main: #FAFAFB; | ||
$color-button-primary: #52A1ED; | ||
$color-main-text: #515357; | ||
$color-opening-base: #FFFFFF; | ||
$color-main-border: #B9BCC6; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters