diff --git a/src/lib/components/ui/card/card-description.svelte b/src/lib/components/ui/card/card-description.svelte
index 33d2930..da02664 100644
--- a/src/lib/components/ui/card/card-description.svelte
+++ b/src/lib/components/ui/card/card-description.svelte
@@ -1,13 +1,16 @@
-
diff --git a/src/lib/components/ui/card/card-footer.svelte b/src/lib/components/ui/card/card-footer.svelte
index c97fd43..6894149 100644
--- a/src/lib/components/ui/card/card-footer.svelte
+++ b/src/lib/components/ui/card/card-footer.svelte
@@ -1,13 +1,16 @@
-
-
+
+ {@render children?.()}
diff --git a/src/lib/components/ui/card/card-header.svelte b/src/lib/components/ui/card/card-header.svelte
index 43be1c6..1baa92c 100644
--- a/src/lib/components/ui/card/card-header.svelte
+++ b/src/lib/components/ui/card/card-header.svelte
@@ -1,13 +1,16 @@
-
-
+
+ {@render children?.()}
diff --git a/src/lib/components/ui/card/card-title.svelte b/src/lib/components/ui/card/card-title.svelte
index 5520e72..aa4f7f8 100644
--- a/src/lib/components/ui/card/card-title.svelte
+++ b/src/lib/components/ui/card/card-title.svelte
@@ -1,21 +1,25 @@
-
-
-
+ {@render children?.()}
+
diff --git a/src/lib/components/ui/card/card.svelte b/src/lib/components/ui/card/card.svelte
index 78fe4ff..3e3a4ed 100644
--- a/src/lib/components/ui/card/card.svelte
+++ b/src/lib/components/ui/card/card.svelte
@@ -1,16 +1,20 @@
-
+ {@render children?.()}
diff --git a/src/lib/components/ui/card/index.ts b/src/lib/components/ui/card/index.ts
index 86c5408..0f9084d 100644
--- a/src/lib/components/ui/card/index.ts
+++ b/src/lib/components/ui/card/index.ts
@@ -1,9 +1,9 @@
-import Root from './card.svelte';
-import Content from './card-content.svelte';
-import Description from './card-description.svelte';
-import Footer from './card-footer.svelte';
-import Header from './card-header.svelte';
-import Title from './card-title.svelte';
+import Root from "./card.svelte";
+import Content from "./card-content.svelte";
+import Description from "./card-description.svelte";
+import Footer from "./card-footer.svelte";
+import Header from "./card-header.svelte";
+import Title from "./card-title.svelte";
export {
Root,
@@ -18,7 +18,5 @@ export {
Description as CardDescription,
Footer as CardFooter,
Header as CardHeader,
- Title as CardTitle
+ Title as CardTitle,
};
-
-export type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
diff --git a/src/lib/components/ui/skeleton/index.ts b/src/lib/components/ui/skeleton/index.ts
index 3120ce1..186db21 100644
--- a/src/lib/components/ui/skeleton/index.ts
+++ b/src/lib/components/ui/skeleton/index.ts
@@ -1,7 +1,7 @@
-import Root from './skeleton.svelte';
+import Root from "./skeleton.svelte";
export {
Root,
//
- Root as Skeleton
+ Root as Skeleton,
};
diff --git a/src/lib/components/ui/skeleton/skeleton.svelte b/src/lib/components/ui/skeleton/skeleton.svelte
index d810af1..4089b49 100644
--- a/src/lib/components/ui/skeleton/skeleton.svelte
+++ b/src/lib/components/ui/skeleton/skeleton.svelte
@@ -1,11 +1,17 @@
-
+
diff --git a/src/lib/index.ts b/src/lib/index.ts
index 42f23ed..6912355 100644
--- a/src/lib/index.ts
+++ b/src/lib/index.ts
@@ -1,3 +1,20 @@
+export const skills = [
+ { name: 'Rust', icon: '๐ฆ', url: 'https://www.rust-lang.org/' },
+ { name: 'Svelte', icon: '๐งก', url: 'https://svelte.dev/' },
+ { name: 'Zig', icon: 'โก๏ธ', url: 'https://ziglang.org/' },
+ { name: 'Go', icon: '๐น', url: 'https://golang.org/' },
+ { name: 'Godot', icon: '๐ฎ', url: 'https://godotengine.org/' },
+ { name: 'Python', icon: '๐', url: 'https://www.python.org/' },
+ {
+ name: 'JavaScript',
+ icon: '๐บ',
+ url: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript'
+ },
+ { name: 'TypeScript', icon: '๐ป', url: 'https://www.typescriptlang.org/' },
+ { name: 'HTML & CSS', icon: '๐', url: 'https://developer.mozilla.org/en-US/docs/Learn/HTML' },
+ { name: 'Git & GitHub', icon: '๐ง', url: 'https://github.com/' }
+];
+
export const projects = [
{
title: 'chadmaths',
diff --git a/src/lib/utils.ts b/src/lib/utils.ts
index eba19d8..ac680b3 100644
--- a/src/lib/utils.ts
+++ b/src/lib/utils.ts
@@ -1,56 +1,6 @@
-import { type ClassValue, clsx } from 'clsx';
-import { twMerge } from 'tailwind-merge';
-import { cubicOut } from 'svelte/easing';
-import type { TransitionConfig } from 'svelte/transition';
+import { type ClassValue, clsx } from "clsx";
+import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
-
-type FlyAndScaleParams = {
- y?: number;
- x?: number;
- start?: number;
- duration?: number;
-};
-
-export const flyAndScale = (
- node: Element,
- params: FlyAndScaleParams = { y: -8, x: 0, start: 0.95, duration: 150 }
-): TransitionConfig => {
- const style = getComputedStyle(node);
- const transform = style.transform === 'none' ? '' : style.transform;
-
- const scaleConversion = (valueA: number, scaleA: [number, number], scaleB: [number, number]) => {
- const [minA, maxA] = scaleA;
- const [minB, maxB] = scaleB;
-
- const percentage = (valueA - minA) / (maxA - minA);
- const valueB = percentage * (maxB - minB) + minB;
-
- return valueB;
- };
-
- const styleToString = (style: Record
): string => {
- return Object.keys(style).reduce((str, key) => {
- if (style[key] === undefined) return str;
- return str + `${key}:${style[key]};`;
- }, '');
- };
-
- return {
- duration: params.duration ?? 200,
- delay: 0,
- css: (t) => {
- const y = scaleConversion(t, [0, 1], [params.y ?? 5, 0]);
- const x = scaleConversion(t, [0, 1], [params.x ?? 0, 0]);
- const scale = scaleConversion(t, [0, 1], [params.start ?? 0.95, 1]);
-
- return styleToString({
- transform: `${transform} translate3d(${x}px, ${y}px, 0) scale(${scale})`,
- opacity: t
- });
- },
- easing: cubicOut
- };
-};
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 67073b1..0fbb65a 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -1,16 +1,21 @@
-
+
-
+
PF
@@ -123,12 +130,12 @@
Github
-
+
Toggle theme
@@ -138,7 +145,7 @@
-
+ {@render children?.()}
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 9deddb1..26fecb0 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -1,3 +1,8 @@
+
+
portfolio
Python, or even a game engine like
Godot
, so keep your eyes peeled! Or just check out the list below:
-
- Rust
- Svelte
- Zig
- Go
- Godot
- Python
- JavaScript
/ TypeScript
- HTML
& CSS
- Git
& GitHub
-
+
diff --git a/src/routes/ImageLoader.svelte b/src/routes/ImageLoader.svelte
index 2395d9f..47ed9a6 100644
--- a/src/routes/ImageLoader.svelte
+++ b/src/routes/ImageLoader.svelte
@@ -1,17 +1,28 @@