Skip to content

Commit

Permalink
responsive, add code icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabeer-Junaid committed Jun 3, 2024
1 parent bb9ae22 commit 81a5cad
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
Binary file added assets/images/code-ico.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ body {
--purpinkish: hsl(333, 73%, 51%);
}

/* Navbar */
.navbar {
display: flex;
justify-content: flex-start;
Expand Down Expand Up @@ -69,6 +70,8 @@ body {
margin-left: auto; /* Move to the right end */
}

/* Cover LOGO */

.cover-logo {
justify-content: center;
width: 10rem;
Expand All @@ -77,18 +80,40 @@ body {
/* background-color: aqua; */
}

@media (min-width: 768px) {
.cover-logo {
/* background-color: red; */
margin-top: 3rem;
}
.content {
margin-top: -3rem;
}
}
@media (min-width: 1024px) {
.cover-logo {
/* background-color: royalblue; */
margin-top: 3rem;
}
.content {
margin-top: -3rem;
}
}

.cover-logo img {
height: 10rem;
width: 10rem;
}

/* Main Content */

.content {
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
/* background-color: blue; */
height: 18rem;
margin-top: -2rem;
}

.quote {
Expand Down
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
<img src="assets/images/logo.png" style="height: 2rem" />
</div>
<div class="menu ml-auto">
<button id="viewgithub-btn" class="btn">&lt;/&gt;</button>
<button id="code-btn" class="btn">
<img src="assets/images/code-ico.png" style="height: 1.4rem" />
</button>
</div>
</div>

Expand Down

0 comments on commit 81a5cad

Please sign in to comment.