diff --git a/src/components/EmbedYT.tsx b/src/components/EmbedYT.tsx new file mode 100644 index 00000000..cad13a89 --- /dev/null +++ b/src/components/EmbedYT.tsx @@ -0,0 +1,47 @@ +export const EmbedYT = (props: any) => { + const { + children, + src, + minWidth = "400px", + maxWidth = "800px", + ...otherProps + } = props; + + return ( +
+
+
+ +
+
+
+ ); +}; diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index dce08e5f..0f86375d 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -32,7 +32,10 @@ function FooterHeader({ children }: { children: ReactNode }) { const navigation = { general: [ - { name: "Blog", href: "/blog" }, + { + name: "Discussion", + href: "https://github.com/systemphil/sphil/discussions", + }, { name: "Symposia", href: "https://symposia.sphil.xyz" }, { name: "Acknowledgements", href: "/acknowledgements" }, ], @@ -57,6 +60,11 @@ const navigation = { support: [ { name: "GitHub", href: "https://github.com/systemphil/" }, { name: "YouTube", href: "https://www.youtube.com/@systemphil" }, + { name: "Twitter", href: "https://twitter.com/sphildotxyz" }, + { + name: "Facebook", + href: "https://www.facebook.com/profile.php?id=61564840656103", + }, ], }; diff --git a/src/components/TableOfContentsExtra.tsx b/src/components/TableOfContentsExtra.tsx new file mode 100644 index 00000000..b7f9b2fe --- /dev/null +++ b/src/components/TableOfContentsExtra.tsx @@ -0,0 +1,26 @@ +"use client"; + +import { SymposiaCard } from "./SymposiaCard"; + +export function TableOfContentsExtra() { + return ( + <> + + + + ); +} + +function LinkToDiscussion() { + return ( + + Share your thoughts 💬{" "} + + ); +} + +// Question? Give us feedback → diff --git a/src/pages/contributing/index.mdx b/src/pages/contributing/index.mdx index b1a82c44..d159a5dc 100644 --- a/src/pages/contributing/index.mdx +++ b/src/pages/contributing/index.mdx @@ -24,7 +24,16 @@ started contributing ideas or code to sPhil as well as a [Code of Conduct](/contributing/code-of-conduct) for contributing to the development of sPhil. -We warmly encourage you to join our community on the [discussion boards](). +We warmly encourage you to join our community on the +[discussion boards](https://github.com/systemphil/sphil/discussions). + +
+ +import { EmbedYT } from "../../components/EmbedYT"; + + + How to contribute to sPhil on GitHub + ### General Division of the Encyclopaedia diff --git a/theme.config.tsx b/theme.config.tsx index 7c2e3956..9aba460c 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -3,15 +3,15 @@ import Navigation from "@/components/Navigation"; import Footer from "@/components/Footer"; import { useRouter } from "next/router"; import { type DocsThemeConfig, useConfig } from "nextra-theme-docs"; -import { SymposiaCard } from "@/components/SymposiaCard"; import { ArticleWrapper } from "@/components/ArticleWrapper"; +import { TableOfContentsExtra } from "@/components/TableOfContentsExtra"; const SITE_ROOT = process.env.NEXT_PUBLIC_SITE_ROOT; const config: DocsThemeConfig = { docsRepositoryBase: "https://github.com/systemphil/sphil/tree/dev", // root for every edit link editLink: { - text: "Edit this page on GitHub", + text: "Edit this page on GitHub ✏️", }, footer: { component: Footer, @@ -105,7 +105,7 @@ const config: DocsThemeConfig = { }, toc: { backToTop: true, - extraContent: , + extraContent: , }, useNextSeoProps: function SEO() { const router = useRouter();