blob: c6d0eb742af96239fe2416798b97eeb5aba6bee6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<script lang="ts">
import '../app.scss'
import { base } from '$app/paths'
import { socials } from '$lib/socials.json'
import SteamIcon from '$lib/assets/steam.svg?src'
import GithubIcon from '$lib/assets/github.svg?src'
import DevIcon from '$lib/assets/dev.svg?src'
import TelegramIcon from '$lib/assets/telegram.svg?src'
import EnvelopeIcon from '$lib/assets/envelope.svg?src'
type Social = {
link: string,
icon: string
}
const socialsList: Social[] = socials
const insertIcon: Function = (element: HTMLElement, icon: string) => {
element.innerHTML = eval(`${icon}Icon`)
}
</script>
<svelte:head>
<title>pml68</title>
</svelte:head>
<div class="main">
<h1>pml68</h1>
<p>Just your average IT student</p>
<div class="socials">
{#each socialsList as {link, icon}}
<a use:insertIcon={icon} href={link} target="_blank" class="icon"></a>
{/each}
</div>
<div class="projects">
Check out my projects <a href={base + '/projects'}><b>here</b></a>
</div>
</div>
|