not-found-renderer.tsx 668 B

123456789101112131415161718192021222324252627
  1. import React from "react";
  2. /**
  3. * Not-found component for json-render Next.js apps.
  4. *
  5. * Renders when the pathname does not match any route in the spec.
  6. */
  7. export function NextNotFound() {
  8. return (
  9. <div
  10. style={{
  11. display: "flex",
  12. flexDirection: "column",
  13. alignItems: "center",
  14. justifyContent: "center",
  15. minHeight: "400px",
  16. padding: "2rem",
  17. textAlign: "center",
  18. }}
  19. >
  20. <h1 style={{ fontSize: "4rem", fontWeight: 700, margin: 0 }}>404</h1>
  21. <p style={{ color: "#666", marginTop: "0.5rem", fontSize: "1.125rem" }}>
  22. This page could not be found.
  23. </p>
  24. </div>
  25. );
  26. }