Skip to content

Commit 695027b

Browse files
committed
improve lighthouse scores
1 parent b1168b4 commit 695027b

File tree

15 files changed

+15
-9
lines changed

15 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
4646

4747
- Made the site a Progressive Web App (PWA)
4848
- About page content (first section)
49+
- robots.txt and canonical link
4950

5051
### Fixed
5152

@@ -57,3 +58,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
5758
- components folder structure
5859
- relative to absolute imports with aliases
5960
- updated to React 18 and Next.js latest
61+
- changed image formats to .webp

components/layout/Meta.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default function Meta() {
5353
href='https://fonts.googleapis.com/css2?family=Assistant:wght@400;700&family=Open+Sans:wght@700&display=swap'
5454
rel='stylesheet'
5555
/>
56+
<link rel='canonical' href='https://www.webdevpath.co' />
5657
</Head>
5758
);
5859
}

pages/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export default function Home() {
1212
<RevealContentContainer>
1313
<TwoColumn
1414
title="Let's grow together."
15-
image='/images/join-us.jpg'
15+
image='/images/join-us.webp'
16+
altTag='Join us'
1617
content='The Web Dev Path is a team of professional developers project that aims to provide a comprehensive path for people who seek to begin their web development journey.'
1718
link='/about'
1819
customBtnClass='inverted-grey'
@@ -34,9 +35,9 @@ export default function Home() {
3435
<CardsColumns
3536
titles={['Join us', 'Volunteer', 'Become a mentor']}
3637
images={[
37-
'/images/join-us.jpg',
38-
'/images/volunteer.jpg',
39-
'/images/mentor.jpg',
38+
'/images/join-us.webp',
39+
'/images/volunteer.webp',
40+
'/images/mentor.webp',
4041
]}
4142
altTags={['Join us', 'Volunteer', 'Become a mentor']}
4243
content={[

public/images/about-us-bg.png

-402 KB
Binary file not shown.

public/images/about-us-bg.webp

31.8 KB
Binary file not shown.

public/images/home-bg.png

-403 KB
Binary file not shown.

public/images/home-bg.webp

29 KB
Binary file not shown.

public/images/join-us.jpg

-29.3 KB
Binary file not shown.

public/images/join-us.webp

17.6 KB
Binary file not shown.

public/images/mentor.jpg

-26.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)