RC-7-home-page (#5)
https://ru.yougile.com/team/a605078664af/#chat:2ae00178ba0d Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
18
src/app/main/home/components/Statistics.js
Normal file
18
src/app/main/home/components/Statistics.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { memo } from 'react';
|
||||
import { withTranslation } from 'react-i18next';
|
||||
import StatisticsCard from './StatisticsCard';
|
||||
|
||||
function Statistics({ t }) {
|
||||
return (
|
||||
<section className="flex flex-col items-center">
|
||||
<div className="flex gap-20 mb-[136px]">
|
||||
<StatisticsCard title={t('stat_title_1')} text={t('stat_text_1')} />
|
||||
<StatisticsCard title={t('stat_title_2')} text={t('stat_text_2')} />
|
||||
<StatisticsCard title={t('stat_title_3')} text={t('stat_text_3')} />
|
||||
</div>
|
||||
<h2 className="max-w-[1020px] mb-4 text-5xl text-center">{t('caption')}</h2>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
export default withTranslation('homePage')(memo(Statistics));
|
||||
Reference in New Issue
Block a user