Skip to content

Commit 1fe9267

Browse files
docs: enhancements for a smoother user experience
1 parent 175c752 commit 1fe9267

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/.vitepress/components/Contributors.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { contributors } from '../contributors'
55
<template>
66
<div flex="~ wrap gap2" justify-center>
77
<a v-for="{ name, avatar } of contributors" :key="name" :href="`https://github.com/${name}`" m-0 rel="noopener noreferrer" :aria-label="`${name} on GitHub`">
8-
<img loading="lazy" :src="avatar" width="50" height="50" rounded-full h-12 w-12 :alt="`${name}'s avatar`">
8+
<img loading="lazy" decoding="async" :src="avatar" width="50" height="50" rounded-full h-12 w-12 :alt="`${name}'s avatar`">
99
</a>
1010
</div>
1111
</template>

docs/.vitepress/components/HomePage.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import { teamMembers } from '../contributors'
3838
loading="lazy"
3939
src="/sponsors/antfu.svg"
4040
alt="Anthony Fu's sponsors"
41+
decoding="async"
4142
>
4243
</a>
4344
</div>
@@ -52,6 +53,7 @@ import { teamMembers } from '../contributors'
5253
loading="lazy"
5354
src="/sponsors/sheremet-va.svg"
5455
alt="Vladimir's sponsors"
56+
decoding="async"
5557
>
5658
</a>
5759
</div>
@@ -66,13 +68,14 @@ import { teamMembers } from '../contributors'
6668
loading="lazy"
6769
src="/sponsors/patak-dev.svg"
6870
alt="Patak's sponsors"
71+
decoding="async"
6972
>
7073
</a>
7174
</div>
7275
</div>
7376
<p class="text-center opacity-75">
7477
<a href="https://www.netlify.com" rel="noopener noreferrer">
75-
<img src="/netlify.svg" alt="Deploys by Netlify" width="114" height="151">
78+
<img src="/netlify.svg" alt="Deploys by Netlify" width="114" height="151" decoding="async">
7679
</a>
7780
</p>
7881
</div>

packages/ui/client/styles/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ html,
22
body {
33
height: 100%;
44
font-family: 'Readex Pro', sans-serif;
5+
scroll-behavior: smooth;
56
}
67

78
:root {

0 commit comments

Comments
 (0)