diff --git a/src/app.css b/src/app.css index f2336b5..afbd33c 100644 --- a/src/app.css +++ b/src/app.css @@ -1,10 +1,8 @@ -@import 'tailwindcss'; +@import "tailwindcss"; @plugin "daisyui" { - themes: - light --default, - forest --prefersdark; + themes: light --default, forest --prefersdark; } :root { - @apply font-[Roboto]; + @apply bg-[url("/background.jpg")] bg-cover font-[Roboto]; } diff --git a/src/lib/constants/about.ts b/src/lib/constants/about.ts new file mode 100644 index 0000000..909112a --- /dev/null +++ b/src/lib/constants/about.ts @@ -0,0 +1,43 @@ +import { BicepsFlexed, Braces, Gamepad2, Globe } from "@lucide/svelte"; +import type { Component } from "svelte"; + +type Item = { + icon: Component; + title: string; + description: string; +}; + +export const name: string = "Benjamin Palko"; + +export const titles: string[] = [ + "Full Stack Developer", + "Video Game Developer", +]; + +export const description: string = + "Hi! I'm Ben, a Canadian Software Developer from Ottawa, Canada 🇨. I'm currently a Full Stack Developer and I love to do side projects, learn new things and have fun while doing it. I have participated in Game Jams, fallen down the rabbit hole of Linux Ricing and many other things away from the desk like races, cycling and even wood-working!"; + +export const activities: Item[] = [ + { + icon: Globe, + title: "Web Development", + description: "React, Typescript and Svelte oh my", + }, + { + icon: Gamepad2, + title: "Game Development", + description: + "Unreal, Unity, Godot, RPG Maker. The game dev community was at peace until the Unity nation attacked", + }, + { + icon: BicepsFlexed, + title: "Athletics", + description: "Self-proclaimed athlete, cyclist, runner and racer", + }, + { + icon: Braces, + title: "Linux Ricing", + description: + "Builder of rices, vanquisher of Windows, distributor of open-source", + }, +]; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 2938f74..31a6e90 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -5,7 +5,7 @@ import '../app.css'; import type { LayoutProps } from './$types'; - let { children, data }: LayoutProps = $props(); + let { children }: LayoutProps = $props(); let drawerOpen = $state(false); @@ -30,11 +30,11 @@ let current = $derived(pages.find((p) => p.slug === page.route.id)); -
+
diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts deleted file mode 100644 index 5055cd2..0000000 --- a/src/routes/+page.server.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { logger } from '$lib/server/logger'; -import { error } from '@sveltejs/kit'; -import type { PageServerLoad } from './$types'; - -interface Data { - about: { - name: string; - bio: string; - titles: string[]; - photo: { - url: string; - }; - activities: { title: string; description: string }[]; - }; -} - -export const load: PageServerLoad = async ({ locals }): Promise => { - const { strapi } = locals; - - try { - const { data: about } = await strapi.About(); - - return { - about: { - name: about.Name, - bio: about.Bio, - titles: about.Titles.map((title: { value: string }) => title.value), - photo: { - url: about.Photo.url - }, - activities: about.Activities.map((item: { Title: string; Description: string }) => { - return { title: item.Title, description: item.Description }; - }) - } - } satisfies Data; - } catch (err) { - if (err instanceof Error) { - logger.error('Uh-oh!', err); - if (err instanceof Error) { - error(500, err); - } - } - } -}; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 0d21a20..635ca93 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,35 +1,24 @@ -{#snippet Activity(item: ActivityItem)} -
- -
-

{item.title}

-

- {item.description} -

-
-
-{/snippet} -
- +

What I Do

- {#each about.activities as activity (activity.title)} - {@render Activity(activity)} + {#each activities as item (item.title)} +
+ +
+

{item.title}

+

+ {item.description} +

+
+
{/each}
diff --git a/static/me.jpg b/static/me.jpg deleted file mode 100644 index b4bbf1c..0000000 Binary files a/static/me.jpg and /dev/null differ diff --git a/static/me.webp b/static/me.webp new file mode 100644 index 0000000..c200af8 Binary files /dev/null and b/static/me.webp differ diff --git a/static/yeet-winter.jpg b/static/yeet-winter.jpg deleted file mode 100644 index b4bbf1c..0000000 Binary files a/static/yeet-winter.jpg and /dev/null differ