Placeholder.tsx 1.1 KB

1234567891011121314151617181920212223242526272829
  1. import { FileQuestion, Home } from "lucide-react";
  2. import Link from "next/link";
  3. interface PlaceholderProps {
  4. title: string;
  5. }
  6. export default function Placeholder({ title }: PlaceholderProps) {
  7. return (
  8. <div className="flex-1 flex flex-col items-center justify-center p-8 text-center animate-in fade-in duration-500">
  9. <div className="w-24 h-24 bg-surface-container rounded-full flex items-center justify-center mb-6 shadow-elevation-1">
  10. <FileQuestion className="w-12 h-12 text-primary" />
  11. </div>
  12. <h1 className="text-3xl font-display font-medium text-on-surface mb-3">
  13. {title}
  14. </h1>
  15. <p className="text-secondary max-w-md mb-8">
  16. 此功能模块目前正在建设中
  17. </p>
  18. <Link
  19. href="/"
  20. className="flex items-center px-6 py-3 bg-primary text-on-primary rounded-full shadow-lg hover:shadow-primary/20 hover:bg-white transition-all font-medium text-sm gap-2"
  21. >
  22. <Home className="w-5 h-5" />
  23. 返回总览面板
  24. </Link>
  25. </div>
  26. );
  27. }