diff --git a/src/app/layout.tsx b/src/app/layout.tsx index be1ce1fd..bb4f4bbe 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -62,7 +62,7 @@ export const metadata: Metadata = { export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) { return ( diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index 532b7291..f56d292b 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -12,15 +12,15 @@ export default function NotFound() { -
+

404

-

+

Non trovo quello che cerchi.
- Controlla l'URL o visita un'altra sezione del sito. + Controlla l'URL o visita un'altra sezione del sito.

+
+
+

Qualche problema?

+ +
+
+ - -
- -
+ {/* slate-600 rather than text-secondary (slate-500, 4.3:1 on the page background) so the small print passes AA */} +
+

PoliNetwork APS 2016–{new Date().getFullYear()}

+

All rights reserved

+
+ ) } diff --git a/src/components/header/constants.ts b/src/components/header/constants.ts index e664983c..b92aac9a 100644 --- a/src/components/header/constants.ts +++ b/src/components/header/constants.ts @@ -1,13 +1,15 @@ import { FiArrowUpRight, FiChevronRight } from "react-icons/fi" import type { HeaderMenuItem } from "./types" +/** The materials archive, on the old site. */ +export const MATERIALS_URL = "https://polinetwork.org/it/materials/view/" export const headerMenuItems: HeaderMenuItem[] = [ { title: "Resources", menu: [ { title: "Progetti", href: "/projects", icon: FiChevronRight }, // Leaves the site: ↗ instead of ›, as in the rest of the site - { title: "Appunti", href: "https://polinetwork.org/it/materials/view/", icon: FiArrowUpRight }, + { title: "Appunti", href: MATERIALS_URL, icon: FiArrowUpRight }, { title: "Guide", href: "/guides", icon: FiChevronRight }, { title: "FAQs", href: "/faqs", icon: FiChevronRight }, ], diff --git a/src/components/home/materials.tsx b/src/components/home/materials.tsx index 9c732929..146f16d7 100644 --- a/src/components/home/materials.tsx +++ b/src/components/home/materials.tsx @@ -2,13 +2,12 @@ import Link from "next/link" import { Fragment } from "react" import { FiArrowUpRight, FiBook, FiBookOpen, FiClipboard, FiFileText, FiUploadCloud } from "react-icons/fi" import { CardIcon } from "@/components/card-icon" +import { MATERIALS_URL } from "@/components/header/constants" import { CONTAINER } from "@/components/layout/page" import { Button } from "@/components/ui/button" import { cn } from "@/lib/utils" import { CardCaption } from "../card-caption" -const MATERIALS_URL = "https://polinetwork.org/it/materials/view/" - // "Carica" has no destination yet, so it stays a plain card const featuredCards = [ {