diff --git a/src/app.css b/src/app.css index 79d4fdd..ca43bc4 100644 --- a/src/app.css +++ b/src/app.css @@ -36,4 +36,17 @@ footer { @apply my-4 text-center; } table { @apply w-full my-4; } thead { @apply bg-ctp-overlay0; } tbody { @apply bg-ctp-base text-ctp-subtext0; } -tr, th, td { @apply p-1 border border-ctp-overlay1; } \ No newline at end of file +tr, th, td { @apply p-1 border border-ctp-overlay1; } + +@theme { + --animate-marquee: marquee 15s linear infinite; + --animate-marquee2: marquee2 15s linear infinite; + @keyframes marquee { + 0% { transform: translateX(0%); } + 100% { transform: translateX(-100%); } + } + @keyframes marquee2 { + 0% { transform: translateX(100%); } + 100% { transform: translateX(0%); } + } +} \ No newline at end of file diff --git a/src/lib/index.ts b/src/lib/index.ts index 2859a5f..6538ea8 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -168,8 +168,6 @@ export function randomStr(length: number): string { return result; } -export const months = ['', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; - export const textColors = [ 'text-ctp-red', 'text-ctp-peach', 'text-ctp-yellow', 'text-ctp-green', 'text-ctp-teal', 'text-ctp-blue', 'text-ctp-mauve', 'text-ctp-pink', @@ -183,7 +181,6 @@ export default { roles: ["Web Developer", "Sysadmin", "Hobbyist", "Student"], description: "I'm Satria, Im a self-taught hobbyist web developer and homelaber sysadmin from Indonesia. I've been programming since 2021 and I love spending my free time working on personal projects and experimenting with new technologies.", skills: ["HTML", "CSS", "JavaScript", "Tailwind", "Svelte", "SvelteKit", "TypeScript", "NodeJS", "Express", "PocketBase", "Python", "Linux", "Nginx", "Docker", "Git", "Bash", "Proxmox", "Nix"], - birthday: [12,6], timezone: "Asia/Jakarta", location: "Indonesia", links: { @@ -214,5 +211,6 @@ export default { discord: "https://discord.com/users/882595027132493864", reddit: "https://reddit.com/u/Frequent_Outside_741", steam: "https://steamcommunity.com/id/satr14", + namemc: "https://namemc.com/profile/satr14.1" }, } \ No newline at end of file diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index a8e4eec..6b88df9 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -21,27 +21,99 @@ let { data }: Props = $props(); - let days = $derived(daysUntilBirthday(data.birthday)); let time = $derived(getTimeIn(data.timezone)); let charAmount = $state(0); + let webring = $page.url.searchParams.has('webring'); + let audio: HTMLAudioElement; + let showNotification = $state(false); + + function playAudio() { + if (audio.paused) { + audio.volume = 0.5; + audio.play().then(() => { + showNotification = true; + setTimeout(() => showNotification = false, 3000); + }).catch(() => {}); + } + } + onMount(() => { charAmount = Math.floor(window.innerWidth / 20); }); -
+ +{#if showNotification} +
+
+ +
+

Now Playing

+

White Palace — Hollow Knight OST

+
+
+
+{/if} + +
+ + + +
- {randomStr(charAmount)}
- {randomStr(Math.round(charAmount-data.name.length/2))}{data.name.toUpperCase()}{randomStr(Math.round(charAmount-data.name.length/2))} - {randomStr(charAmount)}
+
+ + {randomStr(charAmount)} + + + {randomStr(charAmount)} + +

+ {randomStr(Math.round(charAmount-data.name.length/2))}{data.name.toUpperCase()}{randomStr(Math.round(charAmount-data.name.length/2))} +
+ + {randomStr(charAmount)} + + + {randomStr(charAmount)} + +

@@ -70,14 +142,14 @@
diff --git a/static/hk-white-palace-ost.mp3 b/static/hk-white-palace-ost.mp3 new file mode 100644 index 0000000..9f359d1 Binary files /dev/null and b/static/hk-white-palace-ost.mp3 differ diff --git a/tailwind.config.js b/tailwind.config.js index 7397937..1c87476 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -11,14 +11,8 @@ export default { '-gradient-6': 'linear-gradient(-6deg, var(--tw-gradient-stops))' }, animation: { - 'scrolling-text-to-l': 'scroll 16s linear infinite', - 'scrolling-text-to-r': 'scroll 16s linear infinite reverse', }, keyframes: { - scroll: { - '0%': { transform: 'translateX(-90%)' }, - '100%': { transform: 'translateX(90%)' }, - }, }, }, },