Skip to content

Commit

Permalink
Revert "refactor: homepage/doc-sidebar (#3389)"
Browse files Browse the repository at this point in the history
This reverts commit da261be.
  • Loading branch information
palisadoes authored Jan 23, 2025
1 parent da261be commit 7123ba8
Show file tree
Hide file tree
Showing 15 changed files with 1,228 additions and 360 deletions.
63 changes: 61 additions & 2 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ const config: Config = {
'https://github.com/PalisadoesFoundation/talawa-admin/tree/develop/docs/docs',
},
theme: {
customCss: [require.resolve('./src/css/custom.css')],
customCss: [
require.resolve('./src/css/custom.css'),
require.resolve('./src/css/index.css'),
],
},
},
],
Expand All @@ -59,7 +62,7 @@ const config: Config = {
},
},
navbar: {
title: 'Talawa',
title: 'Talawa Admin Documentation',
logo: {
alt: 'Talawa Logo',
src: 'img/icons/favicon_palisadoes.ico',
Expand Down Expand Up @@ -115,6 +118,62 @@ const config: Config = {
disableSwitch: false,
respectPrefersColorScheme: false,
},
footer: {
style: 'dark',
links: [
{
title: 'Community',
items: [
{
label: ' Slack',
to: 'https://github.com/PalisadoesFoundation',
className: 'footer__icon footer__slack',
},
{
label: ' News',
to: 'https://www.palisadoes.org/news/',
className: 'footer__icon footer__news',
},
{
label: ' Contact Us',
to: 'https://www.palisadoes.org/contact/',
className: 'footer__icon footer__contact',
},
],
},
{
title: 'Social Media',
items: [
{
label: ' Twitter',
to: 'https://twitter.com/palisadoesorg?lang=en',
className: 'footer__icon footer__twitter',
},
{
label: ' Facebook',
to: 'https://www.facebook.com/palisadoesproject/',
className: 'footer__icon footer__facebook',
},
{
label: ' Instagram',
to: 'https://www.instagram.com/palisadoes/?hl=en',
className: 'footer__icon footer__instagram',
},
],
},
{
title: 'Development',
items: [
{
label: ' GitHub',
to: 'https://github.com/PalisadoesFoundation',
className: 'footer__icon footer__github',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} The Palisadoes Foundation, LLC. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
Expand Down
70 changes: 70 additions & 0 deletions docs/src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import clsx from 'clsx';
import Heading from '@theme/Heading';
import styles from './styles.module.css';

type FeatureItem = {
title: string;
Svg: React.ComponentType<React.ComponentProps<'svg'>>;
description: JSX.Element;
};

const FeatureList: FeatureItem[] = [
{
title: 'Easy to Use',
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
description: (
<>
Docusaurus was designed from the ground up to be easily installed and
used to get your website up and running quickly.
</>
),
},
{
title: 'Focus on What Matters',
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
description: (
<>
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
ahead and move your docs into the <code>docs</code> directory.
</>
),
},
{
title: 'Powered by React',
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
description: (
<>
Extend or customize your website layout by reusing React. Docusaurus can
be extended while reusing the same header and footer.
</>
),
},
];

function Feature({ title, Svg, description }: FeatureItem) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
<Svg className={styles.featureSvg} role="img" />
</div>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
</div>
);
}

export default function HomepageFeatures(): JSX.Element {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
))}
</div>
</div>
</section>
);
}
11 changes: 11 additions & 0 deletions docs/src/components/HomepageFeatures/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.features {
display: flex;
align-items: center;
padding: 2rem 0;
width: 100%;
}

.featureSvg {
height: 200px;
width: 200px;
}
Loading

0 comments on commit 7123ba8

Please sign in to comment.