Skip to content

Commit

Permalink
Feature/improve tales header (#334)
Browse files Browse the repository at this point in the history
* Update [story].tsx

add the title of the current story

* add property 'image' to - stories.ts and index.ts; change defult image to the current image of the story - [story].tsx

* add changes  - image current story
  • Loading branch information
daria31v authored Jul 18, 2023
1 parent cc1d63a commit 295bd42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/kids/stories/[story].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ const StoriesContainer = ({ story, phrases }: StoriesProps): ReactNode => {

const title_current = story.title[currentLanguage] || '';
const title_other = story.title[otherLanguage] || '';
const image_current_story = story.slug;

return (
<div className="bg-gradient-to-r from-[#fdf6d2] to-[#99bde4] -mb-8 -mt-2 md:p-12 w-full">
<SEO
title={t(`seo.kids_page_storiesTitle.${getCountryVariant()}`)}
title={`${title_current + ' - '}` + t(`seo.kids_page_storiesTitle.${getCountryVariant()}`)}
description={t(`seo.kids_page_storiesDescription.${getCountryVariant()}`)}
image="https://www.movapp.cz/kids/hrad.png"
image={`https://www.movapp.cz/kids/' + ${image_current_story} + '.jpg'`}
/>
{['cs', 'sk'].includes(getCountryVariant()) ? (
<>
Expand Down

0 comments on commit 295bd42

Please sign in to comment.