File tree 3 files changed +18
-14
lines changed
3 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import CodeBlock from 'components/MDX/CodeBlock';
27
27
import { ExternalLink } from 'components/ExternalLink' ;
28
28
import sidebarBlog from '../../sidebarBlog.json' ;
29
29
import * as React from 'react' ;
30
+ import Image from 'next/image' ;
30
31
31
32
function Section ( { children, background = null } ) {
32
33
return (
@@ -117,10 +118,12 @@ export function HomeContent() {
117
118
< div className = "ps-0" >
118
119
< div className = "mx-5 mt-12 lg:mt-24 mb-20 lg:mb-32 flex flex-col justify-center" >
119
120
< div className = "uwu-visible flex justify-center" >
120
- < img
121
+ < Image
121
122
alt = "logo by @sawaratsuki1004"
122
123
title = "logo by @sawaratsuki1004"
123
- className = "uwu-visible h-24 lg:h-40"
124
+ loading = "eager"
125
+ width = { 313 }
126
+ height = { 160 }
124
127
src = "/images/uwu.png"
125
128
/>
126
129
</ div >
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
startTransition ,
11
11
Suspense ,
12
12
} from 'react' ;
13
+ import Image from 'next/image' ;
13
14
import * as React from 'react' ;
14
15
import cn from 'classnames' ;
15
16
import NextLink from 'next/link' ;
@@ -249,14 +250,15 @@ export default function TopNav({
249
250
{ isMenuOpen ? < IconClose /> : < IconHamburger /> }
250
251
</ button >
251
252
< div className = "f" >
252
- < div className = "uwu-visible" >
253
- < NextLink
254
- href = "/"
255
- className = { `active:scale-95 mt-0.5 overflow-hidden transition-transform relative items-center justify-center text-primary dark:text-primary-dark p-1 whitespace-nowrap outline-link rounded-full 3xl:rounded-xl inline-flex text-lg font-normal gap-2` } >
256
- < img
253
+ < div className = "uwu-visible flex items-center justify-center h-full" >
254
+ < NextLink href = "/" >
255
+ < Image
257
256
alt = "logo by @sawaratsuki1004"
258
257
title = "logo by @sawaratsuki1004"
259
258
className = "h-8"
259
+ priority
260
+ width = { 63 }
261
+ height = { 32 }
260
262
src = "/images/uwu.png"
261
263
/>
262
264
</ NextLink >
Original file line number Diff line number Diff line change @@ -745,11 +745,10 @@ ol.mdx-illustration-block {
745
745
display : flex;
746
746
}
747
747
748
- .uwu {
749
- .uwu-visible {
750
- display : flex;
751
- }
752
- .uwu-hidden {
753
- display : none;
754
- }
748
+ .uwu .uwu-visible {
749
+ display : flex;
750
+ }
751
+
752
+ .uwu .uwu-hidden {
753
+ display : none;
755
754
}
You can’t perform that action at this time.
0 commit comments