From 2ebe19311a1663ba206484041194a9fb26c312d6 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Tue, 30 Apr 2024 16:03:30 -0400 Subject: [PATCH 1/8] Try next/image --- src/components/Layout/HomeContent.js | 6 ++++-- src/components/Layout/TopNav/TopNav.tsx | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/Layout/HomeContent.js b/src/components/Layout/HomeContent.js index edf790d3d1d..45d00d3c180 100644 --- a/src/components/Layout/HomeContent.js +++ b/src/components/Layout/HomeContent.js @@ -27,6 +27,7 @@ import CodeBlock from 'components/MDX/CodeBlock'; import {ExternalLink} from 'components/ExternalLink'; import sidebarBlog from '../../sidebarBlog.json'; import * as React from 'react'; +import Image from 'next/image'; function Section({children, background = null}) { return ( @@ -117,10 +118,11 @@ export function HomeContent() {
- logo by @sawaratsuki1004
diff --git a/src/components/Layout/TopNav/TopNav.tsx b/src/components/Layout/TopNav/TopNav.tsx index fcc1069e211..8c532e276b9 100644 --- a/src/components/Layout/TopNav/TopNav.tsx +++ b/src/components/Layout/TopNav/TopNav.tsx @@ -10,6 +10,7 @@ import { startTransition, Suspense, } from 'react'; +import Image from 'next/image'; import * as React from 'react'; import cn from 'classnames'; import NextLink from 'next/link'; @@ -253,10 +254,12 @@ export default function TopNav({ - logo by @sawaratsuki1004 From 43b9cdbcb0b9f420aa050c0909ace65caaa9906c Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Tue, 30 Apr 2024 16:08:11 -0400 Subject: [PATCH 2/8] Fix styles.css --- src/styles/index.css | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/styles/index.css b/src/styles/index.css index 27f0a997755..c8254c10cd6 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -745,11 +745,10 @@ ol.mdx-illustration-block { display: flex; } -.uwu { - .uwu-visible { - display: flex; - } - .uwu-hidden { - display: none; - } +.uwu .uwu-visible { + display: flex; +} + +.uwu .uwu-hidden { + display: none; } From ec1e6fdbffea5c313f4c508e2f3d0c08d8e60164 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Tue, 30 Apr 2024 16:11:14 -0400 Subject: [PATCH 3/8] rm unneeded styles --- src/components/Layout/TopNav/TopNav.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Layout/TopNav/TopNav.tsx b/src/components/Layout/TopNav/TopNav.tsx index 8c532e276b9..96906dce576 100644 --- a/src/components/Layout/TopNav/TopNav.tsx +++ b/src/components/Layout/TopNav/TopNav.tsx @@ -251,9 +251,7 @@ export default function TopNav({
- + logo by @sawaratsuki1004 Date: Tue, 30 Apr 2024 16:35:00 -0400 Subject: [PATCH 4/8] priority=true --- src/components/Layout/HomeContent.js | 1 + src/components/Layout/TopNav/TopNav.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/Layout/HomeContent.js b/src/components/Layout/HomeContent.js index 45d00d3c180..bce857a83a3 100644 --- a/src/components/Layout/HomeContent.js +++ b/src/components/Layout/HomeContent.js @@ -122,6 +122,7 @@ export function HomeContent() { alt="logo by @sawaratsuki1004" title="logo by @sawaratsuki1004" width={313} + priority={true} height={160} src="/images/uwu.png" /> diff --git a/src/components/Layout/TopNav/TopNav.tsx b/src/components/Layout/TopNav/TopNav.tsx index 96906dce576..3f6aa33a422 100644 --- a/src/components/Layout/TopNav/TopNav.tsx +++ b/src/components/Layout/TopNav/TopNav.tsx @@ -256,6 +256,7 @@ export default function TopNav({ alt="logo by @sawaratsuki1004" title="logo by @sawaratsuki1004" className="h-8" + priority={true} width={63} height={32} src="/images/uwu.png" From 7516194562d1b40dfacd4c856af907280ed8c2ba Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Tue, 30 Apr 2024 16:42:20 -0400 Subject: [PATCH 5/8] tweaks --- src/components/Layout/HomeContent.js | 2 +- src/components/Layout/TopNav/TopNav.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Layout/HomeContent.js b/src/components/Layout/HomeContent.js index bce857a83a3..6416d672a68 100644 --- a/src/components/Layout/HomeContent.js +++ b/src/components/Layout/HomeContent.js @@ -121,8 +121,8 @@ export function HomeContent() { logo by @sawaratsuki1004 diff --git a/src/components/Layout/TopNav/TopNav.tsx b/src/components/Layout/TopNav/TopNav.tsx index 3f6aa33a422..975cd604acb 100644 --- a/src/components/Layout/TopNav/TopNav.tsx +++ b/src/components/Layout/TopNav/TopNav.tsx @@ -251,12 +251,14 @@ export default function TopNav({
- + logo by @sawaratsuki1004 Date: Tue, 30 Apr 2024 16:48:28 -0400 Subject: [PATCH 6/8] Static height --- src/components/Layout/TopNav/TopNav.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Layout/TopNav/TopNav.tsx b/src/components/Layout/TopNav/TopNav.tsx index 975cd604acb..96e0f1494ef 100644 --- a/src/components/Layout/TopNav/TopNav.tsx +++ b/src/components/Layout/TopNav/TopNav.tsx @@ -253,7 +253,7 @@ export default function TopNav({
+ className="h-10 items-center justify-center p-1"> logo by @sawaratsuki1004 Date: Tue, 30 Apr 2024 16:55:12 -0400 Subject: [PATCH 7/8] tweak --- src/components/Layout/TopNav/TopNav.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Layout/TopNav/TopNav.tsx b/src/components/Layout/TopNav/TopNav.tsx index 96e0f1494ef..1c03575fd52 100644 --- a/src/components/Layout/TopNav/TopNav.tsx +++ b/src/components/Layout/TopNav/TopNav.tsx @@ -250,10 +250,8 @@ export default function TopNav({ {isMenuOpen ? : }
-
- +
+ logo by @sawaratsuki1004 Date: Tue, 30 Apr 2024 17:47:39 -0400 Subject: [PATCH 8/8] priority --- src/components/Layout/TopNav/TopNav.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Layout/TopNav/TopNav.tsx b/src/components/Layout/TopNav/TopNav.tsx index 1c03575fd52..06f2dd8077e 100644 --- a/src/components/Layout/TopNav/TopNav.tsx +++ b/src/components/Layout/TopNav/TopNav.tsx @@ -256,7 +256,7 @@ export default function TopNav({ alt="logo by @sawaratsuki1004" title="logo by @sawaratsuki1004" className="h-8" - loading="eager" + priority width={63} height={32} src="/images/uwu.png"