From b769d30e997c62240d8094701ec93fb7fe5b9e9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Iv=C3=A1n=20G=C3=B3mez=20Pinta?=
<44321109+GomezIvann@users.noreply.github.com>
Date: Mon, 26 Jun 2023 14:07:33 +0200
Subject: [PATCH 1/3] New UXPin section, GitHub link & small fixes
---
website/pages/_app.tsx | 48 +++++----
website/screens/common/DocFooter.tsx | 100 +++++++++---------
website/screens/common/pagesList.ts | 6 +-
.../introduction/IntroductionPage.tsx | 42 ++++++--
4 files changed, 115 insertions(+), 81 deletions(-)
diff --git a/website/pages/_app.tsx b/website/pages/_app.tsx
index 22d112857..47646d44d 100644
--- a/website/pages/_app.tsx
+++ b/website/pages/_app.tsx
@@ -102,28 +102,32 @@ const MyApp = ({ Component, pageProps }: AppPropsWithLayout) => {
}}
/>
- {filteredLinks?.map(({ label, links }) => {
- return (
-
-
- {links.map(({ label, path, status }) => (
-
-
- {label}
- {status !== "Ready" && (
-
- {status}
-
- )}
-
-
- ))}
-
-
- );
- })}
+ {filteredLinks?.map(({ label, links }) => (
+
+
+ {links.map(({ label, path, status }) => (
+
+
+ {label}
+ {status !== "Ready" && (
+ {status}
+ )}
+
+
+ ))}
+
+
+ ))}
+
+
+ GitHub
+
+
}
>
diff --git a/website/screens/common/DocFooter.tsx b/website/screens/common/DocFooter.tsx
index 2f5969951..d97a00933 100644
--- a/website/screens/common/DocFooter.tsx
+++ b/website/screens/common/DocFooter.tsx
@@ -8,55 +8,6 @@ import Link from "next/link";
import { getNavigationLinks } from "./pagesList";
import styled from "styled-components";
-const DocFooter = ({ githubLink }: { githubLink: string }) => {
- const { pathname } = useRouter();
- const { previousLink, nextLink } = getNavigationLinks(pathname);
-
- return (
-
-
-
-
- Edit this page on GitHub
-
-
- Report an issue on GitHub
-
-
-
-
-
- {previousLink && (
- <>
- Previous
-
- {previousLink.label}
-
- >
- )}
-
-
- {nextLink && (
- <>
- Next
-
-
- {nextLink.label}
-
-
- >
- )}
-
-
-
-
- );
-};
-
const arrowForward = (