Skip to content

Commit

Permalink
Add TypeScript to programming languages section
Browse files Browse the repository at this point in the history
  • Loading branch information
Iapetus-11 committed Apr 18, 2023
1 parent c2434e6 commit 050d8af
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/lib/data/me.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import villagerBotPng from '$lib/images/villager-bot.png';
import emojiLeaderboardExamplePng from '$lib/images/emoji-leaderboard-example.png';
import quake3BotWebp from '$lib/images/quake-3-bot.webp';
import postmanIconSvg from '$lib/images/postman-icon.svg';
import typeScriptIconSvg from '$lib/images/typescript.svg';

function calculateYearsElapsed(since: Date): number {
return new Date(new Date().getTime() - since.getTime()).getFullYear() - 1970;
Expand Down Expand Up @@ -62,6 +63,11 @@ const languages = [
name: 'JavaScript',
icon: faJs,
},
{
name: 'TypeScript',
customIcon: typeScriptIconSvg,
customScale: 0.8,
},
{
name: 'Nim',
icon: faCrown,
Expand Down Expand Up @@ -164,7 +170,7 @@ export const projects = [
href: 'https://github.com/Iapetus-11/api.iapetus11.me',
},
{
name: 'fractals',
name: 'Fractals',
description:
'Fractal generation from adjustable parameters, originally created during CUHackit 2022 but since redone.',
image: fractalColoredIterative,
Expand Down
1 change: 1 addition & 0 deletions src/lib/images/typescript.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion src/routes/SkillCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
export let name: string;
export let icon: object | undefined = undefined;
export let customIcon: object | undefined = undefined;
export let customScale: number | undefined = undefined;
export let idx: number;
let scaleStyle = '';
$: {
scaleStyle = customScale === undefined ? '' : `transform: scale(${customScale});`;
}
</script>

<div
Expand All @@ -14,7 +20,7 @@
{#if icon}
<Fa class="text-aqua-normal" {icon} fw />
{:else}
<img src={customIcon} alt={name} class="max-h-5 w-5 mx-0.5" />
<img src={customIcon} alt={name} class="max-h-5 w-5 mx-0.5" style={scaleStyle} />
{/if}
<span>{name}</span>
</div>

0 comments on commit 050d8af

Please sign in to comment.