Skip to content

Commit 0c60a8d

Browse files
committed
docs: improve homepage
1 parent 1d61f4a commit 0c60a8d

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/component/Homepage.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ export default function Homepage({
1414
<main>
1515
<section>
1616
<Box sx={{ textAlign: 'center' }}>
17-
<PinDropIcon />
17+
<PinDropIcon
18+
className='page-title'
19+
sx={{ width: '3rem', height: '3rem' }}
20+
/>
1821
<Typography
1922
variant='h5'
2023
component='h1'
@@ -39,6 +42,10 @@ export default function Homepage({
3942
Fetch & cache data from 2 remote APIs test: <br />
4043
The latest React version is {reactVersion}, and the latest NextJs
4144
version is {nextJsVersion}
45+
<Box sx={{ color: 'grey', fontSize: 10 }}>
46+
On dev environment, you can see how long it takes on console, e.g.
47+
getApiResponse: 0.05s
48+
</Box>
4249
</Typography>
4350

4451
<Box sx={{ m: 5 }}>
@@ -57,7 +64,7 @@ export default function Homepage({
5764
Click here to deploy a demo site to your Vercel in 1 minute
5865
</Link>
5966
</Box>
60-
<Box sx={{ m: 5 }}>
67+
<Box sx={{ m: 5, a: { color: 'blue' } }}>
6168
<Link
6269
href='/api/test?from=github&nextjs=yes&mui=yes&tailwind=no'
6370
target='_blank'
@@ -74,10 +81,14 @@ export default function Homepage({
7481
</Box>
7582

7683
<Box sx={{ m: 5 }}>
77-
<Link href='/test-page-not-exists'>Test 404 page not found</Link>
84+
<Link href='/test-page-not-exists'>
85+
Test 404 page not found (mock file not exists)
86+
</Link>
7887
</Box>
7988
<Box sx={{ m: 5 }}>
80-
<a href='/?slug=testError500'>Test 500 error page</a>
89+
<a href='/?slug=testError500'>
90+
Test 500 error page (mock server side throw error)
91+
</a>
8192
</Box>
8293
</Box>
8394
</section>

0 commit comments

Comments
 (0)