Skip to content

Commit 15221d3

Browse files
committed
fix: perf upgrades
1 parent 75904e2 commit 15221d3

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

components/PizziHeader.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,25 @@
77
<NuxtLink
88
to="/"
99
class="pizzi-smol"
10+
aria-label="Go to homepage"
1011
>
11-
<img
12+
<NuxtImg
1213
src="/img/pizziboi.png"
1314
alt="Alessandro Pizzigolotto"
14-
> AP
15+
/> AP
1516
</NuxtLink>
1617
</div>
1718
<div class="row">
1819
<nav>
1920
<NuxtLink
2021
:class="{ active: $route.path === '/' }"
2122
to="/"
23+
aria-label="Go to homepage desktop"
2224
>home</NuxtLink>
2325
<NuxtLink
2426
:class="{ active: $route.path === '/research' }"
2527
to="/research"
28+
aria-label="Research page"
2629
>research</NuxtLink>
2730
<a
2831
href="/files/Pizzigolotto_CV.pdf"
@@ -31,11 +34,13 @@
3134
<NuxtLink
3235
:class="{ active: $route.path === '/teaching' }"
3336
to="/teaching"
37+
aria-label="Teaching page"
3438
>teaching</NuxtLink>
3539
</nav>
3640
<a
3741
href="mailto:[email protected]"
3842
class="mail-link"
43+
aria-label="Write me an email"
3944
4045
</div>
4146
</div>

nuxt.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export default defineNuxtConfig({
1212
devtools: { enabled: true },
1313
app: {
1414
head: {
15+
htmlAttrs: {
16+
lang: 'en',
17+
},
1518
titleTemplate: 'Alessandro Pizzigolotto: %s',
1619
meta: [
1720
{ charset: 'utf-8' },
@@ -61,4 +64,13 @@ export default defineNuxtConfig({
6164
gtag: {
6265
id: 'G-8KX8483ME2',
6366
},
67+
image: {
68+
provider: 'ipx',
69+
format: ['avif', 'webp'],
70+
ipx: {
71+
modifiers: {
72+
format: 'webp',
73+
},
74+
},
75+
},
6476
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"build": "nuxt build",
6+
"build": "NITRO_PRESET=github_pages nuxt build",
77
"dev": "nuxt dev",
88
"generate": "nuxt generate",
99
"preview": "nuxt preview",

pages/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
src="/img/pizziboi.png"
3030
sizes="sm:23vw md:28vw lg:28vw xl:28vw"
3131
alt="pizziboi status symbol"
32+
preload
33+
placeholder
34+
:modifiers="{ format: 'webp' }"
3235
/>
3336
</div>
3437
</div>

0 commit comments

Comments
 (0)