Skip to content

Commit

Permalink
Merge pull request #1 from JI-0/footer-icons
Browse files Browse the repository at this point in the history
Add footer link icons
  • Loading branch information
ttomczak3 committed Nov 19, 2023
2 parents d7ff15c + f2bdb6a commit dbb6855
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/github-mark-white.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/github-mark.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/li-in-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/li-in.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions public/mail-white.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/mail.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,27 @@ const year = new Date().getFullYear();
---
<footer>
<div>
<div>
<ul class="icons">
<li><a href="#" target="_blank" class="foot-btn"><span class="git-icon">GitHub</span></a></li>
<li><a href="mailto: #@gmail.com" class="foot-btn"><span class="mail-icon">Email</span></a></li>
<li><a href="#" target="_blank" class="foot-btn"><span class="linked-in">LinkedIn</span></a></li>
</ul>
</div>
<small>&copy; {year} Milky-Way by <a href="https://github.com/ttomczak3">ttomczak</a>. All Rights Reserved.</small>
</div>
</footer>
<style>
ul.icons {
cursor: default;
list-style: none;
}

ul.icons li {
display: inline-block;
padding: 0 0.75rem 0 0;
}

div {
margin: 4rem 0;
text-align: center;
Expand Down
42 changes: 42 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,36 @@ p {
margin: 0 13px;
}

/* Footer */
.foot-btn {
display: flex;
padding: 20px;
height: 30px;
width: 30px;
border-radius: 50%;
border: 5px solid white;
}

.foot-btn:hover {
background-color: lightskyblue;
}

.light .foot-btn {
border: 5px solid black;
}

.git-icon {
content: url("/github-mark-white.svg");
}

.mail-icon {
content: url("/mail-white.svg");
}

.linked-in {
content: url("/li-in-white.png");
}

/* Card listing */
.link-card-grid {
display: grid;
Expand Down Expand Up @@ -120,6 +150,18 @@ html.light {
color: #fdebf3;
}

.light .git-icon {
content: url("/github-mark.svg");
}

.light .mail-icon {
content: url("/mail.svg");
}

.light .linked-in {
content: url("/li-in.png");
}

/* Media Query */
@media only screen and (max-width: 600px) {
body {
Expand Down

0 comments on commit dbb6855

Please sign in to comment.