-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added Taskbar component, which holds social media links
- Loading branch information
1 parent
250a375
commit af7483f
Showing
5 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<script setup lang="ts"> | ||
import linkedinIcon from '@/assets/linkedin.svg'; | ||
import githubIcon from '@/assets/github.svg'; | ||
import emailIcon from '@/assets/email.svg'; | ||
defineProps<{ | ||
linkedin: string, | ||
github: string, | ||
email: string, | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<div class="wrapper"> | ||
<div class="taskbar"> | ||
<a :href="`https://www.linkedin.com/in/${linkedin}`" target="_blank" rel="noopener"> | ||
<img :src="linkedinIcon" alt="LinkedIn" /> | ||
</a> | ||
<a :href="`https://github.com/${github}`" target="_blank" rel="noopener"> | ||
<img :src="githubIcon" alt="GitHub" /> | ||
</a> | ||
<a :href="`mailto:${email}`"> | ||
<img :src="emailIcon" alt="E-Mail" /> | ||
</a> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.wrapper { | ||
position: fixed; | ||
bottom: 3.75%; | ||
left: 0; | ||
right: 0; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
.taskbar { | ||
display: flex; | ||
gap: 2rem; | ||
padding: 12px; | ||
border-radius: 15px; | ||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); | ||
} | ||
.taskbar a { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
.taskbar img { | ||
width: 30px; | ||
height: 30px; | ||
object-fit: cover; | ||
} | ||
@media (prefers-color-scheme: dark) { | ||
.taskbar { | ||
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); | ||
} | ||
.taskbar img { | ||
filter: invert(1); | ||
} | ||
} | ||
@media screen and (max-height: 575px), screen and (max-width: 500px) { | ||
.taskbar { | ||
border-radius: 10px; | ||
padding: 9px; | ||
} | ||
.taskbar img { | ||
width: 25px; | ||
height: 25px; | ||
} | ||
} | ||
@media screen and (max-height: 490px) { | ||
.wrapper { | ||
display: none; | ||
} | ||
} | ||
</style> |