Skip to content

404 Pages

Adding a custom 404 page gives personality to your website and is a nice touch. To add it, create a 404.astro file directly in the pages folder, import your layout, and include the component inside it.

src/pages/404.astro
---
// Import your layout
import Layout404 from "../layouts/Layout404.astro";
//Import the page
import Simple404 from "../components/Simple404.astro"
---
<Layout404>
<Simple404 />
</Layout404>

404 page component that displays a large ‘404’ error message, accompanied by a short description and a background image. Perfect for customizing the user experience when visiting non-existent routes on your site.

404

Whops!

Everything is fine you just need to come back home.

¿
404 background image

A 404 page with your logo on it, with a touch of Planckstar’s design, sober yet effective, featuring a clean and elegant background.

Main Logo

404Page Not Found

The page you are looking for does not exist.