diff --git a/src/lib/components/PersonPageLayout/PersonPageLayout.svelte b/src/lib/components/PersonPageLayout/PersonPageLayout.svelte new file mode 100644 index 0000000..b748fb6 --- /dev/null +++ b/src/lib/components/PersonPageLayout/PersonPageLayout.svelte @@ -0,0 +1,225 @@ + + + + + +
+ {#if titleInformation} + +
+ + {/if} +
+ + +
+ {#if titleInformation} + +
+ + {/if} +
+ +
+
+ {#if isModal} + {#if titleInformation} + + + + + + {/if} +
+ + +
+ {/if} +
+
+ {#if titleInformation} + +
+
+ +
+
+
+ +
+
+ +
+ {#if titleInformation} +
+

{titleInformation.tagline}

+ +
+

{titleInformation.overview}

+ {:else} +
+

Placeholder

+
+
+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet sem eget + dolor lobortis mollis. Aliquam semper imperdiet mi nec viverra. Praesent ac ligula + congue, aliquam diam nec, ullamcorper libero. Nunc mattis rhoncus justo, ac pretium + urna vehicula et. +

+
+ {/if} +
+ + + +
+
+ + + + + + +
+
+ + + + + + +
+
diff --git a/src/routes/person/[id]/PersonPage.svelte b/src/routes/person/[id]/PersonPage.svelte index 4f73ed8..f266477 100644 --- a/src/routes/person/[id]/PersonPage.svelte +++ b/src/routes/person/[id]/PersonPage.svelte @@ -4,7 +4,7 @@ import Card from '$lib/components/Card/Card.svelte'; import { fetchCardTmdbProps } from '$lib/components/Card/card'; import CarouselPlaceholderItems from '$lib/components/Carousel/CarouselPlaceholderItems.svelte'; - import TitlePageLayout from '$lib/components/TitlePageLayout/TitlePageLayout.svelte'; + import PersonPageLayout from '$lib/components/PersonPageLayout/PersonPageLayout.svelte'; import { Archive, ChevronRight, DotFilled, Plus } from 'radix-icons-svelte'; const GenderDescription = ['Not set', 'Female', 'Male', 'Non-binary']; @@ -38,10 +38,10 @@ {#await data} - + {:then { tmdbPerson, tmdbMoviesOn, tmdbSeriesOn }} {@const person = tmdbPerson} - {person?.homepage}

{/if} - Popularity index: {person?.popularity?.toFixed(1)} TMDB + Popularity: {person?.popularity?.toFixed(1)} on TMDB @@ -104,8 +104,8 @@ {/if} -
Appeared on movies like
- +
Appeared on movies like
+ {#await tmdbMoviesOn} {:then props} @@ -114,8 +114,8 @@ {/each} {/await} -
And tv shows like
- +
And tv shows like
+ {#await tmdbSeriesOn} {:then props} @@ -124,5 +124,5 @@ {/each} {/await} -
+
{/await}