Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushSehrawat committed Aug 16, 2024
1 parent 190e7f6 commit 561ced0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/lib/tmdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,6 @@ export async function getPerson(
});
if (!response.ok) {
throw new Error('Failed to fetch person details');
}
return await response.json();
}
}
return await response.json();
}
5 changes: 2 additions & 3 deletions src/routes/[type]/[id]/credits/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import * as Card from '$lib/components/ui/card';
export let data: PageData;
console.log(data);
</script>

<svelte:head>
Expand All @@ -31,11 +30,11 @@
</div>
<div class="absolute z-[2] mt-32 flex h-full w-full flex-col items-center p-8 md:px-24 lg:px-32">
<div class="flex max-w-7xl flex-col gap-2">
<h3 class="text-center text-3xl lg:text-4xl text-zinc-50 md:text-left">
<h3 class="text-center text-3xl text-zinc-50 md:text-left lg:text-4xl">
{data.media.title || data.media.name || data.media.original_name}
</h3>

<p class="text-center text-lg lg:text-xl font-thin italic text-zinc-200 md:text-left">
<p class="text-center text-lg font-thin italic text-zinc-200 md:text-left lg:text-xl">
&quot;{data.media.overview}&quot;
</p>

Expand Down
2 changes: 1 addition & 1 deletion src/routes/collection/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{data.details.name}
</h1>

<h2 class="text-center text-xl italic text-zinc-200 md:text-left font-thin">
<h2 class="text-center text-xl font-thin italic text-zinc-200 md:text-left">
&quot;{data.details.overview}&quot;
</h2>

Expand Down

0 comments on commit 561ced0

Please sign in to comment.