Download packages/console/app/src/routes/[...404].tsx from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 1.59 kB
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/console/app/src/routes/%5B...404%5D.tsx
- Command line
-
hf download 'hf://SaylorTwift/opencode/packages/console/app/src/routes/[...404].tsx'
-
curl -L -o '[...404].tsx' https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/console/app/src/routes/%5B...404%5D.tsx
1.59 kB
| import "./[...404].css" | |
| import { Title } from "@solidjs/meta" | |
| import { HttpStatusCode } from "@solidjs/start" | |
| import logoLight from "../asset/logo-ornate-light.svg" | |
| import logoDark from "../asset/logo-ornate-dark.svg" | |
| import { useI18n } from "~/context/i18n" | |
| import { useLanguage } from "~/context/language" | |
| export default function NotFound() { | |
| const i18n = useI18n() | |
| const language = useLanguage() | |
| return ( | |
| <main data-page="not-found"> | |
| <Title>{i18n.t("notFound.title")}</Title> | |
| <HttpStatusCode code={404} /> | |
| <div data-component="content"> | |
| <section data-component="top"> | |
| <a href={language.route("/")} data-slot="logo-link"> | |
| <img data-slot="logo light" src={logoLight} alt={i18n.t("notFound.logoLightAlt")} /> | |
| <img data-slot="logo dark" src={logoDark} alt={i18n.t("notFound.logoDarkAlt")} /> | |
| </a> | |
| <h1 data-slot="title">{i18n.t("notFound.heading")}</h1> | |
| </section> | |
| <section data-component="actions"> | |
| <div data-slot="action"> | |
| <a href={language.route("/")}>{i18n.t("notFound.home")}</a> | |
| </div> | |
| <div data-slot="action"> | |
| <a href={language.route("/docs")}>{i18n.t("notFound.docs")}</a> | |
| </div> | |
| <div data-slot="action"> | |
| <a href="https://github.com/anomalyco/opencode">{i18n.t("notFound.github")}</a> | |
| </div> | |
| <div data-slot="action"> | |
| <a href={language.route("/discord")}>{i18n.t("notFound.discord")}</a> | |
| </div> | |
| </section> | |
| </div> | |
| </main> | |
| ) | |
| } | |