diff --git a/front/src/pages/ArticlePage.tsx b/front/src/pages/ArticlePage.tsx index b3d99ad..3ab05f8 100644 --- a/front/src/pages/ArticlePage.tsx +++ b/front/src/pages/ArticlePage.tsx @@ -1,5 +1,7 @@ import React, { useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; +import NavBar from '../components/NavBar'; +import Footer from '../components/Footer'; interface Article { id: string; @@ -7,6 +9,7 @@ interface Article { content: string; author: string; publishedAt: string; + editedAt: string; } const ArticlePage: React.FC = () => { @@ -36,17 +39,38 @@ const ArticlePage: React.FC = () => { } return ( -
{article.content}
-By {article.author}
-Published on {new Date(article.publishedAt).toLocaleDateString()}
+ color: 'var(--color-black)', + fontFamily: '"Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif', + fontSize: '14px', + lineHeight: '20px', + padding: '1.25em', + paddingBottom: '1em', + textAlign: 'left', + maxWidth: '60rem', + margin: 'auto', + }}> +écrit par {article.author} le {new Date(article.publishedAt).toLocaleDateString()} (Dernière modification le : {new Date(article.editedAt || article.publishedAt).toLocaleDateString()})
+{article.content}
+