Skip to content

Commit

Permalink
Merge pull request #5 from aulianza/feat/enhance-image
Browse files Browse the repository at this point in the history
perf: improve image performance
  • Loading branch information
aulianza authored Aug 31, 2023
2 parents 653aa3c + 06e33dc commit e3e463b
Show file tree
Hide file tree
Showing 23 changed files with 16 additions and 16 deletions.
Binary file removed public/images/aulianza.png
Binary file not shown.
Binary file added public/images/aulianza.webp
Binary file not shown.
Binary file removed public/images/ic-appdev.png
Binary file not shown.
Binary file added public/images/ic-appdev.webp
Binary file not shown.
Binary file removed public/images/ic-itcons.png
Binary file not shown.
Binary file added public/images/ic-itcons.webp
Binary file not shown.
Binary file removed public/images/ic-webdev.png
Binary file not shown.
Binary file added public/images/ic-webdev.webp
Binary file not shown.
Binary file removed public/images/paypal.png
Binary file not shown.
Binary file added public/images/paypal.webp
Binary file not shown.
Binary file removed public/images/qris-aulianza.png
Binary file not shown.
Binary file added public/images/qris-aulianza.webp
Binary file not shown.
Binary file removed public/images/qris-logo.png
Binary file not shown.
Binary file added public/images/qris-logo.webp
Binary file not shown.
Binary file removed public/images/qris-long.png
Binary file not shown.
Binary file added public/images/qris-long.webp
Binary file not shown.
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const sora = Sora({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "Ryan Aulia - Aulianza Landing Page",
description: "My Personal Landing Page",
icons: "/images/aulianza.png",
icons: "/images/aulianza.webp",
// openGraph: {
// images: "/images/aulianza.png",
// images: "/images/aulianza.webp",
// url: "https://aulianza.com",
// siteName: "Ryan Aulia - Aulianza Landing Page",
// type: "website",
Expand Down
6 changes: 3 additions & 3 deletions src/common/components/Qris.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import Image from "./Image";
const Qris = ({ onBack }: { onBack: () => void }) => {
const downloadQrisImage = () => {
const link = document.createElement("a");
link.href = "/images/qris-aulianza.png";
link.download = "qris-aulianza.png";
link.href = "/images/qris-aulianza.webp";
link.download = "qris-aulianza.webp";
link.click();
};

return (
<>
<Image src="/images/qris-long.png" alt="QRIS" width={300} height={50} />
<Image src="/images/qris-long.webp" alt="QRIS" width={300} height={50} />
<Image src="/images/qris.svg" alt="QRIS" width={500} height={500} />
<div className="flex w-full px-3 gap-3">
<button
Expand Down
6 changes: 3 additions & 3 deletions src/common/constant/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ export const SERVICES: ServicesProps[] = [
title: "Innovative Web Solutions",
description:
"Transforming your ideas into captivating websites using powerful technologies.",
icon: "/images/ic-webdev.png",
icon: "/images/ic-webdev.webp",
},
{
title: "Mobile App Redefined",
description:
"Crafting immersive mobile apps that come to life with the magic of React Native.",
icon: "/images/ic-appdev.png",
icon: "/images/ic-appdev.webp",
},
{
title: "Strategic IT Partnership",
description:
"Expert advice guiding your business towards tech-driven success.",
icon: "/images/ic-itcons.png",
icon: "/images/ic-itcons.webp",
},
];
6 changes: 3 additions & 3 deletions src/modules/homepage/components/BuyACoffee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ const BuyACoffee: React.FC = () => {
onClick={handleShowQris}
>
<Image
src="/images/qris-logo.png"
src="/images/qris-logo.webp"
alt="QRIS"
width={70}
height={50}
/>
</button>
<PaymentMethodButton
href="https://www.paypal.com/paypalme/aulianza01"
imageSrc="/images/paypal.png"
imageSrc="/images/paypal.webp"
altText="PayPal"
/>
<PaymentMethodButton
href="https://wise.com/share/ryana1181"
imageSrc="/images/wise.png"
imageSrc="/images/wise.webp"
altText="Wise"
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/modules/homepage/components/Contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const Contact = () => {
return (
<div className="space-y-4">
<div className="flex items-center gap-2 px-3">
<ContactIcon size={26} />
<h2 className="font-medium text-xl">Get in Touch</h2>
<ContactIcon size={24} />
<h2 className="font-medium text-lg md:text-xl">Get in Touch</h2>
</div>
<div
className="bg-[#94d7c5] text-neutral-900 border p-8 rounded-2xl cursor-pointer space-y-5 bg-no-repeat bg-right"
Expand Down
2 changes: 1 addition & 1 deletion src/modules/homepage/components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Hero = () => {
data-aos-duration="1000"
>
<Image
src="/images/aulianza.png"
src="/images/aulianza.webp"
alt="Ryan Aulia"
width={100}
height={100}
Expand Down
4 changes: 2 additions & 2 deletions src/modules/homepage/components/Services.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const Services = () => {
return (
<div className="space-y-5">
<div className="flex items-center gap-2 px-3">
<ServiceIcon size={26} />
<h2 className="font-medium text-xl">Services</h2>
<ServiceIcon size={24} />
<h2 className="font-medium text-lg md:text-xl">Services</h2>
</div>
<div className="space-y-3" data-aos="fade-up" data-aos-duration="1000">
{servicesData.map((service, index) => (
Expand Down

0 comments on commit e3e463b

Please sign in to comment.