Skip to content

Commit e2009a1

Browse files
committed
comment out client component
1 parent addc3a0 commit e2009a1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/pages/index.mdx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,22 @@ title: 'Home'
44
description: 'Welcome to my blog'
55
---
66

7+
import { Image } from 'astro:assets';
8+
9+
import { IMAGE_SIZES } from '../constants/image';
10+
import { getRandomImageMetadata } from '../utils/image';
11+
12+
{/*
713
import ImageRandom from '../components/react/ImageRandom';
14+
*/}
815

916
# Hello and welcome
1017

11-
<ImageRandom className="w-full sm:max-h-96 object-cover" client:load />
18+
<Image {...IMAGE_SIZES.RESPONSIVE.POST_HERO} src={getRandomImageMetadata()} class="sm:max-h-96 object-cover" alt="Fishing spot" />
19+
20+
{/*
21+
<ImageRandom className="w-full sm:max-h-96 object-cover" client:load />
22+
*/}
1223

1324
Welcome to my coding blog. Here, I will share my coding experiments and thoughts on React.js, Next.js, Node.js, Astro, Python, DevOps, and more. Feel free to read, explore, and comment. Or, if you are feeling overwhelmed by coding, you can take a break and enjoy some random landscape photos.
1425

0 commit comments

Comments
 (0)