diff --git a/client/src/pages/EntryPage.tsx b/client/src/pages/EntryPage.tsx index eb98fa5..9d101a4 100644 --- a/client/src/pages/EntryPage.tsx +++ b/client/src/pages/EntryPage.tsx @@ -38,6 +38,9 @@ export default function EntryPage() { const counts = entry.counts || { grammar: 0, vocab: 0, key_phrases: 0, conversation: 0, quiz: 0 }; const quizLink = `/quiz?mode=entry&id=${encodeURIComponent(entry.id)}`; + const ig = entry.ig_meta; + const profileUrl = ig?.profile_url || (ig?.username ? `https://www.instagram.com/${ig.username}/` : undefined); + const postDate = ig?.post_date ? new Date(ig.post_date).toLocaleString() : undefined; return (
@@ -63,6 +66,31 @@ export default function EntryPage() {
+ {ig && ( +
+ {ig.profile_pic_url ? ( + + {ig.username + + ) : ( +
+ )} +
+
+ {ig.username ? ( + + {ig.username} + + ) : ( + Instagram + )} + {ig.full_name && ยท {ig.full_name}} +
+
{postDate || ig.post_date || 'Date unknown'}
+ {ig.description &&

{ig.description}

} +
+
+ )}