Skip to content

Commit

Permalink
refactor(home): Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Dec 9, 2024
1 parent 0d11164 commit 3b58c85
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions client/src/pages/home.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Col, Container, Row } from '@dataesr/dsfr-plus';
import { Col, Container, Row, Title } from '@dataesr/dsfr-plus';
import { FormattedMessage } from 'react-intl';

import DatasetsTile from '../components/tiles/datasets';
Expand All @@ -12,30 +12,31 @@ export default function Home() {
<>
<Header isExpanded />
<Container as="section" className="fr-mt-4w">
<Row gutters className="fr-mb-8w">
<Row className="fr-mb-3w">
<Title as="h3">
<FormattedMessage id="feedback-title" />
</Title>
<p>
<FormattedMessage id="feedback-description-1" />
</p>
<p>
<h3>
<FormattedMessage id="feedback-title" />
</h3>
<div>
<FormattedMessage id="feedback-description-1" />
<br />
<FormattedMessage id="feedback-description-2" />
</div>
<FormattedMessage id="feedback-description-2" />
</p>
</Row>
<Row gutters className="fr-mb-8w">
<Col sm={12} md={6}>
<OpenalexTile />
</Col>
<Col sm={12} md={6}>
<MentionsTile />
</Col>
</Row>
<Row gutters className="fr-mb-16w">
<h3>
<Row>
<Title as="h3">
<FormattedMessage id="corpus-title" />
</h3>
</Title>
</Row>
<Row gutters>
<Row gutters className="fr-mb-16w">
<Col sm={12} md={6}>
<PublicationsTile />
</Col>
Expand Down

0 comments on commit 3b58c85

Please sign in to comment.