File tree Expand file tree Collapse file tree
components/longevity/Hero Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 padding : 40px 0 ;
1010}
1111
12- @media (max-width : 1160px ) {
12+ .heroRu {
13+ h1 {
14+ font-family : Cormorant_Garamond- Regular, sans-serif !important ;
15+ font-weight : 200 !important ;
16+ }
17+ }
18+
19+ @media (max-width : 1350px ) {
1320 .hero {
1421 text-align : center ;
1522
Original file line number Diff line number Diff line change 11import { FC } from 'react' ;
2- import styles from './Hero.module.scss' ;
2+ import { useRouter } from 'next/router' ;
3+
34import Heading from '@components/Heading' ;
45
6+ import type { TRouter } from '@local-types/global' ;
7+
8+ import longevityData from '@data/longevity' ;
9+
10+ import styles from './Hero.module.scss' ;
11+ import cn from 'classnames' ;
12+
513const Hero : FC = ( { } ) => {
14+ const router = useRouter ( ) ;
15+ const { locale } = router as TRouter ;
16+ const { mainTitle } = longevityData [ locale ] ;
17+
618 return (
7- < section className = { styles . hero } >
8- < Heading text = { 'practical longevity protocol' } />
19+ < section
20+ className = { cn ( styles . hero , {
21+ [ styles . heroRu ] : locale === 'ru' ,
22+ } ) }
23+ >
24+ < Heading text = { mainTitle } />
925 < Heading
1026 text = { 'BY WOLF ALEXANYAN' }
1127 Tag = { 'h2' }
Original file line number Diff line number Diff line change 11const en = {
2+ mainTitle : 'Practical longevity protocol' ,
23 habitTooltipTitle : 'Why do this?' ,
34 foodScienceFactsTitle : 'Food-science facts that most influenced my choices' ,
45 whatNotToEatTitle : 'What not to eat' ,
Original file line number Diff line number Diff line change 11const hy = {
2+ mainTitle : 'Practical longevity protocol' ,
23 habitTooltipTitle : 'Why do this?' ,
34 foodScienceFactsTitle : 'Food-science facts that most influenced my choices' ,
45 whatNotToEatTitle : 'What not to eat' ,
Original file line number Diff line number Diff line change 11const ru = {
2+ mainTitle : 'ПРАКТИЧЕСКИЙ ПРОТОКОЛ ДОЛГОЛЕТИЯ' ,
23 habitTooltipTitle : 'Зачем это делать?' ,
34 foodScienceFactsTitle : 'Научные факты повлиявшие на меня больше всего' ,
45 whatNotToEatTitle : 'Что не есть' ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments