diff --git a/package.json b/package.json index 7cc37bdcc1a..b58871451c2 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,6 @@ "react-icons": "^4.3.1", "react-instantsearch-dom": "^6.32.0", "react-intl": "^3.12.1", - "react-rewards": "^2.0.4", "react-select": "^4.3.0", "recharts": "^2.1.9", "styled-system": "^5.1.5", diff --git a/src/assets/home/default_hero.png b/src/assets/home/default_hero.png deleted file mode 100644 index ae5670ad9ef..00000000000 Binary files a/src/assets/home/default_hero.png and /dev/null differ diff --git a/src/assets/home/hero-panda.png b/src/assets/home/hero-panda.png new file mode 100644 index 00000000000..df2adb14963 Binary files /dev/null and b/src/assets/home/hero-panda.png differ diff --git a/src/assets/home/hero.png b/src/assets/home/hero.png index df2adb14963..ae5670ad9ef 100644 Binary files a/src/assets/home/hero.png and b/src/assets/home/hero.png differ diff --git a/src/assets/home/merge-panda.png b/src/assets/home/merge-panda.png new file mode 100644 index 00000000000..4742649da14 Binary files /dev/null and b/src/assets/home/merge-panda.png differ diff --git a/src/assets/home/merge-panda.svg b/src/assets/home/merge-panda.svg new file mode 100644 index 00000000000..44fe6ed235c --- /dev/null +++ b/src/assets/home/merge-panda.svg @@ -0,0 +1,714 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index ab508771838..73fd604fd44 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -8,9 +8,6 @@ import { LocaleProvider } from "gatsby-theme-i18n" import { lightTheme, darkTheme } from "../theme" -import BannerNotification from "./BannerNotification" -import Link from "./Link" -import Translation from "./Translation" import Footer from "./Footer" import VisuallyHidden from "./VisuallyHidden" import Nav from "./Nav" @@ -24,7 +21,6 @@ import { SkipLink, SkipLinkAnchor } from "./SkipLink" import { ZenModeContext } from "../contexts/ZenModeContext" import { useKeyPress } from "../hooks/useKeyPress" -import { useConfetti } from "../hooks/useConfetti" import { isLangRightToLeft } from "../utils/translations" import { scrollIntoView } from "../utils/scrollIntoView" @@ -68,11 +64,6 @@ const Main = styled.main` flex-grow: 1; ` -const Centered = styled.div` - display: flex; - justify-content: center; -` - export interface IProps { children?: React.ReactNode data?: { @@ -101,8 +92,6 @@ const Layout: React.FC = ({ const [isZenMode, setIsZenMode] = useState(false) const [shouldShowSideNav, setShouldShowSideNav] = useState(false) - const [isHomepage, setIsHomepage] = useState(false) - const [isMergePage, setIsMergePage] = useState(false) const locale = pageContext.locale const messages = require(`../intl/${locale}.json`) @@ -126,12 +115,8 @@ const Layout: React.FC = ({ const idTag = location.hash.split("#") scrollIntoView(idTag[1]) } - setIsHomepage(path === `/${locale}/`) - setIsMergePage(path === `/${locale}/upgrades/merge/`) }, [path, location]) - useConfetti("confetti-easter-egg") - const handleZenModeChange = (val?: boolean): void => { // Use 'val' param if provided. Otherwise toggle const newVal = val !== undefined ? val : !isZenMode @@ -180,22 +165,7 @@ const Layout: React.FC = ({