43 lines
1.6 KiB
TypeScript
43 lines
1.6 KiB
TypeScript
"use client";
|
|
|
|
import React from "react";
|
|
import ReactMarkdown from "react-markdown";
|
|
import { usePlatformConfig } from "@/shared/contexts/PlatformConfigContext";
|
|
import { Card, CardBody } from "@nextui-org/react";
|
|
import { useTranslation } from "@/shared/lib/useTranslation";
|
|
|
|
export const AboutContent: React.FC = () => {
|
|
const { platformConfig } = usePlatformConfig();
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<Card shadow="none" className="bg-transparent">
|
|
<CardBody className="space-y-4">
|
|
<h1 className="text-3xl font-bold mb-6">{t("About Us")}</h1>
|
|
<div className="leading-relaxed prose prose-sm max-w-none">
|
|
{platformConfig.about_page ? (
|
|
<ReactMarkdown>{platformConfig.about_page}</ReactMarkdown>
|
|
) : (
|
|
<ReactMarkdown>
|
|
{`
|
|
${t("**XPack** is a lightweight, open-source marketplace framework for MCP (Model Context Protocol) services.")}
|
|
${t("It allows you to transform any OpenAPI into a monetizable MCP service and build your own API store in just minutes.")}
|
|
|
|
|
|
${t("✨ With XPack, you can:")}
|
|
${t("- ✅ **One-click OpenAPI → MCP service config**")}
|
|
${t("- 🧾 **SEO-friendly homepage + mcp service page**")}
|
|
${t("- 💳 **Built-in billing (per-call)**")}
|
|
${t("- 👥 **User account management**")}
|
|
${t("- 🛠 **Support Stripe Payment**")}
|
|
${t("- 🔐 **Support Email & Google OAuth Sign in**")}
|
|
|
|
${t("Everything is open-source and licensed under **Apache 2.0** — ready for commercial use.")}`}
|
|
</ReactMarkdown>
|
|
)}
|
|
</div>
|
|
</CardBody>
|
|
</Card>
|
|
);
|
|
};
|