-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add manga and novel pages for person and character
- Loading branch information
Showing
12 changed files
with
182 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
app/(pages)/(content)/characters/[slug]/(character-details)/manga/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Metadata, ResolvingMetadata } from 'next'; | ||
|
||
import Manga from '@/features/characters/character-view/manga.component'; | ||
|
||
export async function generateMetadata( | ||
{ params }: { params: { slug: string } }, | ||
parent: ResolvingMetadata, | ||
): Promise<Metadata> { | ||
const parentMetadata = await parent; | ||
|
||
return { | ||
title: 'Аніме', | ||
description: parentMetadata.openGraph?.description, | ||
openGraph: { | ||
siteName: parentMetadata.openGraph?.siteName, | ||
description: parentMetadata.openGraph?.description, | ||
images: parentMetadata.openGraph?.images, | ||
title: 'Аніме', | ||
}, | ||
twitter: { | ||
description: parentMetadata.openGraph?.description, | ||
images: parentMetadata.twitter?.images, | ||
title: 'Аніме', | ||
}, | ||
}; | ||
} | ||
|
||
const CharacterMangaPage = async () => { | ||
return ( | ||
<div className="flex flex-col gap-12"> | ||
<Manga extended /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CharacterMangaPage; |
36 changes: 36 additions & 0 deletions
36
app/(pages)/(content)/characters/[slug]/(character-details)/novel/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Metadata, ResolvingMetadata } from 'next'; | ||
|
||
import Novel from '@/features/characters/character-view/novel.component'; | ||
|
||
export async function generateMetadata( | ||
{ params }: { params: { slug: string } }, | ||
parent: ResolvingMetadata, | ||
): Promise<Metadata> { | ||
const parentMetadata = await parent; | ||
|
||
return { | ||
title: 'Ранобе', | ||
description: parentMetadata.openGraph?.description, | ||
openGraph: { | ||
siteName: parentMetadata.openGraph?.siteName, | ||
description: parentMetadata.openGraph?.description, | ||
images: parentMetadata.openGraph?.images, | ||
title: 'Ранобе', | ||
}, | ||
twitter: { | ||
description: parentMetadata.openGraph?.description, | ||
images: parentMetadata.twitter?.images, | ||
title: 'Ранобе', | ||
}, | ||
}; | ||
} | ||
|
||
const CharacterNovelPage = async () => { | ||
return ( | ||
<div className="flex flex-col gap-12"> | ||
<Novel extended /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CharacterNovelPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
app/(pages)/(content)/people/[slug]/(person-details)/manga/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Metadata, ResolvingMetadata } from 'next'; | ||
|
||
import Manga from '@/features/people/person-view/manga.component'; | ||
|
||
export async function generateMetadata( | ||
{ params }: { params: { slug: string } }, | ||
parent: ResolvingMetadata, | ||
): Promise<Metadata> { | ||
const parentMetadata = await parent; | ||
|
||
return { | ||
title: 'Манґа', | ||
description: parentMetadata.openGraph?.description, | ||
openGraph: { | ||
siteName: parentMetadata.openGraph?.siteName, | ||
description: parentMetadata.openGraph?.description, | ||
images: parentMetadata.openGraph?.images, | ||
title: 'Манґа', | ||
}, | ||
twitter: { | ||
description: parentMetadata.openGraph?.description, | ||
images: parentMetadata.twitter?.images, | ||
title: 'Манґа', | ||
}, | ||
}; | ||
} | ||
|
||
const PersonMangaPage = async () => { | ||
return ( | ||
<div className="flex flex-col gap-12"> | ||
<Manga extended /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PersonMangaPage; |
36 changes: 36 additions & 0 deletions
36
app/(pages)/(content)/people/[slug]/(person-details)/novel/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Metadata, ResolvingMetadata } from 'next'; | ||
|
||
import Novel from '@/features/people/person-view/novel.component'; | ||
|
||
export async function generateMetadata( | ||
{ params }: { params: { slug: string } }, | ||
parent: ResolvingMetadata, | ||
): Promise<Metadata> { | ||
const parentMetadata = await parent; | ||
|
||
return { | ||
title: 'Ранобе', | ||
description: parentMetadata.openGraph?.description, | ||
openGraph: { | ||
siteName: parentMetadata.openGraph?.siteName, | ||
description: parentMetadata.openGraph?.description, | ||
images: parentMetadata.openGraph?.images, | ||
title: 'Ранобе', | ||
}, | ||
twitter: { | ||
description: parentMetadata.openGraph?.description, | ||
images: parentMetadata.twitter?.images, | ||
title: 'Ранобе', | ||
}, | ||
}; | ||
} | ||
|
||
const PersonNovelPage = async () => { | ||
return ( | ||
<div className="flex flex-col gap-12"> | ||
<Novel extended /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PersonNovelPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters