diff --git a/public/banner.webp b/public/banner.webp
deleted file mode 100644
index 91699e9..0000000
Binary files a/public/banner.webp and /dev/null differ
diff --git a/public/favicon.svg b/public/favicon.svg
deleted file mode 100644
index f157bd1..0000000
--- a/public/favicon.svg
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/public/banner-alt.webp b/src/assets/banner-alt.webp
similarity index 100%
rename from public/banner-alt.webp
rename to src/assets/banner-alt.webp
diff --git a/public/leg.jpg b/src/assets/leg.jpg
similarity index 100%
rename from public/leg.jpg
rename to src/assets/leg.jpg
diff --git a/public/leg.webp b/src/assets/leg.webp
similarity index 100%
rename from public/leg.webp
rename to src/assets/leg.webp
diff --git a/src/components/Certificate.astro b/src/components/Certificate.astro
index bad2db0..93618e9 100644
--- a/src/components/Certificate.astro
+++ b/src/components/Certificate.astro
@@ -10,15 +10,15 @@ const { certificate } = Astro.props;
By: {certificate.data.provider}
{certificate.data.skills && (
-
- {certificate.data.skills.map(skill => (
- - {skill}
- ))}
-
+
+ {certificate.data.skills.map((skill: string) => (
+ - {skill}
+ ))}
+
)}
{certificate.data.link && (
- View
+ View
)}
diff --git a/src/components/Music.astro b/src/components/Music.astro
index 2c1794a..340ca22 100644
--- a/src/components/Music.astro
+++ b/src/components/Music.astro
@@ -1,7 +1,7 @@
---
import { Image } from "astro:assets";
-import leg from "../../public/leg.webp";
+import leg from "../assets/leg.webp";
---
diff --git a/src/content/posts/code-examples.md b/src/content/posts/code-examples.md
index 3681943..261b723 100644
--- a/src/content/posts/code-examples.md
+++ b/src/content/posts/code-examples.md
@@ -1,12 +1,12 @@
---
-title: Code Examples
-description: Aurghhhhhh
+title: "Code Examples"
+description: "Aurghhhhhh"
pubDate: 2022-07-08
image:
- url: https://docs.astro.build/assets/arc.webp
- alt: Tennis balls
+ url: "https://docs.astro.build/assets/arc.webp"
+ alt: "Tennis balls"
tags:
- - Gaybo
+ - "Gaybo"
---
Penitc
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index be70c1b..1a2574c 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -1,15 +1,22 @@
---
-import "../styles/styles.scss";
+import { Picture, getImage } from 'astro:assets';
-import { Image } from "astro:assets";
+import "../styles/styles.scss";
interface Props {
title: string;
- src?: string,
+ image: string,
alt: string,
}
-const { title, src, alt } = Astro.props;
+const { title, image, alt } = Astro.props;
+
+let imageData = await getImage({
+ src: image,
+ format: "jpeg",
+ width: 1080,
+ height: 700,
+});
---
@@ -20,7 +27,7 @@ const { title, src, alt } = Astro.props;
-
+
@@ -29,19 +36,26 @@ const { title, src, alt } = Astro.props;
+