From fe1bfe8ff77edaa95335f9959e2c78ed149a09e0 Mon Sep 17 00:00:00 2001 From: Diego-C-05 Date: Wed, 6 May 2026 10:29:54 +0200 Subject: [PATCH] feat: aggiunto collegamento a fonte tramite titolo --- cose.md | 3 +++ .../src/components/FeedContent.tsx | 1 + frontend-BriefAI/src/components/MagicCard.tsx | 18 ++++++++++++++++-- frontend-BriefAI/src/pages/FeedPage.css | 11 +++++++++++ 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/cose.md b/cose.md index 1b8f0e4..0fdb3af 100644 --- a/cose.md +++ b/cose.md @@ -5,3 +5,6 @@ onCancelSubscription e onUpgrade sono void (AccountSettings.tsx) in feedservices.ts non capisco se il token è quello che ho impostato io o è random email non va bene perchè viene accettata a prescindere anche se non ha senso + + +togli link dagli articoli processed \ No newline at end of file diff --git a/frontend-BriefAI/src/components/FeedContent.tsx b/frontend-BriefAI/src/components/FeedContent.tsx index fd44d64..b0e7e6f 100644 --- a/frontend-BriefAI/src/components/FeedContent.tsx +++ b/frontend-BriefAI/src/components/FeedContent.tsx @@ -64,6 +64,7 @@ function FeedContent({ sentimentFilter = null, topicsFilter = null }: FeedConten (null) const handleVote = (vote: 1 | -1) => { @@ -35,7 +36,20 @@ function MagicCard({ articleId, source, timeAgo, sentiment, title, summary, tags {sentiment} -

{title}

+ {articleUrl ? ( +

+ + {title} + +

+ ) : ( +

{title}

+ )}

{summary}

{/* Tag tematici: servono a classificare velocemente la notizia. */} diff --git a/frontend-BriefAI/src/pages/FeedPage.css b/frontend-BriefAI/src/pages/FeedPage.css index 8d98397..c0d66a8 100644 --- a/frontend-BriefAI/src/pages/FeedPage.css +++ b/frontend-BriefAI/src/pages/FeedPage.css @@ -283,6 +283,17 @@ transition: color 180ms ease; } +.magic-card-title-link { + color: inherit; + text-decoration: none; + display: inline-block; +} + +.magic-card-title-link:hover, +.magic-card-title-link:focus-visible { + text-decoration: underline; +} + .magic-card:hover .magic-card-title { color: #2563eb; }