Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tyom committed Aug 9, 2024
1 parent 89b51fb commit 6cf41b9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/components/Icon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import LinkedIn from 'virtual:icons/fa6-brands/linkedin';
import PDF from 'virtual:icons/fa6-regular/file-pdf';
import InfoSymbol from 'virtual:icons/material-symbols/info-outline-rounded';
import Email from 'virtual:icons/majesticons/mail-line'
import Globe from 'virtual:icons/la/globe'
import Email from 'virtual:icons/majesticons/mail-line';
import Globe from 'virtual:icons/la/globe';
const icons = {
github: GitHub,
Expand All @@ -24,5 +24,5 @@
<svelte:component
this={IconComponent}
aria-label={label}
class="{$$props.class}"
class={$$props.class}
/>
5 changes: 4 additions & 1 deletion src/components/Section.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
class:!pt-8={showTimeline}
>
{#each items as item, idx}
<ExperienceItem {...item} includeInPrint={idx <= NUMBER_OF_ITEMS_TO_SHOW_IN_PRINT} />
<ExperienceItem
{...item}
includeInPrint={idx <= NUMBER_OF_ITEMS_TO_SHOW_IN_PRINT}
/>
{/each}
</div>
{/if}
Expand Down
20 changes: 14 additions & 6 deletions src/components/Summary.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
export let pdfLink;
</script>

<div
class="summary p-8 md:p-12 print:!p-0 flex flex-1 flex-col gap-4 text-sm"
>
<div class="summary p-8 md:p-12 print:!p-0 flex flex-1 flex-col gap-4 text-sm">
<h1 class="font-bold tracking-wide leading-none text-[2.9em]">
{name}
</h1>
Expand Down Expand Up @@ -54,7 +52,11 @@
title={item.label}
class="flex gap-2 p-2 transition-transform-100 hover:scale-125 print:py-1"
>
<Icon name={item.icon} label={item.label} class="size-6 print:size-4" />
<Icon
name={item.icon}
label={item.label}
class="size-6 print:size-4"
/>
<span class="hidden print:block">
{truncateUrl(item.url)}
</span>
Expand All @@ -75,7 +77,11 @@
}}
>
<span class="text-sm">Download</span>
<Icon name="pdf" label="PDF" class="size-6 transition-transform-200 group-hover:scale-125"/>
<Icon
name="pdf"
label="PDF"
class="size-6 transition-transform-200 group-hover:scale-125"
/>
</a>
</div>
{/if}
Expand All @@ -97,7 +103,9 @@
{/if}
</footer>
{/if}
<div class="hidden print:block break-before-page space-y-1 absolute bottom-0 left-0">
<div
class="hidden print:block break-before-page space-y-1 absolute bottom-0 left-0"
>
<p class="flex items-center gap-2 leading-none">
<Icon name="info" class="size-8" />
<span class="max-w-[22ch]"
Expand Down

0 comments on commit 6cf41b9

Please sign in to comment.