import { AppsExplorer } from "@/components/apps-explorer";
import { getApps } from "@/services/apps.service";

export default async function AppsPage() {
  const apps = await getApps();
  return (
    <div className="space-y-5 py-6 md:space-y-6 md:py-8">
      <section className="panel">
        <p className="text-xs uppercase tracking-[0.25em] text-cyan-200/80">Download Center</p>
        <h1 className="mt-2 text-2xl font-bold md:text-3xl">网盘资源下载站</h1>
        <p className="mt-2 max-w-2xl text-sm text-slate-300 md:text-base">
          聚合热门工具、影视和学习资源，支持多渠道下载与版本回溯，快速定位你需要的资源。
        </p>
      </section>
      <AppsExplorer apps={apps} />
    </div>
  );
}
