init
This commit is contained in:
commit
d761a10bf7
102 changed files with 4761 additions and 0 deletions
31
lib/components/bio/profile/SocialLink.svelte
Normal file
31
lib/components/bio/profile/SocialLink.svelte
Normal file
|
@ -0,0 +1,31 @@
|
|||
<script lang="ts">
|
||||
import type { Site } from '$lib/models/socials';
|
||||
|
||||
export let hoverInvert: boolean = false;
|
||||
export let minimal: boolean = false;
|
||||
|
||||
export let site: Site | undefined;
|
||||
export let social: BioSiteSocialLink;
|
||||
</script>
|
||||
|
||||
{#if site}
|
||||
<a
|
||||
class="flex-grow"
|
||||
style="--color: {site.color}"
|
||||
href={`${site.type == 'EMAIL' ? 'mailto:' : site.baseUrl}${social.value}`}
|
||||
target="_blank"
|
||||
title={site.name}>
|
||||
<div
|
||||
class="w-full min-w-[95px] h-10 hover:opacity-80 transition-opacity rounded-lg flex justify-center items-center">
|
||||
<img class="w-5 h-5" alt="Icon" src={site.icon} />
|
||||
</div>
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
<!-- -->
|
||||
|
||||
<style lang="postcss">
|
||||
div {
|
||||
background: var(--color);
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue