Skip to content

Commit

Permalink
Merge pull request #666 from betagouv/feat/update_stats
Browse files Browse the repository at this point in the history
feat: update stats
  • Loading branch information
totakoko authored Jan 2, 2024
2 parents f261627 + 0c8a20b commit c4f411b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
5 changes: 5 additions & 0 deletions src/components/Statistics/Statistics.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,8 @@ export const LastActuDate = styled.div`
margin-bottom: 24px;
font-size: 0.9rem;
`;

export const HorizontalSeparator = styled.div`
width: 100%;
border: 1px solid #e1e1e1;
`;
4 changes: 3 additions & 1 deletion src/components/Statistics/Statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
ColumnContainer,
Container,
GraphsWrapper,
HorizontalSeparator,
LastActuDate,
LoadingTextHighlight,
NumberBlock,
Expand Down Expand Up @@ -637,7 +638,8 @@ const Statistics = () => {
iframes
</Link>
</NumberBlock>
<NumberBlock className="fr-mt-2w">
<HorizontalSeparator />
<NumberBlock>
<NumberHighlight>{totalDownload}</NumberHighlight>
Téléchargements des tracés sur le site
</NumberBlock>
Expand Down
12 changes: 6 additions & 6 deletions src/data/statistics.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const statistics = {
connection: '500',
CO2Tons: '28 000',
networks: '640',
connection: '590',
CO2Tons: '33 000',
networks: '710',
heatPercent: '90',
connectionPercent: '25',
iFrameIntegration: '9',
lastActu: '1er novembre 2023',
connectionPercent: '24',
iFrameIntegration: '16',
lastActu: '1er janvier 2024',
};

export default statistics;

0 comments on commit c4f411b

Please sign in to comment.