Skip to content

Commit 82fdfd7

Browse files
refactor: clean up loading state handling and update personal introduction in portfolio
1 parent c8c9f3c commit 82fdfd7

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

portfolio/src/routes/+layout.svelte

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,23 @@
55
import { onMount } from 'svelte';
66
77
let { children } = $props();
8-
let isLoading = $state(true); // Loading state
8+
let isLoading = $state(true);
99
1010
const isActive = (route: string) => {
1111
return $page.url.pathname === route;
1212
};
1313
14-
// Wait for all assets (images, fonts) to load
1514
onMount(() => {
1615
const handleLoad = () => {
17-
isLoading = false; // Hide the loader once everything is loaded
16+
isLoading = false;
1817
};
1918
20-
// Check if the document is already loaded
2119
if (document.readyState === 'complete') {
2220
handleLoad();
2321
} else {
2422
window.addEventListener('load', handleLoad);
2523
}
2624
27-
// Cleanup event listener
2825
return () => {
2926
window.removeEventListener('load', handleLoad);
3027
};

portfolio/src/routes/+page.svelte

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<script>
2-
import { Dot } from '@lucide/svelte';
3-
</script>
1+
42

53
<div class="space-y-5">
64
<div class="flex flex-col md:flex-row-reverse md:justify-between">
@@ -23,8 +21,7 @@
2321
Freelance Developer • Systems Learner • Builder of Software, Hardware & Ideas
2422
</p>
2523
<p class="break works">
26-
Hi, my name is <span class="font-bold">Yadhu Krishna</span>. Fellow human's who finds beauty
27-
in the uncomplicated!
24+
Hi, my name is <span class="font-bold">Yadhu Krishna</span>. this is my personal portfolio where i post my updates and also thinking about blogging also!
2825
</p>
2926
</div>
3027
</div>

0 commit comments

Comments
 (0)