Front page

This commit is contained in:
Sarah Jamie Lewis 2022-06-03 06:45:27 -07:00
parent 76741dc3e7
commit f046d338d4
3 changed files with 31 additions and 31 deletions

View File

@ -6,8 +6,8 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Cwtch User\'s Handbook',
tagline: 'How to use Cwtch',
title: 'The Cwtch Handbook',
tagline: 'Your Guide to setting up and using Surveillance Resistant Infrastructure',
url: 'https://docs.cwtch.im',
baseUrl: '/',
onBrokenLinks: 'throw',

View File

@ -35,30 +35,30 @@ const FeatureList = [
},
];
// function Feature({Svg, title, description}) {
// 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">
// <h3>{title}</h3>
// <p>{description}</p>
// </div>
// </div>
// );
// }
function Feature({Svg, title, description}) {
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">
<h3>{title}</h3>
<p>{description}</p>
</div>
</div>
);
}
// export default function HomepageFeatures() {
// return (
// <section className={styles.features}>
// <div className="container">
// <div className="row">
// {FeatureList.map((props, idx) => (
// <Feature key={idx} {...props} />
// ))}
// </div>
// </div>
// </section>
// );
// }
export default function HomepageFeatures() {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
))}
</div>
</div>
</section>
);
}

View File

@ -29,11 +29,11 @@ export default function Home() {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="Description will go into a meta tag in <head />">
title={`${siteConfig.title}`}
description="The Cwtch Handbook">
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
</Layout>
);