From 576d2d4aff0bdae65a30d7b103b342f1e59f0e9b Mon Sep 17 00:00:00 2001 From: Filip Niklas <118931755+Firgrep@users.noreply.github.com> Date: Tue, 23 Jul 2024 09:46:18 +0200 Subject: [PATCH] fix: link to symposia --- src/components/Footer.tsx | 156 +++++++++++++++++++++++++------------- src/pages/_meta.json | 2 +- 2 files changed, 103 insertions(+), 55 deletions(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 90b06e5a..97e633ac 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -7,7 +7,8 @@ import LogoOwl from "./LogoOwl"; import { clearCookies } from "@/util/clearCookies"; import Button from "@/components/Button"; -const footerLinkClasses = "text-sm text-gray-600 dark:text-gray-400 no-underline hover:text-gray-800 hover:dark:text-gray-200 transition"; +const footerLinkClasses = + "text-sm text-gray-600 dark:text-gray-400 no-underline hover:text-gray-800 hover:dark:text-gray-200 transition"; function FooterLink({ href, children }: { href: string; children: ReactNode }) { if (href.startsWith("http")) { @@ -31,7 +32,7 @@ function FooterHeader({ children }: { children: ReactNode }) { const navigation = { general: [ { name: "Blog", href: "/blog" }, - { name: "Symposia", href: "/" }, + { name: "Symposia", href: "https://symposia.systemphil.com" }, { name: "Acknowledgements", href: "/acknowledgements" }, ], hegel: [ @@ -43,37 +44,40 @@ const navigation = { { name: "Reference", href: "/kant/reference" }, ], company: [ - { name: "Team", href: "/team"}, + { name: "Team", href: "/team" }, { name: "Contributing", href: "/contributing" }, - { name: "Methodology", href: "/contributing/methodology", }, - { name: "Code of Conduct", href: `/contributing/code-of-conduct`, }, + { name: "Methodology", href: "/contributing/methodology" }, + { name: "Code of Conduct", href: `/contributing/code-of-conduct` }, ], legal: [ { name: "Privacy Policy", href: "/privacy" }, { name: "Terms of Use", href: "/terms" }, ], support: [ - { name: "GitHub ↗", href: "https://github.com/systemphil/", }, + { name: "GitHub ↗", href: "https://github.com/systemphil/" }, { name: "YouTube ↗", href: "https://www.youtube.com/@systemphil" }, ], }; function FooterContent() { - const handleClearCookies = () => { clearCookies(); - const dialog = document.getElementById("cookie-dialog") as HTMLDialogElement; + const dialog = document.getElementById( + "cookie-dialog" + ) as HTMLDialogElement; if (dialog) { dialog.show(); } - } + }; const handleCloseDialog = () => { - const dialog = document.getElementById("cookie-dialog") as HTMLDialogElement; + const dialog = document.getElementById( + "cookie-dialog" + ) as HTMLDialogElement; if (dialog) { dialog.close(); } - } + }; return (
@@ -86,75 +90,118 @@ function FooterContent() {
Resources -
    - {navigation.general.map((item) => ( -
  • - {item.name} -
  • - ))} +
      + {navigation.general.map((item) => ( +
    • + + {item.name} + +
    • + ))}
Hegel -
    - {navigation.hegel.map((item) => ( -
  • - {item.name} -
  • - ))} +
      + {navigation.hegel.map((item) => ( +
    • + + {item.name} + +
    • + ))}
Kant -
    - {navigation.kant.map((item) => ( -
  • - {item.name} -
  • - ))} +
      + {navigation.kant.map((item) => ( +
    • + + {item.name} + +
    • + ))}
About -
    - {navigation.company.map((item) => ( -
  • - {item.name} -
  • - ))} +
      + {navigation.company.map((item) => ( +
    • + + {item.name} + +
    • + ))}
Legal -
    - {navigation.legal.map((item) => ( -
  • - {item.name} -
  • - ))} -
  • + {navigation.legal.map((item) => ( +
  • + + {item.name} + +
  • + ))} +
  • handleClearCookies()} > - +
  • - +
    - All cookies should now be deleted and you will be asked upon next visit to accept or decline cookies. - + + All cookies should now be + deleted and you will be asked + upon next visit to accept or + decline cookies. + +
Support -
    - {navigation.support.map((item) => ( -
  • - {item.name} -
  • - ))} +
      + {navigation.support.map((item) => ( +
    • + + {item.name} + +
    • + ))}
@@ -172,7 +219,8 @@ function FooterContent() {

- © {new Date().getFullYear()} Eru Iluvatar, Ltd. All rights reserved. + © {new Date().getFullYear()} Eru Iluvatar, Ltd. + All rights reserved.

@@ -200,4 +248,4 @@ export default function Footer({ menu }: { menu?: boolean }): ReactElement { ); -} \ No newline at end of file +} diff --git a/src/pages/_meta.json b/src/pages/_meta.json index 94155e91..6697c833 100644 --- a/src/pages/_meta.json +++ b/src/pages/_meta.json @@ -19,7 +19,7 @@ "contact": { "title": "Symposia ↗", "type": "page", - "href": "https://google.com/", + "href": "https://symposia.systemphil.com", "newWindow": true }, "terms": {