Skip to content

Commit cedbde9

Browse files
authored
Merge pull request #39 from keepsimpleio/chore/food-choices-section
chore: add Food choices section
2 parents d3cbd42 + 0dcfc51 commit cedbde9

5 files changed

Lines changed: 13 additions & 1 deletion

File tree

src/data/longevity/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const en = {
77
damageIndexTitle: 'Damage Index',
88
examplesTitle: 'Examples',
99
genericRulesTitle: 'Generic rules',
10+
healthChoicesTitle: 'Food choices for Armenia',
1011
hacksTitle: 'Hacks',
1112
tooltipSubText: 'Consumption consequences',
1213
viewSleepChart: 'View sleep structure chart',

src/data/longevity/hy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const hy = {
77
damageIndexTitle: 'Damage Index',
88
examplesTitle: 'Examples',
99
genericRulesTitle: 'Generic rules',
10+
healthChoicesTitle: 'Food choices for Armenia',
1011
hacksTitle: 'Hacks',
1112
tooltipSubText: 'Consumption consequences',
1213
viewSleepChart: 'View sleep structure chart',

src/data/longevity/ru.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const ru = {
77
damageIndexTitle: 'Индекс вреда',
88
examplesTitle: 'Примеры',
99
genericRulesTitle: 'Общие правила',
10+
healthChoicesTitle: 'Полезные продукты в Армении',
1011
hacksTitle: 'Лайфхаки',
1112
tooltipSubText: 'Последствия потребления',
1213
viewSleepChart: 'Показать чарт структуры сна',

src/data/navbar/ru.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const ru = {
33
companyManagement: 'Управление Компанией',
44
articles: 'Статьи',
55
contributorsTxt: 'участники',
6-
tools: 'Инструменты',
6+
tools: 'Протокол Долголетия',
77
};
88

99
export default ru;

src/layouts/DietLayout/DietLayout.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const DietLayout: FC<DietLayoutProps> = ({ locale, data }) => {
2727
whatToEatTitle,
2828
whatNotToEatTitle,
2929
genericRulesTitle,
30+
healthChoicesTitle,
3031
hacksTitle,
3132
tooltipSubText,
3233
whatTOEatOrAvoidContent,
@@ -163,6 +164,14 @@ const DietLayout: FC<DietLayoutProps> = ({ locale, data }) => {
163164
'/keepsimple_/assets/longevity/diet/generic-rules-headline.png'
164165
}
165166
/>
167+
<LongevitySubSection
168+
locale={locale}
169+
title={healthChoicesTitle}
170+
description={data?.['food choices for Armenia']}
171+
headlineBackgroundImageUrl={
172+
'/keepsimple_/assets/longevity/diet/generic-rules-headline.png'
173+
}
174+
/>
166175
<LongevitySubSection
167176
locale={locale}
168177
title={hacksTitle}

0 commit comments

Comments
 (0)