Skip to content

Commit 6eb4cff

Browse files
Kara HowesKara Howes
authored andcommitted
added header and hamburger
1 parent 8915497 commit 6eb4cff

5 files changed

Lines changed: 65 additions & 13 deletions

File tree

.DS_Store

6 KB
Binary file not shown.

code/assets/GitHub_Logo_White.png

2.47 KB
Loading

code/index.html

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,23 @@
1111
<link rel="stylesheet" href="./style.css" />
1212
</head>
1313
<body>
14-
<h1>GitHub Tracker</h1>
15-
<h2>Projects:</h2>
16-
<main id="projects">
14+
<header>
15+
<section class="header">
16+
<div class="hamburger">
17+
<div></div>
18+
<div></div>
19+
<div></div>
20+
</div>
21+
<img src="./assets/GitHub_Logo_White.png" alt="">
22+
23+
</section>
24+
25+
</header>
26+
<section class="profile-container">
27+
28+
</section>
29+
30+
<main id="projects" class="projects-container">
1731

1832
</main>
1933
<section class="cards-container" id="cards-container">

code/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ const getRepos = ()=>{
1515
//Here, I filter only the projects forked from Technigo, starting from 2021 (since I have earlier projects also forked from Technigo)
1616
const forkedProjects = data.filter(repo => repo.fork && repo.name.startsWith('project-') && repo.created_at.startsWith('2021-'))
1717
// Here I update the projectsContainer.innerHTML to show a list of all forked repos
18-
forkedProjects.forEach(repo => projectsContainer.innerHTML += `<h3>${repo.name}</h3>`)
18+
forkedProjects.forEach(repo => projectsContainer.innerHTML += `<p>${repo.name}</p>`)
1919
// Here I update the cards.Container to show cards with data extracted from the GitHUb API
20+
2021
forkedProjects.forEach(repo => cardsContainer.innerHTML += `
2122
<section class="js-card">
2223
<div class="card-projectname" id="cardProjectName">

code/style.css

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,58 @@
11
body {
2-
background-color: aquamarine;
2+
background-color: white;
33
font-family: 'Special Elite', cursive;
4+
margin: 0;
45
}
56

6-
.canvas-chart{
7-
max-width: 500px;
8-
7+
/* Header*/
8+
.header {
9+
width: 100%;
10+
background-color: black;
11+
}
12+
/* hamburger */
13+
.hamburger {
14+
display: flex;
15+
height: 25px;
16+
width: 30px;
17+
flex-direction: column;
18+
justify-content: space-between;
19+
padding: 20px 0 0 20px;
20+
}
21+
22+
.hamburger div {
23+
width: 30px;
24+
height: 5px;
25+
background: white;
26+
}
27+
28+
.header img {
29+
width: 250px;
30+
margin: 0 0 5px 50px;
31+
}
32+
/* Profile styling and image*/
33+
34+
35+
/* Cards styling*/
36+
.projects-container{
37+
width: 90%;
38+
margin: 20px, auto;
939
}
1040

1141
.cards-container {
1242
width: 90%;
43+
margin: 20px auto;
1344
}
14-
.html-card {
15-
width: 80%;
45+
/*.html-card {
46+
width: 90%;
1647
background-color: white;
1748
border: 1px solid #DADBDB;
1849
box-shadow: 1px 1px 3px rgba(0,0,0,.25);
1950
margin: 50px;
2051
2152
}
22-
53+
*/
2354
.js-card {
24-
width: 80%;
55+
width: 90%;
2556
background-color: white;
2657
border: 1px solid #DADBDB;
2758
box-shadow: 1px 1px 3px rgba(0,0,0,.25);
@@ -41,6 +72,12 @@ body {
4172
border-bottom: 1px solid #B2B3B4;
4273
}
4374

44-
.space{
75+
.space {
4576
margin-left: 5px;
77+
}
78+
79+
/* Chart styling*/
80+
.canvas-chart{
81+
max-width: 500px;
82+
4683
}

0 commit comments

Comments
 (0)