Skip to content

Commit

Permalink
fix sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrossh committed Feb 22, 2024
1 parent 567b02d commit fa80d41
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 75 deletions.
84 changes: 18 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@iconify/json": "^2.2.185",
"@playwright/test": "^1.28.1",
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/kit": "2.5.1",
"@types/eslint": "8.56.0",
"@unocss/svelte-scoped": "^0.58.5",
"@unocss/transformer-directives": "^0.58.5",
Expand All @@ -33,7 +33,7 @@
"eslint-plugin-svelte": "^2.36.0-next.4",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"svelte": "^5.0.0-next.1",
"svelte": "4.2.11",
"svelte-check": "^3.6.0",
"typescript": "^5.0.0",
"unocss": "^0.58.5",
Expand Down
6 changes: 4 additions & 2 deletions src/lib/components/Slide.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script>
let { title, link, children } = $props();
// let { title, link, children } = $props();
export let title, link;
</script>

<article class="overflow-hidden rounded bg-[#f0ede2]">
Expand All @@ -14,7 +15,8 @@
<div class="i-mdi-github mr-2" />
<p>{title}</p>
</a>
{@render children()}
<!-- {@render children()} -->
<slot />
</div>
</div>
</article>
20 changes: 16 additions & 4 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
<script>
import { page } from '$app/stores';
import { getStores } from '$app/stores';
import Footer from '$lib/components/Footer.svelte';
import Header from '$lib/components/Header.svelte';
let { children } = $props();
import { onMount } from 'svelte';
// let { children } = $props();
const { page } = getStores();
let url = `https://pyros.sh${$page.url.pathname}`;
let isPosts = false;
onMount(() => {
page.subscribe(($page) => {
isPosts = $page.url.pathname.includes('posts');
console.log(isPosts);
});
});
</script>

<svelte:head>
Expand All @@ -21,14 +32,15 @@
></script>
</svelte:head>
<div
style="display: contents"
class:h-screen={isPosts}
class="leading-8 flex flex-1 flex-col font-normal text-lg sm:leading-7 m-0"
>
<Header />
<main class="w-full h-full block bg-white">
<div class="flex w-full flex-1 flex-row justify-center">
<div class="flex w-full flex-1 flex-row items-center max-w-5xl mt-4 mb-20 p-4">
{@render children()}
<!-- {@render children()} -->
<slot />
</div>
</div>
</main>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/posts/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<title>pyros.sh | Posts</title>
<meta name="description" content="Peter John's Posts" />
</svelte:head>
<div class="h-screen">
<div>
<div class="px-4 py-40 mx-auto">TBD</div>
</div>

Expand Down

0 comments on commit fa80d41

Please sign in to comment.