From beda2ce66cf5e4c9c89d5c4ac81960a4b14c4a9d Mon Sep 17 00:00:00 2001 From: Arunavo Ray Date: Fri, 3 Oct 2025 13:15:24 +0530 Subject: [PATCH] Added a few more articles --- www/src/components/UseCases.astro | 12 +- www/src/components/UseCasesList.tsx | 79 +++++++++ www/src/layouts/UseCaseIndexLayout.astro | 115 +++++++++++++ www/src/lib/use-cases.ts | 40 +++++ .../use-cases/github-backup-automation.mdx | 67 ++++++++ www/src/pages/use-cases/index.mdx | 161 ++++++++++++------ .../use-cases/preserve-github-history.mdx | 69 ++++++++ .../use-cases/starred-repos-collection.mdx | 61 +++++++ .../sync-github-to-self-hosted-gitea.mdx | 71 ++++++++ .../use-cases/vendor-lock-in-prevention.mdx | 61 +++++++ 10 files changed, 684 insertions(+), 52 deletions(-) create mode 100644 www/src/components/UseCasesList.tsx create mode 100644 www/src/layouts/UseCaseIndexLayout.astro create mode 100644 www/src/pages/use-cases/github-backup-automation.mdx create mode 100644 www/src/pages/use-cases/preserve-github-history.mdx create mode 100644 www/src/pages/use-cases/starred-repos-collection.mdx create mode 100644 www/src/pages/use-cases/sync-github-to-self-hosted-gitea.mdx create mode 100644 www/src/pages/use-cases/vendor-lock-in-prevention.mdx diff --git a/www/src/components/UseCases.astro b/www/src/components/UseCases.astro index 7fc1cb8..c7aec5e 100644 --- a/www/src/components/UseCases.astro +++ b/www/src/components/UseCases.astro @@ -19,7 +19,7 @@ import { useCases } from '@/lib/use-cases';
- {useCases.map((useCase) => ( + {useCases.slice(0, 3).map((useCase) => (
@@ -60,5 +60,15 @@ import { useCases } from '@/lib/use-cases';
))}
+ +
+ + View more use cases + + +
diff --git a/www/src/components/UseCasesList.tsx b/www/src/components/UseCasesList.tsx new file mode 100644 index 0000000..9ca2496 --- /dev/null +++ b/www/src/components/UseCasesList.tsx @@ -0,0 +1,79 @@ + +import { useCases } from '@/lib/use-cases'; +import { ArrowRight } from 'lucide-react'; + +const featured = useCases.slice(0, 3); +const more = useCases.slice(3); + +export function FeaturedUseCases() { + return ( +
+ {featured.map((item) => ( +
+
+ {item.tags.map((tag) => ( + {tag} + ))} +
+

{item.title}

+

{item.summary}

+
+
+

Pain point

+

{item.painPoint}

+
+
+

Outcome

+

{item.outcome}

+
+
+ + View playbook + + +
+ ))} +
+ ); +} + +export function MoreUseCases() { + return ( +
+ {more.map((item) => ( +
+
+ {item.tags.map((tag) => ( + {tag} + ))} +
+ +

{item.title}

+

{item.summary}

+ +
+
+

Pain point

+

{item.painPoint}

+
+
+

Outcome

+

{item.outcome}

+
+
+ + + View playbook + + +
+ ))} +
+ ) +} diff --git a/www/src/layouts/UseCaseIndexLayout.astro b/www/src/layouts/UseCaseIndexLayout.astro new file mode 100644 index 0000000..9a7722c --- /dev/null +++ b/www/src/layouts/UseCaseIndexLayout.astro @@ -0,0 +1,115 @@ +--- +import '../styles/global.css'; +import { Header } from '../components/Header'; +import Footer from '../components/Footer.astro'; + +const { + content: { + title = 'Use Case', + description = 'Explore how Gitea Mirror helps engineering teams stay resilient.', + canonical = 'https://gitea-mirror.com/use-cases', + } +} = Astro.props; +--- + + + + + + {title} · Gitea Mirror + + + + + + +
+
+
+ +
+
+