From 408663dd5290f761e898ee68b484ab7b71b104b4 Mon Sep 17 00:00:00 2001 From: feilinlp <107558154+feilinlp@users.noreply.github.com> Date: Fri, 1 Mar 2024 18:05:08 +0800 Subject: [PATCH] website: change homepage main banner (#414) --- website/package.json | 3 +- website/src/pages/index.js | 67 ++++++++++++++++------------- website/src/pages/styles.module.css | 16 +++++++ 3 files changed, 54 insertions(+), 32 deletions(-) diff --git a/website/package.json b/website/package.json index a3841134b..e46151fb7 100755 --- a/website/package.json +++ b/website/package.json @@ -16,7 +16,8 @@ "@docusaurus/preset-classic": "3.1.1", "clsx": "^2.0.0", "react": "^18.2.0", - "react-dom": "^18.2.0" + "react-dom": "^18.2.0", + "react-icons": "^5.0.1" }, "browserslist": { "production": [ diff --git a/website/src/pages/index.js b/website/src/pages/index.js index 511b677af..1b8a69f2f 100755 --- a/website/src/pages/index.js +++ b/website/src/pages/index.js @@ -6,6 +6,7 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useBaseUrl from '@docusaurus/useBaseUrl'; import Link from '@docusaurus/Link'; import styles from './styles.module.css'; +import {RiStackLine} from 'react-icons/ri' import successStories from '@site/src/data/successStories'; @@ -78,32 +79,24 @@ function GreatFrontEndSection() { return (
+ style={{ backgroundColor: 'rgb(214, 43, 121)' }}>
-

+ style={{ fontSize: 'var(--ifm-h1-font-size)' }}> - Want to practice front end questions and reference answers - from experienced ex-FAANG senior engineers? Top front end - interview practice platform{' '} - - GreatFrontEnd - {' '} - is now offering 25% off their lifetime plan! Try out their - free questions today: + Looking for front end interview practice?
+ GreatFrontEnd has 200+ practice questions and reference solutions from big tech ex-interviewers
-

-
+
+
+
+ +
+ Well-explained solutions for every question +
+
+
+
+ +
+ Step-by-step study plans +
+
+
+
+ +
+ Structured 4-stage process +
+
+
); diff --git a/website/src/pages/styles.module.css b/website/src/pages/styles.module.css index 3e7470862..0e4ee474a 100755 --- a/website/src/pages/styles.module.css +++ b/website/src/pages/styles.module.css @@ -21,6 +21,22 @@ justify-content: center; } +.flexContainer { + display: flex; + align-items: center; +} + +.icon { + color: rgb(255, 255, 255); + font-size: 1.5rem; + margin-right: 0.5rem; +} + +.whiteText { + color: rgb(255, 255, 255); + margin: 0; +} + .sectionTitle { font-size: 2rem; }