Skip to content

Commit

Permalink
Merge pull request #9 from ireneelizabethsabu/order
Browse files Browse the repository at this point in the history
Layout fixed
  • Loading branch information
ireneelizabethsabu authored Sep 5, 2021
2 parents 8556085 + a835242 commit e684949
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
16 changes: 11 additions & 5 deletions src/components/CV/cv.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React,{useState,useEffect} from "react";
import { Container } from "react-bootstrap";
import { Col, Container,Row } from "react-bootstrap";
import { useParams } from "react-router-dom";
import { getUsers ,getRepos } from "../../api";
import { getUsers } from "../../api";
import Header from "../Header/header";
import Language from "../Languages/Language";
import Organisation from '../Organisation/Organisation'
Expand All @@ -22,9 +22,15 @@ const CV=() => {
return(
data && <Container fluid className="my-3">
<Header data={data}/>
<Language id={id}/>
<Organisation id={id}/>
<Projects id={id}/>
<Row>
<Col>
<Organisation id={id}/>
<Language id={id}/>
</Col>
<Col>
<Projects id={id}/>
</Col>
</Row>
</Container>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Languages/Language.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Language = () => {
const [skills, setSkills] = useState(['java','javascript','obj','ruby','c++','html','vue','typescript','coffeescript','php']);

return (
<Col xs={6}>
<Col>
<div className="font_m mb-3">SKILLS</div>
<Row >
{skills && skills.map((skill, index) => (
Expand Down
6 changes: 3 additions & 3 deletions src/components/Organisation/Organisation.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ const Organisation = ({id}) => {
<div className="font_m mb-3">
ORGANISATIONS{" "}
</div>
<Row className="my-4">
<Row className="my-4" sm={8} >
{org && (org.map((element,index) =>
<Col key={index} xs="2">
<Col key={index}>
<div className="d-flex justify-content-center">
<Image src={element.avatar_url || ''} width="90px" height="90px" roundedCircle />
<Image src={element.avatar_url || ''} width="50" height="50" roundedCircle />
</div>
<div className="text-center my-2">{element.login.charAt(0).toUpperCase() + element.login.slice(1)}</div>
</Col>
Expand Down

0 comments on commit e684949

Please sign in to comment.