diff --git a/src/components/ui/avatars/AvatarBlog.astro b/src/components/ui/avatars/AvatarBlog.astro deleted file mode 100644 index d104064..0000000 --- a/src/components/ui/avatars/AvatarBlog.astro +++ /dev/null @@ -1,22 +0,0 @@ ---- -// Import necessary components -import { Image } from "astro:assets"; - -import type { CollectionEntry } from "astro:content"; - -const { blogEntry } = Astro.props; - -interface Props { - blogEntry: CollectionEntry<"blog">; -} ---- - -
- {blogEntry.data.authorImageAlt} -
diff --git a/src/components/ui/avatars/AvatarBlogLarge.astro b/src/components/ui/avatars/AvatarBlogLarge.astro deleted file mode 100644 index 7b94664..0000000 --- a/src/components/ui/avatars/AvatarBlogLarge.astro +++ /dev/null @@ -1,22 +0,0 @@ ---- -// Import necessary components -import { Image } from "astro:assets"; - -import type { CollectionEntry } from "astro:content"; - -const { blogEntry } = Astro.props; - -interface Props { - blogEntry: CollectionEntry<"blog">; -} ---- - -
- {blogEntry.data.authorImageAlt} -
diff --git a/src/components/ui/cards/CardBlog.astro b/src/components/ui/cards/CardBlog.astro deleted file mode 100644 index 8f3ba76..0000000 --- a/src/components/ui/cards/CardBlog.astro +++ /dev/null @@ -1,70 +0,0 @@ ---- -// Import necessary components and utilities -import AvatarBlog from "@components/ui/avatars/AvatarBlog.astro"; -import { Image } from "astro:assets"; -import { formatDate } from "@utils/utils"; -import type { CollectionEntry } from "astro:content"; - -const { blogEntry, blogLocale = "" } = Astro.props; - -interface Props { - blogEntry: CollectionEntry<"blog">; - blogLocale?: string; -} ---- - - - - -
- {blogEntry.data.cardImageAlt} -
- -
-
-
- - -
-

- {blogEntry.data.author} -

-

- {formatDate(blogEntry.data.pubDate)} -

-
-
-
-
- -
-
-

- {blogEntry.data.title} -

-

- {blogEntry.data.description} -

-
-
-
diff --git a/src/components/ui/cards/CardBlogRecent.astro b/src/components/ui/cards/CardBlogRecent.astro deleted file mode 100644 index fbc430d..0000000 --- a/src/components/ui/cards/CardBlogRecent.astro +++ /dev/null @@ -1,66 +0,0 @@ ---- -// Import all required components and utilities -import { Image } from "astro:assets"; -import type { CollectionEntry } from "astro:content"; -import AvatarBlogLarge from "@components/ui/avatars/AvatarBlogLarge.astro"; -import PrimaryCTA from "@components/ui/buttons/PrimaryCTA.astro"; - -const { blogEntry, recentBlogLocale = "" } = Astro.props; - -interface Props { - blogEntry: CollectionEntry<"blog">; - recentBlogLocale?: string; -} ---- - - -
- -
-
- {blogEntry.data.cardImageAlt} -
-
- -
- -

- - {blogEntry.data.description} - -

- -
- - -
-

- {blogEntry.data.author} -

-

- {blogEntry.data.role} -

-
-
- -
- -
-
-
diff --git a/src/components/ui/cards/CardRelated.astro b/src/components/ui/cards/CardRelated.astro deleted file mode 100644 index 118bc92..0000000 --- a/src/components/ui/cards/CardRelated.astro +++ /dev/null @@ -1,41 +0,0 @@ ---- -// Import necessary modules and utilities -import { Image } from "astro:assets"; -import { formatDate } from "@utils/utils"; -import type { CollectionEntry } from "astro:content"; - -const { blogEntry, recentBlogLocale = "" } = Astro.props; - -interface Props { - blogEntry: CollectionEntry<"blog">; - recentBlogLocale?: string; -} ---- - - -
- {blogEntry.data.cardImageAlt} - -

- {blogEntry.data.title} -

- -

- {formatDate(blogEntry.data.pubDate)} -

-
diff --git a/src/pages/index.astro b/src/pages/index.astro index c82ca47..92aa06b 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -27,9 +27,6 @@ const avatarSrcs: Array = [ "https://images.unsplash.com/photo-1492562080023-ab3db95bfbce?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=facearea&facepad=2&w=300&h=300&q=80", ]; -const posts = await getCollection("blog"); - -console.log("posts", posts) ---