{imgUrl && (
@@ -168,8 +138,124 @@ function Feature({ imageUrl, title, description }) {
}
function Home() {
- return
;
+ //return
;
+ const [features, setFeatures] = useState([
+ {
+ id: 1,
+ title: <>1>,
+ imageUrl: 'img/undraw_docusaurus_mountain.svg',
+ description: (
+ <>
+ Docusaurus was designed from the ground up to be easily installed and
+ used to get your website up and running quickly.
+ >
+ ),
+ },
+ {
+ id: 2,
+ title: <>2>,
+ imageUrl: 'img/undraw_docusaurus_tree.svg',
+ description: (
+ <>
+ Docusaurus lets you focus on your docs, and we'll do the chores.
+ Go ahead and move your docs into the
docs
directory.
+ >
+ ),
+ },
+ {
+ id: 3,
+ title: <>3>,
+ imageUrl: 'img/undraw_docusaurus_react.svg',
+ description: (
+ <>
+ Extend or customize your website layout by reusing React. Docusaurus
+ can be extended while reusing the same header and footer.
+ >
+ ),
+ },
+ {
+ id: 4,
+ title: <>4>,
+ imageUrl: 'img/undraw_docusaurus_react.svg',
+ description: (
+ <>
+ Extend or customize your website layout by reusing React. Docusaurus
+ can be extended while reusing the same header and footer.
+ >
+ ),
+ },
+ {
+ id: 5,
+ title: <>5>,
+ imageUrl: 'img/undraw_docusaurus_react.svg',
+ description: (
+ <>
+ Extend or customize your website layout by reusing React. Docusaurus
+ can be extended while reusing the same header and footer.
+ >
+ ),
+ },
+ {
+ id: 6,
+ title: <>6>,
+ imageUrl: 'img/undraw_docusaurus_react.svg',
+ description: (
+ <>
+ Extend or customize your website layout by reusing React. Docusaurus
+ can be extended while reusing the same header and footer.
+ >
+ ),
+ },
+ {
+ id: 7,
+ title: <>7>,
+ imageUrl: 'img/undraw_docusaurus_react.svg',
+ description: (
+ <>
+ Extend or customize your website layout by reusing React. Docusaurus
+ can be extended while reusing the same header and footer.
+ >
+ ),
+ },
+ ]);
+
+ const [added, setAdded] = useState(false);
+ const [addedCount, setAddedCount] = useState(1);
+ const [extraItems, setExtraItems] = useState([]);
+ const addItems = () => {
+ if (addedCount > 2) {
+ return [];
+ }
+
+ const newItems = [...Array(20)].map((_, id) => {
+ const attr = {
+ id,
+ title: <>{id}>,
+ imageUrl: 'img/undraw_docusaurus_react.svg',
+ description: (
+ <>
+ Extend or customize your website layout by reusing React.
+ Docusaurus can be extended while reusing the same header and
+ footer.
+ >
+ ),
+ };
+ return
;
+ });
+
+ if (addedCount == 1) {
+ setExtraItems(newItems.slice(8, 11));
+ } else if (addedCount == 2) {
+ setExtraItems(newItems.slice(11, 15));
+ }
+
+ setAdded(true);
+ setAddedCount(addedCount + 1);
+ return newItems;
+ };
+
const context = useDocusaurusContext();
+ const [dataa, setData] = useState(slideData);
const { siteConfig = {} } = context;
return (
-
-
- {slideData.map((d) => (
-
-
-
{d.text}
-
- ))}
-
-
+
-
-
- {features2(15).map((props, idx) => (
-
- {props.description}
-
- ))}
-
-
+
{features && features.length && (
-
+
+
{features.map((props, idx) => (
-
+
))}