Created
January 9, 2018 21:24
-
-
Save tryggvigy/13787a18bddf0d1584b0556955c93d1f to your computer and use it in GitHub Desktop.
More components!
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
import React, { Component } from 'react'; | |
import data from '../../data/data' | |
import Header from './header'; | |
import EducationList from './EducationList'; | |
import SkillList from './SkillList'; | |
class Main extends Component { | |
render() { | |
return ( | |
<div className = "container"> | |
<Header /> | |
<div className = "section-container"> | |
<h2 className = "sub-header" >MENNTUN</h2> | |
<EducationList education={data.education}> // svo gera allt sem var hér bara inni í EducationList | |
</div> | |
<div className = "section-container"> | |
<h2 className = "sub-header" >KUNNÁTTA</h2> | |
<div className ="skill-card-container"> | |
<SkillList skills={data.cards.skills}> // svo gera allt sem var hér bara inni í SkillList | |
</div> | |
</div> | |
... | |
</div> | |
); | |
} | |
} | |
export default Main; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment