Skip to content

Commit 75b17e2

Browse files
committed
improved the responsiveness
1 parent eae880f commit 75b17e2

2 files changed

Lines changed: 37 additions & 10 deletions

File tree

code/index.html

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,29 @@
99
<link rel="stylesheet" href="./style.css" />
1010
</head>
1111
<body>
12+
<!-- The hero image and user info -->
13+
1214
<div class="heroimage">
15+
<h1>GitHub Tracker</h1>
16+
<div id="userProfile"></div>
17+
</div>
18+
<hr />
19+
20+
<!-- The projects/repositories -->
21+
22+
<div class="logowrapper">
1323
<img
1424
class="githublogo"
15-
src="https://cdn-icons-png.flaticon.com/512/733/733609.png"
25+
src="https://cdn-icons-png.flaticon.com/512/2111/2111612.png"
1626
alt="githublogo"
1727
/>
18-
<h1>GitHub Tracker</h1>
19-
<div id="userProfile"></div>
28+
<h2>Projects:</h2>
2029
</div>
2130

22-
<h2>Projects:</h2>
2331
<main id="projects" class="projectscontainer"></main>
2432

25-
<!-- This will be used to draw the chart 👇 -->
33+
<!-- The chart -->
34+
2635
<div class="chart">
2736
<canvas id="chart"></canvas>
2837
</div>

code/style.css

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,32 @@ h1 {
2828
object-fit: cover;
2929
}
3030

31+
hr {
32+
width: 200px;
33+
height: 2px;
34+
background-color: #3d5a80;
35+
border-radius: 5px;
36+
line-height: 2px;
37+
opacity: 0.85;
38+
}
39+
40+
.logowrapper {
41+
display: flex;
42+
justify-content: center;
43+
align-items: center;
44+
}
45+
3146
h2 {
32-
text-align: center;
47+
display: inline;
48+
margin-left: 5px;
3349
}
3450

3551
.projectscontainer {
3652
display: flex;
3753
justify-content: center;
3854
flex-direction: column;
3955
align-items: center;
56+
width: 100%;
4057
}
4158

4259
.projectinfo {
@@ -45,7 +62,7 @@ h2 {
4562
flex-direction: column;
4663
align-items: center;
4764
background-color: #88b7d3;
48-
width: 350px;
65+
width: 90%;
4966
height: 200px;
5067
margin-bottom: 20px;
5168
box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 19%);
@@ -85,6 +102,7 @@ h2 {
85102
flex-direction: row;
86103
flex-wrap: wrap;
87104
justify-content: space-evenly;
105+
margin-top: 20px;
88106
}
89107

90108
.projectinfo:nth-last-child(-n + 2) {
@@ -112,7 +130,7 @@ h2 {
112130
.heroimage {
113131
background: linear-gradient(rgba(44, 40, 27, 0.39), rgba(41, 37, 25, 0.76)),
114132
url("https://images.unsplash.com/photo-1607970669494-309137683be5?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1470&q=80");
115-
height: 60vh;
133+
height: 65vh;
116134
background-position: center;
117135
background-repeat: no-repeat;
118136
background-size: cover;
@@ -125,9 +143,9 @@ h2 {
125143
text-align: start;
126144
display: inline;
127145
letter-spacing: 2px;
146+
text-shadow: 1px 1px 1px #293241;
128147
position: absolute;
129148
margin-left: 20px;
130-
text-shadow: 1px 1px 1px #293241;
131149
}
132150

133151
.userinfo {
@@ -147,6 +165,6 @@ h2 {
147165
}
148166

149167
.userinfo {
150-
padding-top: 20px;
168+
padding-top: 30px;
151169
}
152170
}

0 commit comments

Comments
 (0)