+
+
{t.articlesCount(getTotalArticles())}
+
+
+ {categoryGroups.map((group) => {
+ const isExpanded = expandedCategories.has(group.category);
+ return (
+
+
toggleCategory(group.category)}
+ style={{ cursor: 'pointer', userSelect: 'none' }}
+ >
+
+ {isExpanded ? '▼' : '▶'}
+ {group.category}
+
+ {group.items.length}
+
+
+ {isExpanded && (
+
+ {group.items.map((item, index) => (
+
+
+ {item.source}
+
+
+
+
+ ))}
+
+ )}
+
+ );
+ })}
+
+ );
+};
+
+export default RSSFeedWidget;
diff --git a/src/components/RSSFeedWidget/styles.module.css b/src/components/RSSFeedWidget/styles.module.css
new file mode 100644
index 0000000..21dc5e1
--- /dev/null
+++ b/src/components/RSSFeedWidget/styles.module.css
@@ -0,0 +1,212 @@
+/* Conteneur principal */
+.container {
+ margin: 2rem 0;
+}
+
+/* Résumé du jour */
+.summary {
+ padding: 1rem 1.5rem;
+ margin-bottom: 2rem;
+ background: linear-gradient(135deg, var(--ifm-color-primary-lightest) 0%, var(--ifm-color-primary-lighter) 100%);
+ border-left: 4px solid var(--ifm-color-primary);
+ border-radius: 8px;
+ font-size: 1.1rem;
+ font-weight: 600;
+ color: var(--ifm-color-primary-darker);
+}
+
+.summary p {
+ margin: 0;
+}
+
+/* Section par catégorie */
+.categorySection {
+ margin-bottom: 3rem;
+}
+
+.categoryTitle {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 1rem;
+ margin-bottom: 1.5rem;
+ padding: 0.75rem 1rem;
+ background-color: var(--ifm-background-surface-color);
+ border: 2px solid var(--ifm-color-primary-lighter);
+ border-radius: 8px;
+ font-size: 1.5rem;
+ color: var(--ifm-color-content);
+ transition: all 0.2s ease;
+}
+
+.categoryTitle:hover {
+ background-color: var(--ifm-color-primary-lightest);
+ border-color: var(--ifm-color-primary);
+}
+
+.categoryTitleContent {
+ display: flex;
+ align-items: center;
+ gap: 0.75rem;
+ flex: 1;
+}
+
+.expandIcon {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 1.5rem;
+ color: var(--ifm-color-primary);
+ font-size: 0.9rem;
+ transition: transform 0.2s ease;
+}
+
+.categoryCount {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-width: 2rem;
+ height: 2rem;
+ padding: 0 0.75rem;
+ background-color: var(--ifm-color-primary);
+ color: white;
+ border-radius: 12px;
+ font-size: 1rem;
+ font-weight: 700;
+}
+
+/* Liste des flux */
+.feedList {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+}
+
+/* Article individuel */
+.feedItem {
+ padding: 1.5rem;
+ background-color: var(--ifm-background-surface-color);
+ border: 1px solid var(--ifm-color-emphasis-200);
+ border-radius: 8px;
+ transition: all 0.2s ease;
+}
+
+.feedItem:hover {
+ border-color: var(--ifm-color-primary);
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ transform: translateY(-2px);
+}
+
+/* En-tête de l'article */
+.feedHeader {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 1rem;
+ margin-bottom: 0.75rem;
+ flex-wrap: wrap;
+}
+
+.source {
+ display: inline-block;
+ padding: 0.25rem 0.75rem;
+ background-color: var(--ifm-color-emphasis-100);
+ color: var(--ifm-color-content-secondary);
+ border-radius: 4px;
+ font-size: 0.85rem;
+ font-weight: 500;
+}
+
+.date {
+ color: var(--ifm-color-content-secondary);
+ font-size: 0.85rem;
+ white-space: nowrap;
+}
+
+/* Titre de l'article */
+.title {
+ margin: 0;
+ font-size: 1.1rem;
+ line-height: 1.4;
+}
+
+.title a {
+ color: var(--ifm-color-content);
+ text-decoration: none;
+ transition: color 0.2s ease;
+}
+
+.title a:hover {
+ color: var(--ifm-color-primary);
+ text-decoration: underline;
+}
+
+/* État de chargement */
+.loading {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: 3rem;
+ color: var(--ifm-color-content-secondary);
+}
+
+.spinner {
+ width: 40px;
+ height: 40px;
+ border: 4px solid var(--ifm-color-emphasis-300);
+ border-top-color: var(--ifm-color-primary);
+ border-radius: 50%;
+ animation: spin 1s linear infinite;
+ margin-bottom: 1rem;
+}
+
+@keyframes spin {
+ to {
+ transform: rotate(360deg);
+ }
+}
+
+/* État d'erreur */
+.error {
+ padding: 2rem;
+ background-color: var(--ifm-color-danger-contrast-background);
+ border: 1px solid var(--ifm-color-danger);
+ border-radius: 8px;
+ color: var(--ifm-color-danger-darker);
+ text-align: center;
+}
+
+/* Aucun article */
+.noArticles {
+ padding: 3rem 2rem;
+ background-color: var(--ifm-background-surface-color);
+ border: 2px dashed var(--ifm-color-emphasis-300);
+ border-radius: 8px;
+ text-align: center;
+ color: var(--ifm-color-content-secondary);
+}
+
+.noArticles p {
+ margin: 0.5rem 0;
+ font-size: 1.1rem;
+}
+
+/* Responsive */
+@media (max-width: 768px) {
+ .categoryTitle {
+ font-size: 1.4rem;
+ }
+
+ .feedItem {
+ padding: 1rem;
+ }
+
+ .title {
+ font-size: 1rem;
+ }
+
+ .summary {
+ font-size: 1rem;
+ }
+}
diff --git a/src/css/custom.css b/src/css/custom.css
index d380b87..1221013 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -26,7 +26,8 @@
============================================ */
.header-github-link::before,
-.header-forgejo-link::before {
+.header-forgejo-link::before,
+.header-rss-link::before {
content: '';
display: flex;
width: 24px;
@@ -47,9 +48,15 @@
background-image: url('/img/forgejo-logo.svg');
}
+/* RSS icon */
+.header-rss-link::before {
+ background-image: url('/img/rss-color-svgrepo-com.svg');
+}
+
/* Hide the default link text (if any) */
.header-github-link > span,
-.header-forgejo-link > span {
+.header-forgejo-link > span,
+.header-rss-link > span {
display: none;
}
@@ -68,7 +75,8 @@
============================================ */
.header-github-link:hover::before,
-.header-forgejo-link:hover::before {
+.header-forgejo-link:hover::before,
+.header-rss-link:hover::before {
opacity: 0.8;
}
@@ -90,6 +98,15 @@
filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.8));
}
+/* RSS hover glow effect - orange RSS color */
+.header-rss-link:hover::before {
+ filter: drop-shadow(0 0 6px rgba(255, 153, 0, 0.7));
+}
+
+[data-theme='dark'] .header-rss-link:hover::before {
+ filter: drop-shadow(0 0 8px rgba(255, 153, 0, 0.8));
+}
+
/* ============================================
Search Bar Styling
============================================ */
diff --git a/src/pages/veille.module.css b/src/pages/veille.module.css
new file mode 100644
index 0000000..89ad2c4
--- /dev/null
+++ b/src/pages/veille.module.css
@@ -0,0 +1,155 @@
+.veillePage {
+ padding: 2rem 0;
+ min-height: calc(100vh - 60px);
+}
+
+.header {
+ text-align: center;
+ margin-bottom: 3rem;
+ padding-bottom: 2rem;
+ border-bottom: 2px solid var(--ifm-color-emphasis-200);
+}
+
+.header h1 {
+ font-size: 3rem;
+ margin-bottom: 1rem;
+ color: var(--ifm-color-primary);
+}
+
+.subtitle {
+ font-size: 1.2rem;
+ color: var(--ifm-color-content-secondary);
+ max-width: 800px;
+ margin: 0 auto 2rem;
+ line-height: 1.6;
+}
+
+.actions {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 0.75rem;
+ margin-top: 2rem;
+}
+
+.downloadButton {
+ display: inline-block;
+ padding: 0.75rem 2rem;
+ background: var(--ifm-color-primary);
+ color: white;
+ text-decoration: none;
+ border-radius: 8px;
+ font-weight: 600;
+ font-size: 1.1rem;
+ transition: all 0.2s ease;
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
+}
+
+.downloadButton:hover {
+ background: var(--ifm-color-primary-dark);
+ transform: translateY(-2px);
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
+ color: white;
+ text-decoration: none;
+}
+
+.opmlInfo {
+ font-size: 0.9rem;
+ color: var(--ifm-color-content-secondary);
+ font-style: italic;
+ margin: 0;
+}
+
+.content {
+ margin: 3rem 0;
+}
+
+.footer {
+ margin-top: 4rem;
+ padding-top: 3rem;
+ border-top: 2px solid var(--ifm-color-emphasis-200);
+}
+
+.footer h2 {
+ text-align: center;
+ margin-bottom: 2rem;
+ color: var(--ifm-color-content);
+}
+
+.infoGrid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+ gap: 2rem;
+ margin-top: 2rem;
+}
+
+.infoCard {
+ padding: 1.5rem;
+ background-color: var(--ifm-background-surface-color);
+ border: 1px solid var(--ifm-color-emphasis-200);
+ border-radius: 8px;
+ transition: all 0.2s ease;
+}
+
+.infoCard:hover {
+ border-color: var(--ifm-color-primary);
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+}
+
+.infoCard h3 {
+ margin-top: 0;
+ margin-bottom: 1rem;
+ color: var(--ifm-color-primary);
+ font-size: 1.3rem;
+}
+
+.infoCard p {
+ margin-bottom: 0;
+ line-height: 1.6;
+ color: var(--ifm-color-content);
+}
+
+.infoCard ul {
+ margin: 0;
+ padding-left: 1.5rem;
+ line-height: 1.8;
+}
+
+.infoCard li {
+ margin-bottom: 0.5rem;
+ color: var(--ifm-color-content);
+}
+
+/* Responsive */
+@media (max-width: 996px) {
+ .header h1 {
+ font-size: 2.5rem;
+ }
+
+ .subtitle {
+ font-size: 1.1rem;
+ }
+
+ .infoGrid {
+ grid-template-columns: 1fr;
+ }
+}
+
+@media (max-width: 768px) {
+ .veillePage {
+ padding: 1rem 0;
+ }
+
+ .header h1 {
+ font-size: 2rem;
+ }
+
+ .subtitle {
+ font-size: 1rem;
+ }
+
+ .downloadButton {
+ padding: 0.6rem 1.5rem;
+ font-size: 1rem;
+ }
+}
diff --git a/src/pages/veille.tsx b/src/pages/veille.tsx
new file mode 100644
index 0000000..f10b99b
--- /dev/null
+++ b/src/pages/veille.tsx
@@ -0,0 +1,39 @@
+import React from 'react';
+import Layout from '@theme/Layout';
+import RSSFeedWidget from '@site/src/components/RSSFeedWidget';
+import styles from './veille.module.css';
+
+export default function Veille(): JSX.Element {
+ return (
+