diff --git a/.env.example b/.env.example deleted file mode 100644 index fee30cf..0000000 --- a/.env.example +++ /dev/null @@ -1,3 +0,0 @@ -ALGOLIA_APP_ID=your_algolia_app_id -ALGOLIA_API_KEY=your_algolia_api_key -ALGOLIA_INDEX_NAME=your_algolia_index_name diff --git a/src/css/custom.css b/src/css/custom.css index 5b7ce3c..cd93f02 100755 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -34,3 +34,75 @@ .navbar__logo { margin-right: 0; } +/* Footer container: Add padding to the entire footer */ +.footer { + padding: 2rem 4rem; /* Add padding to the top/bottom and left/right */ +} + +/* Footer links container: Add padding between columns and edges */ +.footer__links { + display: flex; + justify-content: space-between; + gap: 2rem; /* Space between the columns */ + padding: 0 1rem; /* Horizontal padding inside the footer links container */ +} + +/* Footer link columns */ +.footer__link-column { + flex: 1; + padding: 0 1rem; /* Horizontal padding for each column */ +} + +/* Align 'Follow Us' column to the right */ +.footer__link-column:nth-child(2) { + margin-left: auto; + text-align: right; +} + +/* Style the footer links */ +.footer__link-column ul { + list-style-type: none; + padding-left: 0; +} + +.footer__link-column li { + margin-bottom: 0.5rem; +} + +/* Style for the footer copyright */ +.footer__copyright { + text-align: center; + padding-top: 1rem; + margin-top: 2rem; /* Space between copyright and links */ +} + +/* Mobile responsiveness */ +@media (max-width: 768px) { + /* Make the footer sections stack vertically */ + .footer__links { + flex-direction: column; /* Stack columns vertically */ + align-items: flex-start; /* Align them to the left */ + gap: 1rem; /* Reduced gap between sections */ + } + + /* Remove any extra padding from individual columns on mobile */ + .footer__link-column { + padding: 0; /* Remove padding for better mobile layout */ + } + + /* Ensure the 'Follow Us' section aligns to the left on small screens */ + .footer__link-column:nth-child(2) { + margin-left: 0; + text-align: left; + } + + /* Adjust the overall padding of the footer on mobile */ + .footer { + padding: 1.5rem 2rem; /* Reduced padding for mobile */ + } + + /* Make the footer copyright more readable on smaller screens */ + .footer__copyright { + font-size: 0.9rem; /* Slightly smaller text size for copyright */ + } +} diff --git a/src/theme/Footer/Copyright/index.js b/src/theme/Footer/Copyright/index.js new file mode 100644 index 0000000..d239a7a --- /dev/null +++ b/src/theme/Footer/Copyright/index.js @@ -0,0 +1,11 @@ +import React from 'react'; +export default function FooterCopyright({copyright}) { + return ( +
+ ); +} diff --git a/src/theme/Footer/Layout/index.js b/src/theme/Footer/Layout/index.js new file mode 100644 index 0000000..cbbefc4 --- /dev/null +++ b/src/theme/Footer/Layout/index.js @@ -0,0 +1,20 @@ +import React from 'react'; +import clsx from 'clsx'; +export default function FooterLayout({style, links, logo, copyright}) { + return ( + + ); +} diff --git a/src/theme/Footer/LinkItem/index.js b/src/theme/Footer/LinkItem/index.js new file mode 100644 index 0000000..f1a6e84 --- /dev/null +++ b/src/theme/Footer/LinkItem/index.js @@ -0,0 +1,25 @@ +import React from 'react'; +import Link from '@docusaurus/Link'; +import useBaseUrl from '@docusaurus/useBaseUrl'; +import isInternalUrl from '@docusaurus/isInternalUrl'; +import IconExternalLink from '@theme/Icon/ExternalLink'; +export default function FooterLinkItem({item}) { + const {to, href, label, prependBaseUrlToHref, ...props} = item; + const toUrl = useBaseUrl(to); + const normalizedHref = useBaseUrl(href, {forcePrependBaseUrl: true}); + return ( + + {label} + {href && !isInternalUrl(href) &&