Gone.tsx 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { useLocation, Link } from "react-router-dom";
  2. import { useEffect } from "react";
  3. import { SEO } from "@/components/SEO";
  4. const Gone = () => {
  5. const location = useLocation();
  6. useEffect(() => {
  7. console.warn(
  8. "410 Gone: User attempted to access permanently removed content:",
  9. location.pathname
  10. );
  11. }, [location.pathname]);
  12. return (
  13. <>
  14. <SEO
  15. title="Contenu supprimé - 410 Gone"
  16. description="Cette page n'existe plus. Le contenu a été définitivement supprimé ou déplacé."
  17. canonical={`https://feeds.duhaz.fr${location.pathname}`}
  18. />
  19. <div className="min-h-screen flex items-center justify-center bg-background">
  20. <div className="text-center max-w-2xl px-4">
  21. <h1 className="text-6xl font-bold mb-4 text-foreground">410</h1>
  22. <h2 className="text-2xl font-semibold mb-4 text-foreground">
  23. Contenu définitivement supprimé
  24. </h2>
  25. <p className="text-lg text-muted-foreground mb-6">
  26. Cette page n'existe plus. Le contenu a été supprimé ou déplacé
  27. suite à une refonte du site.
  28. </p>
  29. <div className="flex flex-col sm:flex-row gap-4 justify-center">
  30. <Link
  31. to="/"
  32. className="px-6 py-3 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition"
  33. >
  34. Accueil
  35. </Link>
  36. <Link
  37. to="/feeds"
  38. className="px-6 py-3 bg-secondary text-secondary-foreground rounded-lg hover:bg-secondary/90 transition"
  39. >
  40. Gérer mes flux
  41. </Link>
  42. </div>
  43. </div>
  44. </div>
  45. </>
  46. );
  47. };
  48. export default Gone;