From af842349a960c75e6182052f955c6a5481a39af2 Mon Sep 17 00:00:00 2001 From: zhengqi zhang <770166635@qq.com> Date: Wed, 29 Nov 2023 22:33:05 +0800 Subject: [PATCH] Add additional guides --- src/components/AdditionalGuides/guides.json | 74 +++++++++ src/components/AdditionalGuides/index.astro | 111 +++++++++++++ src/components/DocsCard.astro | 129 ++++++++++++++ src/components/Footer/helper.tsx | 4 +- src/components/NewsCard.astro | 80 +++++++++ src/components/SectionHeader/index.astro | 32 +++- .../en/getting-started/additional-guides.mdx | 12 ++ src/pages/en/home/AdditionalGuides.astro | 157 ++++++++++++++++++ src/pages/en/home/Motion.astro | 63 +++++++ src/pages/en/home/index.astro | 4 + 10 files changed, 659 insertions(+), 7 deletions(-) create mode 100644 src/components/AdditionalGuides/guides.json create mode 100644 src/components/AdditionalGuides/index.astro create mode 100644 src/components/DocsCard.astro create mode 100644 src/components/NewsCard.astro create mode 100644 src/content/docs/en/getting-started/additional-guides.mdx create mode 100644 src/pages/en/home/AdditionalGuides.astro create mode 100644 src/pages/en/home/Motion.astro diff --git a/src/components/AdditionalGuides/guides.json b/src/components/AdditionalGuides/guides.json new file mode 100644 index 000000000..0d4e9c225 --- /dev/null +++ b/src/components/AdditionalGuides/guides.json @@ -0,0 +1,74 @@ +[ + { + "title": "How to Earn on Aave from Solidity", + "avatar": "https://pbs.twimg.com/profile_images/1067581658314895360/zduUfOmg_400x400.jpg", + "author": "Filosofia Codigo", + "category": "Video", + "publishedTo": "Filosofía Código EN", + "date": "Oct 4th", + "url": "https://scroll.io" + }, + { + "title": "How to Earn on Aave from Solidity", + "avatar": "https://pbs.twimg.com/profile_images/1067581658314895360/zduUfOmg_400x400.jpg", + "author": "Filosofia Codigo", + "category": "Tutorial", + "publishedTo": "Filosofía Código EN", + "date": "Oct 4th", + "url": "https://scroll.io" + }, + { + "title": "How to Earn on Aave from Solidity", + "avatar": "https://pbs.twimg.com/profile_images/1067581658314895360/zduUfOmg_400x400.jpg", + "category": "DeFi", + "author": "Filosofia Codigo", + "publishedTo": "Filosofía Código EN", + "date": "Oct 4th", + "url": "https://scroll.io" + }, + { + "title": "How to Earn on Aave from Solidity", + "avatar": "https://pbs.twimg.com/profile_images/1067581658314895360/zduUfOmg_400x400.jpg", + "category": "L2 Architecture", + "author": "Filosofia Codigo", + "publishedTo": "Filosofía Código EN", + "date": "Oct 4th", + "url": "https://scroll.io" + }, + { + "title": "How to Earn on Aave from Solidity", + "avatar": "https://pbs.twimg.com/profile_images/1067581658314895360/zduUfOmg_400x400.jpg", + "category": "DeFi", + "author": "Filosofia Codigo", + "publishedTo": "Filosofía Código EN", + "date": "Oct 4th", + "url": "https://scroll.io" + }, + { + "title": "How to Earn on Aave from Solidity", + "avatar": "https://pbs.twimg.com/profile_images/1067581658314895360/zduUfOmg_400x400.jpg", + "category": "Zero-Knowledge Proofs", + "author": "Filosofia Codigo", + "publishedTo": "Filosofía Código EN", + "date": "Oct 4th", + "url": "https://scroll.io" + }, + { + "title": "How to Earn on Aave from Solidity", + "avatar": "https://pbs.twimg.com/profile_images/1067581658314895360/zduUfOmg_400x400.jpg", + "author": "Filosofia Codigo", + "category": "DeFi", + "publishedTo": "Filosofía Código EN", + "date": "Oct 4th", + "url": "https://scroll.io" + }, + { + "title": "How to Earn on Aave from Solidity", + "avatar": "https://pbs.twimg.com/profile_images/1067581658314895360/zduUfOmg_400x400.jpg", + "author": "Filosofia Codigo", + "category": "Solidity", + "publishedTo": "Filosofía Código EN", + "date": "Oct 4th", + "url": "https://scroll.io" + } +] diff --git a/src/components/AdditionalGuides/index.astro b/src/components/AdditionalGuides/index.astro new file mode 100644 index 000000000..def7260a4 --- /dev/null +++ b/src/components/AdditionalGuides/index.astro @@ -0,0 +1,111 @@ +--- +import guides from "./guides.json" +// import DocsCard from "../../components/DocsCard.astro" +import DocsCard from "~/components/DocsCard.astro" +const categories = ["All", ...new Set(guides.map((guide) => guide.category))] +--- + +
{title}
+ + {domain} + + +{title}
-{content}
-> +{title}
+{content}
+