From dfd5c71f0ada965f99ba544d0d3d1bfaa0246b93 Mon Sep 17 00:00:00 2001 From: Yangshun Date: Fri, 21 Jan 2022 09:24:55 +0800 Subject: [PATCH] website: refactor homepage --- website/src/pages/index.js | 968 +++++++++++++++++++------------------ 1 file changed, 503 insertions(+), 465 deletions(-) diff --git a/website/src/pages/index.js b/website/src/pages/index.js index d1cd6a36..fb3b280b 100755 --- a/website/src/pages/index.js +++ b/website/src/pages/index.js @@ -101,229 +101,73 @@ function Tweet({url, handle, name, content, avatar, date}) { } function Home() { - const context = useDocusaurusContext(); - const {siteConfig = {}} = context; + const {siteConfig = {}} = useDocusaurusContext(); return ( -
-
- + + + + + + + + + + ); +} + +function HeroSection() { + const {siteConfig = {}} = useDocusaurusContext(); + + return ( +
+
+ +

{siteConfig.title}

+

+ {siteConfig.tagline}
+ Brought to you by FAANG engineers and the author of the{' '} + + Blind 75 List + +
+ Over 500,000 people have benefitted from this handbook! +

+ +
+