diff --git a/README.md b/README.md
index c3508f8..7c5810a 100644
--- a/README.md
+++ b/README.md
@@ -191,9 +191,7 @@ Static files served directly to the browser are within the `public` directory at
```md
public/
-├── apple-touch-icon.png
├── favicon.ico
-├── icon.svg
├── scripts/
│ └── vendor/
│ ├── gsap/ # Animations powered by GSAP (GreenSock Animation Platform)
diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png
deleted file mode 100644
index 709d945..0000000
Binary files a/public/apple-touch-icon.png and /dev/null differ
diff --git a/src/components/Meta.astro b/src/components/Meta.astro
index 0a905ef..b3bd33e 100644
--- a/src/components/Meta.astro
+++ b/src/components/Meta.astro
@@ -1,4 +1,8 @@
---
+import { getImage } from "astro:assets";
+import faviconSvgSrc from "@/images/icon.svg";
+import faviconSrc from "@/images/icon.png";
+
// Default properties for the Meta component. These values are used if props are not provided.
// 'title' sets the default page title for the website.
// 'meta' sets a default description meta tag to describe the page content.
@@ -35,6 +39,20 @@ const ogDescription: string =
"Equip your projects with ScrewFast's top-quality hardware tools and expert construction services. Trusted by industry leaders, ScrewFast offers simplicity, affordability, and reliability. Experience the difference with user-centric design and cutting-edge tools. Start exploring now!"; // Set the Open Graph description
const URL: string = `${Astro.site}`; // Set the website URL in astro.config.mjs
const socialImage: string = `${Astro.site}/social.png`; // Set the path for the social media image
+
+// Generate and optimize the favicon images
+const faviconSvg = await getImage({
+ src: faviconSvgSrc,
+ format: 'svg',
+});
+
+const appleTouchIcon = await getImage({
+ src: faviconSrc,
+ width: 180,
+ height: 180,
+ format: 'png',
+});
+
---
-
+
-
-
+
+
diff --git a/public/icon.svg b/src/images/icon.svg
similarity index 100%
rename from public/icon.svg
rename to src/images/icon.svg