From 7e141306cb8e3488eeabbdeefb9a1b1408efae40 Mon Sep 17 00:00:00 2001 From: Alem Tuzlak Date: Thu, 6 Feb 2025 14:25:10 +0100 Subject: [PATCH 1/5] Added dark mode styling and date handling --- .../language-switcher/LanguageSwitcher.tsx | 2 +- app/root.tsx | 4 +- app/routes/$.tsx | 8 +-- app/routes/_index.browser.test.tsx | 17 +++++- app/routes/_index.tsx | 60 +++++-------------- app/utils/dates.test.ts | 53 ++++++++++++++++ app/utils/dates.ts | 14 +++++ 7 files changed, 103 insertions(+), 55 deletions(-) create mode 100644 app/utils/dates.test.ts create mode 100644 app/utils/dates.ts diff --git a/app/library/language-switcher/LanguageSwitcher.tsx b/app/library/language-switcher/LanguageSwitcher.tsx index a13393ad1..10998c063 100644 --- a/app/library/language-switcher/LanguageSwitcher.tsx +++ b/app/library/language-switcher/LanguageSwitcher.tsx @@ -11,7 +11,7 @@ const LanguageSwitcher = () => {
{supportedLanguages.map((language) => ( i18n.changeLanguage(language)} diff --git a/app/root.tsx b/app/root.tsx index ca41d8405..12a011b31 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -59,11 +59,11 @@ export const ErrorBoundary = () => { const errorStatusCode = isRouteErrorResponse(error) ? error.status : "500" return ( -
+

{t(`error.${errorStatusCode}.title`)}

-

{t(`error.${errorStatusCode}.description`)}

+

{t(`error.${errorStatusCode}.description`)}

diff --git a/app/routes/$.tsx b/app/routes/$.tsx index 2440afb5f..562bcfff9 100644 --- a/app/routes/$.tsx +++ b/app/routes/$.tsx @@ -7,15 +7,15 @@ export default function Route404() { const { t } = useTranslation() return ( -
+
-

404

-

{t("error.404.title")}

-

{t("error.404.description")}

+

404

+

{t("error.404.title")}

+

{t("error.404.description")}