diff --git a/web/src/components/ArticleCard.tsx b/web/src/components/ArticleCard.tsx index 9ab1eb1..546ef40 100644 --- a/web/src/components/ArticleCard.tsx +++ b/web/src/components/ArticleCard.tsx @@ -14,60 +14,26 @@ export function ArticleCard({ article, onClick, onToggleRead, onToggleFavorite }
onClick(article)}> {/* Unread Ribbon - "Paper Corner" Effect */} + {/* Unread Ribbon - Wrapping "Paper Corner" Effect */} {!article.is_read && ( -
- {/* The darker 'fold' triangle behind */} -
-
- - {/* The Ribbon */} -
+
+ {/* Ribbon */} +
Non Lu
- {/* Corner fold simulation (triangle darker) */} -
-
+ {/* Darker Folds for "Wrapping" Effect */} +
+
)} {!article.is_read && ( + /* External folds to complete the "behind" illusion if sticking out */ <> - {/* Top Triangle Fold */} -
- {/* Right Triangle Fold */} -
+
+
)} - {/* Cleaner Implementation: Standard CSS Ribbon with ::before/::after simulated by small divs for the 'behind' effect */} - {!article.is_read && ( -
- {/* Ribbon background */} -
- Non Lu -
-
- )} - {/* Wait, the user wants 'pass behind'. That requires the ribbon to go OUTSIDE the box. - My previous 'overflow-hidden' container clips it inside. - Let's use a non-clipped appraoch. - */} - {!article.is_read && ( -
-
- {/* Fold Triangles (The parts that look like they go behind) */} -
-
- - {/* The main ribbon */} -
-
- Non Lu -
-
-
-
- )} - {/* Image Placeholder with Gold Overlay */}