Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
week one part of project finished
  • Loading branch information
spiropoulos94 committed Feb 17, 2020
commit 0c3527f569f439b3474f0d880b71197862edb331
3 changes: 3 additions & 0 deletions homework/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

function renderRepoDetails(repo, ul) {
createAndAppend('li', ul, { text: ` Repository : ${repo.name}` });
let a = createAndAppend('a', ul, { text: repo.name });
a.setAttribute('href', repo.html_url);
a.setAttribute('target', '_blank');
createAndAppend('p', ul, { text: `Description : ${repo.description}` });
createAndAppend('p', ul, { text: `Forks : ${repo.forks}` });
createAndAppend('p', ul, { text: `Update at : ${repo.updated_at}` });
Expand Down
14 changes: 13 additions & 1 deletion homework/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.alert-error {
color: red;
background-color: pink;
padding: 2vh;
}

.banner {
Expand All @@ -8,7 +10,17 @@
padding: 3%;
}

ul {
display: flex;
flex-direction: column;
}

li {
color: red;
font-weight: bolder;
border-style: groove;
list-style-type: none;
display: inline-block;
margin: auto;
padding: 1.5vw;
margin-left: 0;
}