feat: upgrade UI with premium industrial aesthetics, purely visual language switch, and resilient error pages

Former-commit-id: e4d801c24e64c41816f86de9767b47894abb6806
This commit is contained in:
2026-05-09 09:39:58 +02:00
parent 3590d47fdb
commit 2ce9ac11e7
15 changed files with 453 additions and 232 deletions

View File

@@ -8,9 +8,10 @@ interface TransitionLinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchor
children: React.ReactNode;
className?: string;
href: string;
transitionMessage?: string;
}
export function TransitionLink({ children, href, onClick, ...props }: TransitionLinkProps) {
export function TransitionLink({ children, href, onClick, transitionMessage, ...props }: TransitionLinkProps) {
const { startTransition } = useTransition();
const handleClick = (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => {
@@ -26,7 +27,7 @@ export function TransitionLink({ children, href, onClick, ...props }: Transition
e.preventDefault();
// Die Transition starten (welche intern pusht)
startTransition(href.toString());
startTransition(href.toString(), transitionMessage);
};
return (