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:
Camerin 2021-09-17 09:29:20 -04:00
parent b963d58a38
commit 166382ec96
4 changed files with 31 additions and 7 deletions

View File

@ -16,10 +16,12 @@ class Github extends React.Component {
const render = this.props.repos.map((repo) =>{ const render = this.props.repos.map((repo) =>{
console.log(repo); console.log(repo);
return ( return (
<div className="repo">
<div><a href={repo.html_url}>{repo.name}</a></div> <a className="repo" href={repo.html_url}>
<p>{repo.description}</p> <div className="title">{repo.name}</div>
</div> <p className="description">{repo.description ? repo.description : "No Description"}</p>
</a>
); );
}); });
console.log(render); console.log(render);

View File

@ -1,9 +1,10 @@
.repo { .repo {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-color: #DDDCDC; background-color: #DDDCDC;
border-radius: 10px; border-radius: 10px;
padding: 10px;
align-items: center; align-items: center;
margin-top: 10px; margin-top: 10px;
} }
@ -14,4 +15,18 @@
width: 50vw; width: 50vw;
margin-left: auto; margin-left: auto;
margin-right: 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;
} }

View File

@ -38,7 +38,14 @@
color: #CFCFBA; color: #CFCFBA;
} }
a:link, a:visited { a:link {
color: inherit;
text-decoration: none;
cursor: pointer;
}
a:visited {
color: inherit;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
} }

View File

@ -10,7 +10,7 @@
} }
.Navigation a { .Navigation a {
color: white; color: #CFC0C0 !important;
padding:10px; padding:10px;
} }