---
// 404.astro - Custom 404 error page
import BaseLayout from '../layouts/BaseLayout.astro';
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
import Terminal from '../components/Terminal.astro';
// Terminal commands for the 404 page
const terminalCommands = [
{
prompt: "[system@argobox]$ ",
command: "find /var/www/laforceit -name \"requested-page\"",
output: ["find: No matches found"]
},
{
prompt: "[system@argobox]$ ",
command: "grep -r \"requested-page\" /var/www/laforceit",
output: ["No matches found in site content"]
},
{
prompt: "[system@argobox]$ ",
command: "echo $?",
output: ["1"]
},
{
prompt: "[system@argobox]$ ",
command: "suggest_pages",
output: [
"Running site diagnostics...",
"Suggested pages:",
" - Home",
" - Blog",
" - Resources",
" - Projects"
]
},
{
prompt: "[system@argobox]$ ",
command: "return --code=404",
}
];
// Random tech error messages
const errorMessages = [
"Connection terminated unexpectedly.",
"Resource allocation failed: Page not found.",
"Route resolution error: Destination unreachable.",
"404: The requested URL does not exist on this server.",
"Network path not found: Check your request and try again."
];
// Get a random error message
const randomError = errorMessages[Math.floor(Math.random() * errorMessages.length)];
---
Page Not Found
{randomError}