From ef92d1d1fc0682a3c26ff2c85b7d53bde21be06e Mon Sep 17 00:00:00 2001 From: Filip Niklas Date: Sat, 30 Nov 2024 13:43:53 +0100 Subject: [PATCH 1/6] fix: team page, build social icons --- app/(public)/team/page.tsx | 7 ++ app/_meta.ts | 3 + content/_meta.ts | 9 --- content/team.mdx | 6 -- cspell.json | 1 + features/marketing/components/Team.tsx | 88 ++++++++++++++++++++++++++ lib/components/icons/SocialIcons.tsx | 85 +++++++++++++++++++++++++ lib/components/navigation/Footer.tsx | 21 ++---- package-lock.json | 31 ++++++--- package.json | 4 +- 10 files changed, 214 insertions(+), 41 deletions(-) create mode 100644 app/(public)/team/page.tsx delete mode 100644 content/team.mdx create mode 100644 features/marketing/components/Team.tsx create mode 100644 lib/components/icons/SocialIcons.tsx diff --git a/app/(public)/team/page.tsx b/app/(public)/team/page.tsx new file mode 100644 index 00000000..6bcf80a6 --- /dev/null +++ b/app/(public)/team/page.tsx @@ -0,0 +1,7 @@ +import { Team } from "features/marketing/components/Team"; + +export const metadata = {}; + +export default function TeamPage() { + return ; +} diff --git a/app/_meta.ts b/app/_meta.ts index d38fb33f..e4953e93 100644 --- a/app/_meta.ts +++ b/app/_meta.ts @@ -34,4 +34,7 @@ export default { admin: { display: "hidden", }, + team: { + display: "hidden", + }, }; diff --git a/content/_meta.ts b/content/_meta.ts index 561d8c7e..a580dd66 100644 --- a/content/_meta.ts +++ b/content/_meta.ts @@ -48,13 +48,4 @@ export default { typesetting: "article", }, }, - team: { - title: "Team", - display: "hidden", - theme: { - layout: "default", - sidebar: false, - toc: true, - }, - }, }; diff --git a/content/team.mdx b/content/team.mdx deleted file mode 100644 index ebe6d001..00000000 --- a/content/team.mdx +++ /dev/null @@ -1,6 +0,0 @@ ---- -hidden: true -searchable: false ---- - -## Team page diff --git a/cspell.json b/cspell.json index 1992a689..4e16b745 100644 --- a/cspell.json +++ b/cspell.json @@ -22,6 +22,7 @@ "Aufhebung", "Autosize", "Befreiung", + "Bluesky", "Burbidge", "Clientside", "clsx", diff --git a/features/marketing/components/Team.tsx b/features/marketing/components/Team.tsx new file mode 100644 index 00000000..ba750d46 --- /dev/null +++ b/features/marketing/components/Team.tsx @@ -0,0 +1,88 @@ +import Image from "next/image"; + +export const Team = () => { + return ( +
+

Meet Our Team

+
+ + Filip Niklas, Ph.D., is a co-founder and the tech lead of + sPhil. By day he works as a software developer, and by night + he works on sPhil, writes poetry and teaches philosophy. He + completed his PhD in philosophy in 2022 under the + supervision of Professor Stephen Houlgate at the University + of Warwick. The title of his thesis was Hegel's{" "} + + Critique of Determinism: Justifying Unfreedom as a + Moment of Freedom + + . Filip's main research areas are systematic + philosophy, metaphysics, ontology, essence, freedom, + determinism, and maintains an otherwise broad interest in + all the dimensions of intelligence and reason. Filip is also + an incurable fan of the art and poetry of William Blake. + + + Ahilleas Rokni, Ph.D., is a co-founder and the business lead + of sPhil. He completed his PhD thesis in philosophy in 2022 + under the supervision of Professor Stephen Houlgate at the + University of Warwick. His thesis aimed to give an account + of the much-debated move from the Science of Logic{" "} + to the Philosophy of Nature in Hegel's system. + Ahilleas's main research concerns are Hegel's + logic, philosophy of nature, philosophy of science, and + aesthetics. + +
+
+ ); +}; + +type CardTeamMemberProps = { + name: string; + title: string; + image: string; + children?: React.ReactNode; +}; + +const CardTeamMember = ({ + name, + title, + image, + children, +}: CardTeamMemberProps) => { + return ( +
+
+ {name} +
+

{name}

+

{title}

+
+
+
+

{children}

+
+
+ ); +}; diff --git a/lib/components/icons/SocialIcons.tsx b/lib/components/icons/SocialIcons.tsx new file mode 100644 index 00000000..a85d4500 --- /dev/null +++ b/lib/components/icons/SocialIcons.tsx @@ -0,0 +1,85 @@ +import { cn } from "lib/utils"; + +const LIGHT_COLOR = "fill-gray-400 hover:fill-gray-500"; +const DARK_COLOR = "dark:fill-emerald-700 dark:hover:fill-emerald-600"; + +const Bluesky = ({ + size = "base", + href = undefined, +}: { + size?: "base" | "large"; + href?: string; +}) => { + const height = size === "large" ? "h-20" : "h-8"; + const width = size === "large" ? "w-20" : "w-8"; + + const renderSvg = () => { + return ( + + Bluesky + + + ); + }; + + if (href) { + return ( + + {renderSvg()} + + ); + } + + return renderSvg(); +}; + +const Facebook = ({ + size = "base", + href = undefined, +}: { + size?: "base" | "large"; + href?: string; +}) => { + const height = size === "large" ? "h-20" : "h-8"; + const width = size === "large" ? "w-20" : "w-8"; + + const renderSvg = () => { + return ( + + Facebook + + + ); + }; + + if (href) { + return ( + + {renderSvg()} + + ); + } + + return renderSvg(); +}; + +export const SocialIcons = { + Bluesky, + Facebook, +}; diff --git a/lib/components/navigation/Footer.tsx b/lib/components/navigation/Footer.tsx index ae14b093..aac26a3f 100644 --- a/lib/components/navigation/Footer.tsx +++ b/lib/components/navigation/Footer.tsx @@ -4,6 +4,7 @@ import Link from "next/link"; import { LogoOwl } from "../LogoOwl"; import { LogoAnimated } from "../LogoAnimated"; import { SymposiaCard } from "../SymposiaCard"; +import { SocialIcons } from "../icons/SocialIcons"; const footerLinkClasses = "text-sm text-gray-600 dark:text-gray-400 no-underline hover:text-gray-800 hover:dark:text-gray-200 transition"; @@ -67,7 +68,7 @@ function FooterContent() { { name: "Reference", href: "/articles/kant/reference" }, ], company: [ - { name: "Team", href: "/articles/team" }, + { name: "Team", href: "/team" }, { name: "Contributing", href: "/articles/contributing" }, { name: "Methodology", href: "/articles/contributing/methodology" }, { @@ -175,19 +176,11 @@ function FooterContent() {
- Support -
    - {navigation.support.map((item) => ( -
  • - - {item.name} - -
  • - ))} -
+ Social +
+ + +
diff --git a/package-lock.json b/package-lock.json index 29279be4..6828ccb0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,8 +29,8 @@ "framer-motion": "^10.18.0", "next": "^15.0.3", "next-auth": "^5.0.0-beta.25", - "nextra": "4.0.0-app-router.28", - "nextra-theme-docs": "4.0.0-app-router.28", + "nextra": "4.0.0-app-router.31", + "nextra-theme-docs": "4.0.0-app-router.31", "postcss": "8.4.47", "prettier": "^3.3.3", "prisma": "^5.21.1", @@ -13495,9 +13495,9 @@ } }, "node_modules/nextra": { - "version": "4.0.0-app-router.28", - "resolved": "https://registry.npmjs.org/nextra/-/nextra-4.0.0-app-router.28.tgz", - "integrity": "sha512-Kn+/23Ofb2RPGmyIQw8pZecGDIpNTIrq9tohI++e32zPrCKInLHc+CinmMbHG2e2umifDBPMpAVAj3rTfdtfvg==", + "version": "4.0.0-app-router.31", + "resolved": "https://registry.npmjs.org/nextra/-/nextra-4.0.0-app-router.31.tgz", + "integrity": "sha512-9gguO6H1KqAbcrdZ1j8YtN1TCcVSMMdVONMoYVE/ooiXfKBcQvpMoLfPNsDnHA6oEyvGrLo/Djru4DdBKQSUhw==", "license": "MIT", "dependencies": { "@formatjs/intl-localematcher": "^0.5.4", @@ -13519,6 +13519,7 @@ "mdast-util-gfm": "^3.0.0", "mdast-util-to-hast": "^13.2.0", "negotiator": "^1.0.0", + "react-compiler-runtime": "19.0.0-beta-df7b47d-20241124", "rehype-katex": "^7.0.0", "rehype-pretty-code": "0.14.0", "rehype-raw": "^7.0.0", @@ -13529,7 +13530,7 @@ "remark-smartypants": "^3.0.0", "shiki": "^1.0.0", "slash": "^5.1.0", - "title": "^4.0.0", + "title": "^4.0.1", "unist-util-remove": "^4.0.0", "unist-util-visit": "^5.0.0", "yaml": "^2.3.2", @@ -13546,14 +13547,15 @@ } }, "node_modules/nextra-theme-docs": { - "version": "4.0.0-app-router.28", - "resolved": "https://registry.npmjs.org/nextra-theme-docs/-/nextra-theme-docs-4.0.0-app-router.28.tgz", - "integrity": "sha512-HhA3wrKr0Jemt4aH4ImofR00qUxMlTV6c6Hl8zaprN2MCUF/Sssg1BQoS0Nv2nAl+vBHg8DagOB5xmc6HTOckQ==", + "version": "4.0.0-app-router.31", + "resolved": "https://registry.npmjs.org/nextra-theme-docs/-/nextra-theme-docs-4.0.0-app-router.31.tgz", + "integrity": "sha512-uiOAyUw07ZdOawb0ockfjZxf6vAyOTqfzq8pySM2n5YdSGa347PKczKmGJaT8tvCcbELLlnfmuWg9S0gibZwHQ==", "license": "MIT", "dependencies": { "@headlessui/react": "^2.1.2", "clsx": "^2.1.0", "next-themes": "^0.4.0", + "react-compiler-runtime": "19.0.0-beta-df7b47d-20241124", "scroll-into-view-if-needed": "^3.1.0", "zod": "^3.22.3", "zod-validation-error": "^3.0.0", @@ -13561,7 +13563,7 @@ }, "peerDependencies": { "next": ">=14", - "nextra": "4.0.0-app-router.28", + "nextra": "4.0.0-app-router.31", "react": ">=18", "react-dom": ">=18" } @@ -14493,6 +14495,15 @@ "node": ">=0.10.0" } }, + "node_modules/react-compiler-runtime": { + "version": "19.0.0-beta-df7b47d-20241124", + "resolved": "https://registry.npmjs.org/react-compiler-runtime/-/react-compiler-runtime-19.0.0-beta-df7b47d-20241124.tgz", + "integrity": "sha512-HLFbEf5rEhynZNxI/f1y26Hw0SCvFWh9aS0gCaDndak202oOAvRhy0qsUhmVyaeuRYqIxvPeltMvqDfvO+9/Fw==", + "license": "MIT", + "peerDependencies": { + "react": "^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, "node_modules/react-cookie-consent": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/react-cookie-consent/-/react-cookie-consent-9.0.0.tgz", diff --git a/package.json b/package.json index afe63cbe..49748ecb 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ "framer-motion": "^10.18.0", "next": "^15.0.3", "next-auth": "^5.0.0-beta.25", - "nextra": "4.0.0-app-router.28", - "nextra-theme-docs": "4.0.0-app-router.28", + "nextra": "4.0.0-app-router.31", + "nextra-theme-docs": "4.0.0-app-router.31", "postcss": "8.4.47", "prettier": "^3.3.3", "prisma": "^5.21.1", From 6e23894b921cc28cb778e9fb5e9cdb578abb0699 Mon Sep 17 00:00:00 2001 From: Filip Niklas Date: Thu, 5 Dec 2024 22:17:10 +0100 Subject: [PATCH 2/6] refactor social icons, add yt icon, downgrade nextra --- lib/components/icons/SocialIcon.tsx | 80 ++++++++++++++++++++++++++ lib/components/icons/SocialIcons.tsx | 85 ---------------------------- lib/components/navigation/Footer.tsx | 16 +++++- package-lock.json | 31 ++++------ package.json | 4 +- 5 files changed, 105 insertions(+), 111 deletions(-) create mode 100644 lib/components/icons/SocialIcon.tsx delete mode 100644 lib/components/icons/SocialIcons.tsx diff --git a/lib/components/icons/SocialIcon.tsx b/lib/components/icons/SocialIcon.tsx new file mode 100644 index 00000000..2128ab40 --- /dev/null +++ b/lib/components/icons/SocialIcon.tsx @@ -0,0 +1,80 @@ +import { cn } from "lib/utils"; + +const LIGHT_COLOR = "fill-gray-400 hover:fill-gray-500"; +const DARK_COLOR = "dark:fill-emerald-700 dark:hover:fill-emerald-600"; + +export const SocialIcon = ({ + icon, + size = "base", + href = undefined, +}: { + icon: "facebook" | "bluesky" | "youtube"; + size?: "base" | "large"; + href?: string; +}) => { + const height = size === "large" ? "h-20" : "h-8"; + const width = size === "large" ? "w-20" : "w-8"; + + const renderSvg = () => { + if (icon === "bluesky") { + return ( + + Bluesky + + + ); + } + if (icon === "facebook") { + return ( + + Facebook + + + ); + } + if (icon === "youtube") { + return ( + + YouTube + + + ); + } + + return null; + }; + + if (href) { + return ( + + {renderSvg()} + + ); + } + + return renderSvg(); +}; diff --git a/lib/components/icons/SocialIcons.tsx b/lib/components/icons/SocialIcons.tsx deleted file mode 100644 index a85d4500..00000000 --- a/lib/components/icons/SocialIcons.tsx +++ /dev/null @@ -1,85 +0,0 @@ -import { cn } from "lib/utils"; - -const LIGHT_COLOR = "fill-gray-400 hover:fill-gray-500"; -const DARK_COLOR = "dark:fill-emerald-700 dark:hover:fill-emerald-600"; - -const Bluesky = ({ - size = "base", - href = undefined, -}: { - size?: "base" | "large"; - href?: string; -}) => { - const height = size === "large" ? "h-20" : "h-8"; - const width = size === "large" ? "w-20" : "w-8"; - - const renderSvg = () => { - return ( - - Bluesky - - - ); - }; - - if (href) { - return ( - - {renderSvg()} - - ); - } - - return renderSvg(); -}; - -const Facebook = ({ - size = "base", - href = undefined, -}: { - size?: "base" | "large"; - href?: string; -}) => { - const height = size === "large" ? "h-20" : "h-8"; - const width = size === "large" ? "w-20" : "w-8"; - - const renderSvg = () => { - return ( - - Facebook - - - ); - }; - - if (href) { - return ( - - {renderSvg()} - - ); - } - - return renderSvg(); -}; - -export const SocialIcons = { - Bluesky, - Facebook, -}; diff --git a/lib/components/navigation/Footer.tsx b/lib/components/navigation/Footer.tsx index aac26a3f..cb0cd4d7 100644 --- a/lib/components/navigation/Footer.tsx +++ b/lib/components/navigation/Footer.tsx @@ -4,7 +4,7 @@ import Link from "next/link"; import { LogoOwl } from "../LogoOwl"; import { LogoAnimated } from "../LogoAnimated"; import { SymposiaCard } from "../SymposiaCard"; -import { SocialIcons } from "../icons/SocialIcons"; +import { SocialIcon } from "../icons/SocialIcon"; const footerLinkClasses = "text-sm text-gray-600 dark:text-gray-400 no-underline hover:text-gray-800 hover:dark:text-gray-200 transition"; @@ -178,8 +178,18 @@ function FooterContent() {
Social
- - + + +
diff --git a/package-lock.json b/package-lock.json index 6828ccb0..29279be4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,8 +29,8 @@ "framer-motion": "^10.18.0", "next": "^15.0.3", "next-auth": "^5.0.0-beta.25", - "nextra": "4.0.0-app-router.31", - "nextra-theme-docs": "4.0.0-app-router.31", + "nextra": "4.0.0-app-router.28", + "nextra-theme-docs": "4.0.0-app-router.28", "postcss": "8.4.47", "prettier": "^3.3.3", "prisma": "^5.21.1", @@ -13495,9 +13495,9 @@ } }, "node_modules/nextra": { - "version": "4.0.0-app-router.31", - "resolved": "https://registry.npmjs.org/nextra/-/nextra-4.0.0-app-router.31.tgz", - "integrity": "sha512-9gguO6H1KqAbcrdZ1j8YtN1TCcVSMMdVONMoYVE/ooiXfKBcQvpMoLfPNsDnHA6oEyvGrLo/Djru4DdBKQSUhw==", + "version": "4.0.0-app-router.28", + "resolved": "https://registry.npmjs.org/nextra/-/nextra-4.0.0-app-router.28.tgz", + "integrity": "sha512-Kn+/23Ofb2RPGmyIQw8pZecGDIpNTIrq9tohI++e32zPrCKInLHc+CinmMbHG2e2umifDBPMpAVAj3rTfdtfvg==", "license": "MIT", "dependencies": { "@formatjs/intl-localematcher": "^0.5.4", @@ -13519,7 +13519,6 @@ "mdast-util-gfm": "^3.0.0", "mdast-util-to-hast": "^13.2.0", "negotiator": "^1.0.0", - "react-compiler-runtime": "19.0.0-beta-df7b47d-20241124", "rehype-katex": "^7.0.0", "rehype-pretty-code": "0.14.0", "rehype-raw": "^7.0.0", @@ -13530,7 +13529,7 @@ "remark-smartypants": "^3.0.0", "shiki": "^1.0.0", "slash": "^5.1.0", - "title": "^4.0.1", + "title": "^4.0.0", "unist-util-remove": "^4.0.0", "unist-util-visit": "^5.0.0", "yaml": "^2.3.2", @@ -13547,15 +13546,14 @@ } }, "node_modules/nextra-theme-docs": { - "version": "4.0.0-app-router.31", - "resolved": "https://registry.npmjs.org/nextra-theme-docs/-/nextra-theme-docs-4.0.0-app-router.31.tgz", - "integrity": "sha512-uiOAyUw07ZdOawb0ockfjZxf6vAyOTqfzq8pySM2n5YdSGa347PKczKmGJaT8tvCcbELLlnfmuWg9S0gibZwHQ==", + "version": "4.0.0-app-router.28", + "resolved": "https://registry.npmjs.org/nextra-theme-docs/-/nextra-theme-docs-4.0.0-app-router.28.tgz", + "integrity": "sha512-HhA3wrKr0Jemt4aH4ImofR00qUxMlTV6c6Hl8zaprN2MCUF/Sssg1BQoS0Nv2nAl+vBHg8DagOB5xmc6HTOckQ==", "license": "MIT", "dependencies": { "@headlessui/react": "^2.1.2", "clsx": "^2.1.0", "next-themes": "^0.4.0", - "react-compiler-runtime": "19.0.0-beta-df7b47d-20241124", "scroll-into-view-if-needed": "^3.1.0", "zod": "^3.22.3", "zod-validation-error": "^3.0.0", @@ -13563,7 +13561,7 @@ }, "peerDependencies": { "next": ">=14", - "nextra": "4.0.0-app-router.31", + "nextra": "4.0.0-app-router.28", "react": ">=18", "react-dom": ">=18" } @@ -14495,15 +14493,6 @@ "node": ">=0.10.0" } }, - "node_modules/react-compiler-runtime": { - "version": "19.0.0-beta-df7b47d-20241124", - "resolved": "https://registry.npmjs.org/react-compiler-runtime/-/react-compiler-runtime-19.0.0-beta-df7b47d-20241124.tgz", - "integrity": "sha512-HLFbEf5rEhynZNxI/f1y26Hw0SCvFWh9aS0gCaDndak202oOAvRhy0qsUhmVyaeuRYqIxvPeltMvqDfvO+9/Fw==", - "license": "MIT", - "peerDependencies": { - "react": "^17.0.0 || ^18.0.0 || ^19.0.0" - } - }, "node_modules/react-cookie-consent": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/react-cookie-consent/-/react-cookie-consent-9.0.0.tgz", diff --git a/package.json b/package.json index 49748ecb..afe63cbe 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ "framer-motion": "^10.18.0", "next": "^15.0.3", "next-auth": "^5.0.0-beta.25", - "nextra": "4.0.0-app-router.31", - "nextra-theme-docs": "4.0.0-app-router.31", + "nextra": "4.0.0-app-router.28", + "nextra-theme-docs": "4.0.0-app-router.28", "postcss": "8.4.47", "prettier": "^3.3.3", "prisma": "^5.21.1", From c62e3a3757875fa6dc8fecdac00f7f75c23f3e10 Mon Sep 17 00:00:00 2001 From: Filip Niklas Date: Mon, 6 Jan 2025 18:09:24 +0100 Subject: [PATCH 3/6] feat: add twitter, gh, gmail icons, fix embedyt nesting error --- content/contributing/index.mdx | 4 +- lib/components/icons/SocialIcon.tsx | 77 +++++++++++----------------- lib/components/navigation/Footer.tsx | 20 ++++++-- lib/components/ui/EmbedYT.tsx | 5 +- 4 files changed, 50 insertions(+), 56 deletions(-) diff --git a/content/contributing/index.mdx b/content/contributing/index.mdx index fd3e43bf..5dafaf0e 100644 --- a/content/contributing/index.mdx +++ b/content/contributing/index.mdx @@ -31,9 +31,7 @@ We warmly encourage you to join our community on the import { EmbedYT } from "lib/components/ui/EmbedYT"; - - How to contribute to sPhil on GitHub - + ### General Division of the Encyclopaedia diff --git a/lib/components/icons/SocialIcon.tsx b/lib/components/icons/SocialIcon.tsx index 2128ab40..344c4204 100644 --- a/lib/components/icons/SocialIcon.tsx +++ b/lib/components/icons/SocialIcon.tsx @@ -8,7 +8,7 @@ export const SocialIcon = ({ size = "base", href = undefined, }: { - icon: "facebook" | "bluesky" | "youtube"; + icon: "facebook" | "bluesky" | "youtube" | "twitter" | "github" | "gmail"; size?: "base" | "large"; href?: string; }) => { @@ -16,56 +16,37 @@ export const SocialIcon = ({ const width = size === "large" ? "w-20" : "w-8"; const renderSvg = () => { - if (icon === "bluesky") { - return ( - - Bluesky + return ( + + {icon} + {icon === "bluesky" && ( - - ); - } - if (icon === "facebook") { - return ( - - Facebook + )} + {icon === "facebook" && ( - - ); - } - if (icon === "youtube") { - return ( - - YouTube + )} + {icon === "youtube" && ( - - ); - } - - return null; + )} + {icon === "twitter" && ( + + )} + {icon === "github" && ( + + )} + {icon === "gmail" && ( + + )} + + ); }; if (href) { diff --git a/lib/components/navigation/Footer.tsx b/lib/components/navigation/Footer.tsx index cb0cd4d7..568d0b91 100644 --- a/lib/components/navigation/Footer.tsx +++ b/lib/components/navigation/Footer.tsx @@ -179,16 +179,28 @@ function FooterContent() { Social
+ + +
diff --git a/lib/components/ui/EmbedYT.tsx b/lib/components/ui/EmbedYT.tsx index cad13a89..2a8e68d9 100644 --- a/lib/components/ui/EmbedYT.tsx +++ b/lib/components/ui/EmbedYT.tsx @@ -1,7 +1,10 @@ +"use client"; + export const EmbedYT = (props: any) => { const { children, src, + title, minWidth = "400px", maxWidth = "800px", ...otherProps @@ -34,7 +37,7 @@ export const EmbedYT = (props: any) => { width="560" height="315" src={src} - title="Video player" + title={title ?? "YouTube video"} allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" {...otherProps} > From 0644eea794ac80e8eb2703e7bfca7d431031a5b2 Mon Sep 17 00:00:00 2001 From: Filip Niklas Date: Mon, 6 Jan 2025 18:20:38 +0100 Subject: [PATCH 4/6] chore: change out email icon --- lib/components/icons/SocialIcon.tsx | 9 +++++---- lib/components/navigation/Footer.tsx | 10 +++++----- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/components/icons/SocialIcon.tsx b/lib/components/icons/SocialIcon.tsx index 344c4204..f470dd5b 100644 --- a/lib/components/icons/SocialIcon.tsx +++ b/lib/components/icons/SocialIcon.tsx @@ -8,7 +8,7 @@ export const SocialIcon = ({ size = "base", href = undefined, }: { - icon: "facebook" | "bluesky" | "youtube" | "twitter" | "github" | "gmail"; + icon: "facebook" | "bluesky" | "youtube" | "twitter" | "github" | "mail"; size?: "base" | "large"; href?: string; }) => { @@ -23,8 +23,9 @@ export const SocialIcon = ({ `${height} ${width}` )} role="img" - viewBox="0 0 24 24" + viewBox={icon === "mail" ? "0 0 128 128" : "0 0 24 24"} xmlns="http://www.w3.org/2000/svg" + {...(icon === "mail" ? { "data-name": "Layer 1" } : {})} > {icon} {icon === "bluesky" && ( @@ -42,8 +43,8 @@ export const SocialIcon = ({ {icon === "github" && ( )} - {icon === "gmail" && ( - + {icon === "mail" && ( + )} ); diff --git a/lib/components/navigation/Footer.tsx b/lib/components/navigation/Footer.tsx index 568d0b91..a47f6d3b 100644 --- a/lib/components/navigation/Footer.tsx +++ b/lib/components/navigation/Footer.tsx @@ -179,17 +179,17 @@ function FooterContent() { Social
- + Date: Mon, 6 Jan 2025 18:24:16 +0100 Subject: [PATCH 5/6] fix: toc extra classes --- app/layout.tsx | 2 +- lib/components/navigation/TableOfContentsExtra.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 087673ad..092df5a9 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -20,7 +20,7 @@ import "nextra-theme-docs/style.css"; import "@mdxeditor/editor/style.css"; import "./globals.css"; -const EDIT_LINK_DESCRIPTION = "Edit this page on GitHub →"; +const EDIT_LINK_DESCRIPTION = "Edit this page on GitHub"; const PROJECT_LINK = "https://github.com/systemphil/sphil"; const DOCS_REPOSITORY_BASE = "https://github.com/systemphil/sphil/tree/main"; const SITE_ROOT = process.env.NEXT_PUBLIC_SITE_ROOT as string; diff --git a/lib/components/navigation/TableOfContentsExtra.tsx b/lib/components/navigation/TableOfContentsExtra.tsx index 7c693d8a..4c9f6445 100644 --- a/lib/components/navigation/TableOfContentsExtra.tsx +++ b/lib/components/navigation/TableOfContentsExtra.tsx @@ -13,7 +13,7 @@ function LinkToDiscussion() { return ( From 77347b56217f781840fb6cc691307f1a73ac73e5 Mon Sep 17 00:00:00 2001 From: Filip Niklas Date: Mon, 6 Jan 2025 18:26:06 +0100 Subject: [PATCH 6/6] chore: remove comment --- lib/components/navigation/TableOfContentsExtra.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/components/navigation/TableOfContentsExtra.tsx b/lib/components/navigation/TableOfContentsExtra.tsx index 4c9f6445..7ca5ad74 100644 --- a/lib/components/navigation/TableOfContentsExtra.tsx +++ b/lib/components/navigation/TableOfContentsExtra.tsx @@ -12,7 +12,6 @@ export function TableOfContentsExtra() { function LinkToDiscussion() { return (