From 85a27923c728db442c8b28200f591479c4b93875 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Fri, 12 Apr 2024 08:35:28 +0530 Subject: Move to Docusaurus --- src/components/DiscordBadge.js | 11 ++++ src/components/HomepageFeatures/index.js | 64 +++++++++++++++++++++++ src/components/HomepageFeatures/styles.module.css | 11 ++++ 3 files changed, 86 insertions(+) create mode 100644 src/components/DiscordBadge.js create mode 100644 src/components/HomepageFeatures/index.js create mode 100644 src/components/HomepageFeatures/styles.module.css (limited to 'src/components') diff --git a/src/components/DiscordBadge.js b/src/components/DiscordBadge.js new file mode 100644 index 0000000..33b1c11 --- /dev/null +++ b/src/components/DiscordBadge.js @@ -0,0 +1,11 @@ +import React from 'react'; + +function DiscordBadge() { + return ( + + Discord + + ); +} + +export default DiscordBadge; diff --git a/src/components/HomepageFeatures/index.js b/src/components/HomepageFeatures/index.js new file mode 100644 index 0000000..acc7621 --- /dev/null +++ b/src/components/HomepageFeatures/index.js @@ -0,0 +1,64 @@ +import clsx from 'clsx'; +import Heading from '@theme/Heading'; +import styles from './styles.module.css'; + +const FeatureList = [ + { + 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'll do the chores. Go + ahead and move your docs into the docs 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({Svg, title, description}) { + return ( +
+
+ +
+
+ {title} +

{description}

+
+
+ ); +} + +export default function HomepageFeatures() { + return ( +
+
+
+ {FeatureList.map((props, idx) => ( + + ))} +
+
+
+ ); +} diff --git a/src/components/HomepageFeatures/styles.module.css b/src/components/HomepageFeatures/styles.module.css new file mode 100644 index 0000000..b248eb2 --- /dev/null +++ b/src/components/HomepageFeatures/styles.module.css @@ -0,0 +1,11 @@ +.features { + display: flex; + align-items: center; + padding: 2rem 0; + width: 100%; +} + +.featureSvg { + height: 200px; + width: 200px; +} -- cgit v1.2.3