Skip to content

Commit

Permalink
added Taskbar component, which holds social media links
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniosubasic committed Oct 13, 2024
1 parent 250a375 commit af7483f
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
<script setup lang="ts">
import Intro from './components/Intro.vue'
import AvailabilityPill from './components/AvailabilityPill.vue'
import Taskbar from './components/Taskbar.vue'
</script>

<template>
<AvailabilityPill :available="true" availableText="Open for Internships" unavailableText="Currently employed" />
<Intro class="intro" forename="Antonio" surename="Subašić" />
<p class="bio">A passionate Computer Science student specializing in software development and problem-solving, with a focus on building efficient, scalable applications and crafting innovative digital solutions.</p>
<Taskbar
linkedin="subasicantonio"
github="antoniosubasic"
email="antonio@subasic.me"
/>
</template>

<style scoped>
Expand Down
3 changes: 3 additions & 0 deletions src/assets/email.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 85 additions & 0 deletions src/components/Taskbar.vue
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>

0 comments on commit af7483f

Please sign in to comment.