Вот настройка:
- У меня есть контейнер, который должен центрировать дочерние элементы как по горизонтали, так и по вертикали.
- Внутри контейнера я визуализирую три карточки, которые должны отображаться в адаптивной сетке.
Код: Выделить всё
import React from 'react';
import Section from './Section';
import ClipPath from './ClipPath';
import Arrow from './Arrow';
import BluetoothScannerIllustration from './Svg';
const About = () => {
return (
{/* Heading */}
We've Noticed A{' '}
Major
{' '}
Problem.
Transportation hubs are overcrowded,
making people late and frustrated. It's time for a smarter
solution.
The Problem
Overcrowded transit areas, combined with inadequate infrastructure and poor planning, result in persistent delays that affect daily commuters and logistics.
[url=https://psychcentral.com/adhd/why-are-people-with-adhd-always-late]
Explore more
[/url]
[url=https://example.com/solution]
Learn More
[/url]
[url=https://example.com/impact]
Discover Impact
[/url]
);
};
export default About;
Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/793 ... -centering