Skip to content

Commit e71dfd8

Browse files
committed
chore: make images webp
1 parent 01cbdc7 commit e71dfd8

File tree

10 files changed

+5
-6
lines changed

10 files changed

+5
-6
lines changed

public/clouds/purple.webp

75.3 KB
Loading

public/clouds/sunrise.webp

59.4 KB
Loading

public/clouds/sunset.webp

54 KB
Loading

public/purple.jpg

-91.1 KB
Binary file not shown.

public/sunrise.jpg

-40.9 KB
Binary file not shown.

public/sunset.jpg

-71.3 KB
Binary file not shown.

src/app/about/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Image from "next/image";
44
import Header from "@/components/header"
55
import Footer from "@/components/footer";
66

7-
import HeroImage from '@/../public/purple.jpg'
7+
import HeroImage from '@/../public/clouds/purple.webp'
88

99

1010
export default function page() {
@@ -14,7 +14,7 @@ export default function page() {
1414
<div className="xl:w-[1200px] lg:w-[1000px] md:w-[768px] w-full px-4 flex gap-4 flex-col py-2">
1515
<Header />
1616

17-
<Image src={HeroImage} className="h-[200px] w-full object-cover" alt="picture of sunset" priority />
17+
<Image src={HeroImage} className="h-[200px] w-full object-cover" alt="picture of sunset" priority/>
1818

1919

2020

src/app/blog/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Image from "next/image";
44
import Header from "@/components/header"
55
import Footer from "@/components/footer";
66

7-
import HeroImage from '@/../public/sunset.jpg'
7+
import HeroImage from '@/../public/clouds/sunset.webp'
88

99
import { posts } from "@/app/blog/posts"
1010

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ProjectList } from "@/components/project-list";
55
import Header from "../components/header"
66
import Footer from "@/components/footer";
77

8-
import HeroImage from '@/../public/sunrise.jpg'
8+
import HeroImage from '@/../public/clouds/sunrise.webp'
99
import Image from "next/image";
1010

1111
export default function Home() {

src/components/footer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ const Footer = () => {
44
return (
55
<footer className="flex flex-col items-center justify-center">
66

7-
{/* show links if sidebar is hidden because we are on mobile */}
8-
<div className="sm:hidden flex flex-wrap justify-center items-center">
7+
<div className="flex flex-wrap justify-center items-center">
98

109
<Link href="https://www.linkedin.com/in/andersontseng/" className="p-2 text-gray-500 dark:hover:text-gray-200 hover:text-gray-900">Linkedin</Link>
1110

0 commit comments

Comments
 (0)