Fixed some css and added repo style
Added css to each repo in Github.js and fixed some anchor css
This commit is contained in:
parent
b963d58a38
commit
166382ec96
|
|
@ -16,10 +16,12 @@ class Github extends React.Component {
|
|||
const render = this.props.repos.map((repo) =>{
|
||||
console.log(repo);
|
||||
return (
|
||||
<div className="repo">
|
||||
<div><a href={repo.html_url}>{repo.name}</a></div>
|
||||
<p>{repo.description}</p>
|
||||
</div>
|
||||
|
||||
<a className="repo" href={repo.html_url}>
|
||||
<div className="title">{repo.name}</div>
|
||||
<p className="description">{repo.description ? repo.description : "No Description"}</p>
|
||||
</a>
|
||||
|
||||
);
|
||||
});
|
||||
console.log(render);
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
|
||||
|
||||
.repo {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: #DDDCDC;
|
||||
border-radius: 10px;
|
||||
padding: 10px;
|
||||
align-items: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
|
@ -14,4 +15,18 @@
|
|||
width: 50vw;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.repo .title {
|
||||
background-color: gray;
|
||||
width:100%;
|
||||
text-align:center;
|
||||
border-top-left-radius: 10px;
|
||||
border-top-right-radius: 10px;
|
||||
padding-top:5px;
|
||||
padding-bottom:5px;
|
||||
}
|
||||
|
||||
.repo .description {
|
||||
padding:10px;
|
||||
}
|
||||
|
|
@ -38,7 +38,14 @@
|
|||
color: #CFCFBA;
|
||||
}
|
||||
|
||||
a:link, a:visited {
|
||||
a:link {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
}
|
||||
|
||||
.Navigation a {
|
||||
color: white;
|
||||
color: #CFC0C0 !important;
|
||||
padding:10px;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue