diff --git a/web/src/components/ArticleCard.tsx b/web/src/components/ArticleCard.tsx index 1dfd967..699e888 100644 --- a/web/src/components/ArticleCard.tsx +++ b/web/src/components/ArticleCard.tsx @@ -11,32 +11,32 @@ export function ArticleCard({ article, onClick, onToggleRead, onToggleFavorite } const timeToRead = Math.ceil((article.content?.length || 500) / 1000) + 1; return ( -
onClick(article)}> +
onClick(article)}> {/* Unread Ribbon - Polished Wrapping Effect */} {!article.is_read && (
{/* The Ribbon Itself */} -
+
Non Lu
{/* Darker Folds for "Wrapping" Effect (Simulated behind the card) */} -
-
+
+
)} {!article.is_read && ( /* External fold bits to cover the corner if needed for perfection */ <> -
-
+
+
)} - {/* Image Placeholder with Gold Overlay */} -
-
+ {/* Image Placeholder with Gradient Overlay */} +
+
{/* Visual placeholder or real image */}
- + {article.feed_title || 'Journal'} - + {timeToRead} min
@@ -60,14 +60,14 @@ export function ArticleCard({ article, onClick, onToggleRead, onToggleFavorite } {/* Content */}
-

{article.title}

{article.summary && ( -

+

{article.summary.replace(/<[^>]*>?/gm, '').substring(0, 160)}...

)} @@ -79,7 +79,7 @@ export function ArticleCard({ article, onClick, onToggleRead, onToggleFavorite } e.stopPropagation(); onToggleRead(article.id, !article.is_read); }} - className={`p-1.5 rounded-full transition-all duration-300 border ${article.is_read ? 'text-gold/40 border-gold/10' : 'text-gold bg-gold/5 border-paper-white/40 hover:bg-gold/20 hover:border-paper-white'}`} + className={`p-1.5 rounded-full transition-all duration-300 border ${article.is_read ? 'text-nature/40 border-nature/10' : 'text-nature bg-nature/5 border-paper-white/40 hover:bg-nature/20 hover:border-nature'}`} title={article.is_read ? "Marquer comme non lu" : "Marquer comme lu"} > @@ -91,7 +91,7 @@ export function ArticleCard({ article, onClick, onToggleRead, onToggleFavorite } e.stopPropagation(); onToggleFavorite(article.id); }} - className={`p-1.5 rounded-full transition-all duration-300 ${article.is_favorite ? 'text-gold gold-glow' : 'text-paper-muted hover:text-gold hover:bg-gold/10'}`} + className={`p-1.5 rounded-full transition-all duration-300 ${article.is_favorite ? 'text-nature nature-glow' : 'text-paper-muted hover:text-nature hover:bg-nature/10'}`} title="Ajouter aux favoris" > diff --git a/web/src/components/Sidebar.tsx b/web/src/components/Sidebar.tsx index fe9b346..5c97354 100644 --- a/web/src/components/Sidebar.tsx +++ b/web/src/components/Sidebar.tsx @@ -68,16 +68,17 @@ export function Sidebar({ onSelectFeed, selectedFeedId }: SidebarProps) {
+

onSelectFeed(null)} > FlowReader

@@ -129,12 +130,12 @@ export function Sidebar({ onSelectFeed, selectedFeedId }: SidebarProps) { @@ -144,24 +145,24 @@ export function Sidebar({ onSelectFeed, selectedFeedId }: SidebarProps) {
-
-

Mode Zen

+
+

Mode Zen

"Le silence est le bruit des esprits."