From 346a3034f17cd84305ca97f87b9d12a463bfcf5d Mon Sep 17 00:00:00 2001
From: Nora Krantz <75342690+nkrantz@users.noreply.github.com>
Date: Thu, 8 Feb 2024 17:24:31 -0300
Subject: [PATCH 1/5] chore(website): site wrapper and replace homepage
---
.../customization-landing-page/WhyPaste.tsx | 46 --
.../src/components/homepage/Accessibility.tsx | 22 +-
.../src/components/homepage/NewHomeHero.tsx | 4 +-
.../src/components/icons/HeartDoodleIcon.tsx | 2 +-
.../components/site-wrapper-new/SiteBody.tsx | 140 +++++
.../components/site-wrapper-new/SiteMain.tsx | 11 +
.../src/components/site-wrapper-new/index.tsx | 23 +
.../sidebar/SidebarAnchor.tsx | 35 ++
.../sidebar/SidebarNavigation.tsx | 482 ++++++++++++++++++
.../site-footer/SiteFooterHeader.tsx | 25 +
.../site-footer/SiteFooterIllustration.tsx | 16 +
.../site-footer/SiteFooterNav.tsx | 207 ++++++++
.../site-wrapper-new/site-footer/index.tsx | 31 ++
.../site-header/DarkModeToggle.tsx | 68 +++
.../site-header/FigmaButton.tsx | 43 ++
.../site-header/HamburgerToggle.tsx | 69 +++
.../site-header/SiteHeaderLogo.tsx | 100 ++++
.../site-header/SiteHeaderSearch.tsx | 74 +++
.../site-wrapper-new/site-header/index.tsx | 55 ++
packages/paste-website/src/constants.ts | 1 +
.../paste-website/src/pages/new/index.tsx | 11 +-
21 files changed, 1399 insertions(+), 66 deletions(-)
create mode 100644 packages/paste-website/src/components/site-wrapper-new/SiteBody.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/SiteMain.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/index.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/sidebar/SidebarAnchor.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/sidebar/SidebarNavigation.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/site-footer/SiteFooterHeader.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/site-footer/SiteFooterIllustration.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/site-footer/SiteFooterNav.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/site-footer/index.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/site-header/DarkModeToggle.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/site-header/FigmaButton.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/site-header/HamburgerToggle.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/site-header/SiteHeaderLogo.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/site-header/SiteHeaderSearch.tsx
create mode 100644 packages/paste-website/src/components/site-wrapper-new/site-header/index.tsx
diff --git a/packages/paste-website/src/components/customization-landing-page/WhyPaste.tsx b/packages/paste-website/src/components/customization-landing-page/WhyPaste.tsx
index ffdbedef22..c1e33fe631 100644
--- a/packages/paste-website/src/components/customization-landing-page/WhyPaste.tsx
+++ b/packages/paste-website/src/components/customization-landing-page/WhyPaste.tsx
@@ -7,56 +7,12 @@ import Image from "next/image";
import { DoodleLoopArrowLarge } from "../../assets/illustrations/DoodleLoopArrowLarge";
import WhyPasteMobile from "../../assets/images/customization/why-paste-mobile.png";
import WhyPasteImg from "../../assets/images/customization/why-paste.png";
-import { useDarkModeContext } from "../../context/DarkModeContext";
-import { useSlantedSkew } from "../SlantedBackgroundGradient";
import { A11yIcon } from "../icons/A11yIcon";
import { CustomizableIcon } from "../icons/CustomizableIcon";
import { ThemableIcon } from "../icons/ThemableIcon";
import { LandingPageSection, LandingPageSectionContent } from "./LandingPageLayoutUtils";
import { ReasonBlock } from "./ReasonBlock";
-const WhyPasteTopAngle = (): JSX.Element => {
- const [skewOffset] = useSlantedSkew();
- const { theme } = useDarkModeContext();
-
- return (
-
- );
-};
-
-const WhyPasteBottomAngle = (): JSX.Element => {
- const [skewOffset] = useSlantedSkew(-0.35);
- const { theme } = useDarkModeContext();
-
- return (
-
- );
-};
-
export const WhyPaste = (): JSX.Element => {
return (
{
maxWidth="96%"
marginX="auto"
>
-
-
diff --git a/packages/paste-website/src/components/homepage/Accessibility.tsx b/packages/paste-website/src/components/homepage/Accessibility.tsx
index 8750983fec..74f86b3e1c 100644
--- a/packages/paste-website/src/components/homepage/Accessibility.tsx
+++ b/packages/paste-website/src/components/homepage/Accessibility.tsx
@@ -48,18 +48,18 @@ const Accessibility: React.FC = (): React.ReactElement => {
Accessibility is more than just color contrast. We believe in designing for each user, not just “all
users”. We build with these considerations in mind:
-
-
- Screen magnification, voice dictation, color blindness, and those who require help with fine motor
- control.
-
- Semantic HTML to better communicate with assistive technologies.
- UI controls that are designed to be instantly recognizable and easy to see.
-
- Keyboard navigation and focus management to allow task completion through a variety of input devices.
-
-
+
+
+ Screen magnification, voice dictation, color blindness, and those who require help with fine motor
+ control.
+
+ Semantic HTML to better communicate with assistive technologies.
+ UI controls that are designed to be instantly recognizable and easy to see.
+
+ Keyboard navigation and focus management to allow task completion through a variety of input devices.
+
+
diff --git a/packages/paste-website/src/components/homepage/NewHomeHero.tsx b/packages/paste-website/src/components/homepage/NewHomeHero.tsx
index 50aa4b7459..2368321805 100644
--- a/packages/paste-website/src/components/homepage/NewHomeHero.tsx
+++ b/packages/paste-website/src/components/homepage/NewHomeHero.tsx
@@ -9,7 +9,7 @@ import { BouncyAnchor } from "./BouncyAnchor";
import { SearchBox } from "./SearchBox";
import { ComponentShowcase } from "./component-showcase";
-const NewHomeHero = (): JSX.Element => {
+const HomeHero = (): JSX.Element => {
const theme = useTheme();
return (
@@ -73,4 +73,4 @@ const NewHomeHero = (): JSX.Element => {
);
};
-export { NewHomeHero };
+export { HomeHero };
diff --git a/packages/paste-website/src/components/icons/HeartDoodleIcon.tsx b/packages/paste-website/src/components/icons/HeartDoodleIcon.tsx
index 46ef990f2e..2e7ea91b38 100644
--- a/packages/paste-website/src/components/icons/HeartDoodleIcon.tsx
+++ b/packages/paste-website/src/components/icons/HeartDoodleIcon.tsx
@@ -17,7 +17,7 @@ const HeartDoodleIcon = React.memo(