diff --git a/docusaurus.config.ts b/docusaurus.config.ts index bfe6bcc..74dbf1a 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -121,44 +121,44 @@ const config: Config = { }, ], }, - footer: { - style: 'dark', - links: [ - { - title: 'Docs', - items: [ - { - label: 'Tutorial', - to: '/docs/intro', - }, - ], - }, - { - title: 'Community', - items: [ - { - label: 'Discord', - href: 'https://discord.gg/YmSKSDfH' - }, - ], - }, - { - title: 'More', - items: [ - { - label: 'Blog', - to: '/blog', - }, - { - label: 'GitHub', - href: 'https://github.com/souvikpramanikgit/LearnHub', - }, - ], - }, - ], + // footer: { + // style: 'dark', + // links: [ + // { + // title: 'Docs', + // items: [ + // { + // label: 'Tutorial', + // to: '/docs/intro', + // }, + // ], + // }, + // { + // title: 'Community', + // items: [ + // { + // label: 'Discord', + // href: 'https://discord.gg/YmSKSDfH' + // }, + // ], + // }, + // { + // title: 'More', + // items: [ + // { + // label: 'Blog', + // to: '/blog', + // }, + // { + // label: 'GitHub', + // href: 'https://github.com/souvikpramanikgit/LearnHub', + // }, + // ], + // }, + // ], - copyright: `Copyright © ${new Date().getFullYear()} LearnHub. Built with Docusaurus.`, - }, + // copyright: `Copyright © ${new Date().getFullYear()} LearnHub. Built with Docusaurus.`, + // }, prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula, diff --git a/package-lock.json b/package-lock.json index 9bf8e61..61ae8da 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13415,13 +13415,6 @@ "pathe": "^2.0.1" } }, - "node_modules/monaco-editor": { - "version": "0.52.2", - "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.52.2.tgz", - "integrity": "sha512-GEQWEZmfkOGLdd3XK8ryrfWz3AIP8YymVXiPHEdewrUq7mh0qrKrfHLNCXcbB6sTnMLnOZ3ztSiKcciFUkIJwQ==", - "license": "MIT", - "peer": true - }, "node_modules/mrmime": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz", @@ -16749,13 +16742,6 @@ "url": "https://opencollective.com/webpack" } }, - "node_modules/search-insights": { - "version": "2.17.3", - "resolved": "https://registry.npmjs.org/search-insights/-/search-insights-2.17.3.tgz", - "integrity": "sha512-RQPdCYTa8A68uM2jwxoY842xDhvx3E5LFL1LxvxCNMev4o5mLuokczhzjAgGwUZBAmOKZknArSxLKmXtIi2AxQ==", - "license": "MIT", - "peer": true - }, "node_modules/section-matter": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz", @@ -17839,7 +17825,7 @@ "version": "5.6.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", - "devOptional": true, + "dev": true, "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", diff --git a/src/theme/Footer/index.tsx b/src/theme/Footer/index.tsx new file mode 100644 index 0000000..1c91eae --- /dev/null +++ b/src/theme/Footer/index.tsx @@ -0,0 +1,76 @@ +import React from "react"; +import clsx from "clsx"; +import styles from "./styles.module.css"; + +const Footer: React.FC = () => { + return ( + + ); +}; + +export default Footer; diff --git a/src/theme/Footer/styles.module.css b/src/theme/Footer/styles.module.css new file mode 100644 index 0000000..929964f --- /dev/null +++ b/src/theme/Footer/styles.module.css @@ -0,0 +1,85 @@ +.footer { + padding: 2rem 0; + background: #2d3542; + color: #fff; +} + +.footerColumns { + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 2rem; +} + +@media (max-width: 768px) { + .footerColumns { + grid-template-columns: repeat(2, 1fr); + } +} + +@media (max-width: 480px) { + .footerColumns { + grid-template-columns: 1fr; + gap: 1rem; + } + + .footerCol { + margin-right: 0; + } +} + +.footerCol h4 { + margin-bottom: 0.75rem; + font-size: 1rem; + font-weight: 600; + position: relative; + display: inline-block; + padding-bottom: 5px; +} + +.footerCol h4::after { + content: ""; + position: absolute; + left: 0; + bottom: 0; + width: 80%; + height: 2.5px; + background: #22c55e; + border-radius: 2px; +} + +.footerCol ul { + list-style: none; + padding: 0; + margin: 0; +} + +.footerCol ul li { + margin-bottom: 0.5rem; +} + +.footerCol a { + display: inline-flex; + align-items: center; + gap: 6px; + color: #ffffffcc; + text-decoration: none; + transition: color 0.2s ease-in-out; +} + +.footerCol a:hover { + color: #22c55e; +} + +.footerCol a:hover svg path { + fill: #22c55e; + transition: fill 0.2s ease-in-out; +} + + + +.footerBottom { + margin-top: 2rem; + text-align: center; + font-size: 0.85rem; + opacity: 0.8; +} \ No newline at end of file