From 22bc60f3c4815fe741833b43e07b49e68eda4705 Mon Sep 17 00:00:00 2001 From: Dan Lebo Date: Sat, 4 Feb 2023 15:30:04 -0800 Subject: [PATCH] top nav polish, large screen search bar fixes --- beta/src/components/Layout/HomeContent.js | 6 +- beta/src/components/Layout/TopNav/TopNav.tsx | 195 ++++++++++--------- beta/src/components/Search.tsx | 4 +- beta/tailwind.config.js | 5 +- 4 files changed, 111 insertions(+), 99 deletions(-) diff --git a/beta/src/components/Layout/HomeContent.js b/beta/src/components/Layout/HomeContent.js index 0e84a226c..43a901981 100644 --- a/beta/src/components/Layout/HomeContent.js +++ b/beta/src/components/Layout/HomeContent.js @@ -384,7 +384,7 @@ function Example2() { return (
-
+

@@ -589,7 +589,7 @@ function ExamplePanel({children, noPadding, noShadow}) { function BrowserChrome({children}) { return (
-
+
localhost:3000
@@ -619,7 +619,7 @@ function PostPage({post}) { function CommentsSkeleton() { return ( -
+
diff --git a/beta/src/components/Layout/TopNav/TopNav.tsx b/beta/src/components/Layout/TopNav/TopNav.tsx index 3a6bcb02a..3cf1688b2 100644 --- a/beta/src/components/Layout/TopNav/TopNav.tsx +++ b/beta/src/components/Layout/TopNav/TopNav.tsx @@ -33,14 +33,18 @@ const feedbackIcon = ( fill="none" xmlns="http://www.w3.org/2000/svg"> @@ -50,13 +54,15 @@ const feedbackIcon = ( const darkIcon = ( - + width="28" + height="28" + viewBox="0 0 32 32"> + @@ -68,15 +74,17 @@ const darkIcon = ( const lightIcon = ( - + width="32" + height="32" + viewBox="0 0 32 32"> +
- + React - -
+
-
-
- Learn -
-
- Reference -
-
- Community -
-
- Blog -
-
-
-
-
- -
-
- -
- { - clearTimeout(feedbackAutohideRef.current); - feedbackAutohideRef.current = setTimeout(() => { - setShowFeedback(false); - }, 1000); - }} - /> +
+
+
+ Learn +
+
+ Reference +
+
+ Community +
+
+ Blog
-
- -
-
- -
-
- +
+
+
+ +
+
+ +
+ { + clearTimeout(feedbackAutohideRef.current); + feedbackAutohideRef.current = setTimeout(() => { + setShowFeedback(false); + }, 1000); + }} + /> +
+
+
+ +
+
+ +
+
+ +
diff --git a/beta/src/components/Search.tsx b/beta/src/components/Search.tsx index ec6afb47a..1515a2a4e 100644 --- a/beta/src/components/Search.tsx +++ b/beta/src/components/Search.tsx @@ -154,14 +154,14 @@ export function Search({ type="button" className="inline-flex md:hidden items-center text-lg p-1 ml-4 lg:ml-6" onClick={onOpen}> - + )}