Skip to content

Commit

Permalink
Feat(UI): Change Image Format
Browse files Browse the repository at this point in the history
Update:
Change png to avif format
  • Loading branch information
Ikram-Maulana committed Apr 25, 2023
1 parent 8fc5442 commit 373abae
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 5 deletions.
Binary file added public/images/avatar.avif
Binary file not shown.
Binary file removed public/images/avatar.png
Binary file not shown.
Binary file added public/images/contact-text.avif
Binary file not shown.
Binary file removed public/images/contact-text.png
Binary file not shown.
Binary file added public/images/fan.avif
Binary file not shown.
Binary file removed public/images/fan.png
Binary file not shown.
Binary file added public/images/hero.avif
Binary file not shown.
Binary file removed public/images/hero.png
Binary file not shown.
Binary file added public/images/star.avif
Binary file not shown.
Binary file removed public/images/star.png
Binary file not shown.
6 changes: 3 additions & 3 deletions src/app/(portfolio)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ export default async function Home() {
className="absolute right-0 z-10 w-1/4 lg:w-1/3 -top-8 md:-top-14 lg:-top-16 h-1/3"
>
<Image
src="/images/star.png"
src="/images/star.avif"
width={500}
height={500}
alt="Star Decoration"
/>
</div>
<Image
src="/images/hero.png"
src="/images/hero.avif"
width={500}
height={500}
alt="Ikram Maulana"
Expand All @@ -69,7 +69,7 @@ export default async function Home() {
className="absolute left-0 z-10 w-1/4 lg:-left-6 lg:w-1/3 -bottom-12 md:-bottom-14 lg:-bottom-12 h-1/3"
>
<Image
src="/images/fan.png"
src="/images/fan.avif"
width={500}
height={500}
alt="Fan Decoration"
Expand Down
2 changes: 1 addition & 1 deletion src/components/contact-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function ContactSection() {
}}
>
<Image
src="/images/contact-text.png"
src="/images/contact-text.avif"
width={120}
height={120}
alt="Contact Me"
Expand Down
2 changes: 1 addition & 1 deletion src/components/main-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function MainNav({ items, children }: MainNavProps) {
className="block py-6 text-xl font-bold text-tprimary"
>
<Image
src="/images/avatar.png"
src="/images/avatar.avif"
width={40}
height={40}
alt="Logo"
Expand Down

0 comments on commit 373abae

Please sign in to comment.