/* * Copyright (C) 2026 Fluxer Contributors * * This file is part of Fluxer. * * Fluxer is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Fluxer is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Fluxer. If not, see . */ /** @jsxRuntime automatic */ /** @jsxImportSource hono/jsx */ import {FluxerLogoWordmarkIcon} from '@fluxer/marketing/src/components/icons/FluxerLogoWordmarkIcon'; import type {MarketingContext} from '@fluxer/marketing/src/MarketingContext'; import {renderLayout} from '@fluxer/marketing/src/pages/Layout'; import {pageMeta} from '@fluxer/marketing/src/pages/layout/Meta'; import {href} from '@fluxer/marketing/src/UrlUtils'; import type {Context} from 'hono'; export async function renderNotFoundPage(c: Context, ctx: MarketingContext): Promise { const title = ctx.i18n.getMessage('navigation.page_not_found.title', ctx.locale); const subtitle = ctx.i18n.getMessage('navigation.page_not_found.description', ctx.locale); const content: ReadonlyArray = [
,
,
, ]; const meta = pageMeta( `Fluxer | ${ctx.i18n.getMessage('navigation.page_not_found.title', ctx.locale)}`, subtitle, 'website', ); const html = renderLayout(c, ctx, meta, content); return c.html(html, 404); }