diff --git a/public/images/authors/chad.webp b/public/images/authors/chad.webp new file mode 100644 index 00000000..0753e09a Binary files /dev/null and b/public/images/authors/chad.webp differ diff --git a/public/images/authors/cramer.webp b/public/images/authors/cramer.webp new file mode 100644 index 00000000..f6f4b242 Binary files /dev/null and b/public/images/authors/cramer.webp differ diff --git a/public/images/authors/vlad.webp b/public/images/authors/vlad.webp new file mode 100644 index 00000000..88d47f4e Binary files /dev/null and b/public/images/authors/vlad.webp differ diff --git a/src/components/ArticleList.astro b/src/components/ArticleList.astro new file mode 100644 index 00000000..13339c1e --- /dev/null +++ b/src/components/ArticleList.astro @@ -0,0 +1,71 @@ +--- +// © 2024 Vlad-Stefan Harbuz +// SPDX-License-Identifier: Apache-2.0 + +import { getCollection } from 'astro:content'; +import dayjs from 'dayjs'; + +const articles = (await getCollection('articles')) + .sort((a, b) => +b.data.publishDate - +a.data.publishDate); +--- + +
+ {articles.map((article) =>
+
+ +

{article.data.title}

+
+
+
+ {article.data.authorImageSrc && + + } +
+ {article.data.author} + +
+
+
+
)} +
+ + diff --git a/src/components/Button.astro b/src/components/Button.astro index 2c81516a..9387c233 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -13,25 +13,3 @@ const { href } = Astro.props; - - diff --git a/src/components/Endorsement.astro b/src/components/Endorsement.astro index deb276d6..d1903389 100644 --- a/src/components/Endorsement.astro +++ b/src/components/Endorsement.astro @@ -34,18 +34,6 @@ const { name, title, handle, imageUrl, sourceUrl, hidden } = Astro.props; .endorsement { position: relative; margin: 0; - padding-top: 1rem; - &:before { - content: '“'; - position: absolute; - top: -0.5rem; - left: 0; - font-size: 5rem; - line-height: 1; - font-style: italic; - color: var(--color-primary); - pointer-events: none; - } hr { margin: 1.5rem auto; max-width: 10rem; diff --git a/src/components/LeaderboardMember.astro b/src/components/LeaderboardMember.astro index 2f41d426..459d339b 100644 --- a/src/components/LeaderboardMember.astro +++ b/src/components/LeaderboardMember.astro @@ -9,7 +9,7 @@ interface Props { const { member } = Astro.props; import { getDollarsPerDev, fmtCurrency } from '../memberFormatting.ts'; -import type { MemberWithId } from "../content/config.ts"; +import type { MemberWithId } from "../schemas/members.ts"; --- diff --git a/src/components/PressItem.astro b/src/components/PressItem.astro index eb91eeb8..e1a6ce7c 100644 --- a/src/components/PressItem.astro +++ b/src/components/PressItem.astro @@ -15,7 +15,9 @@ const { name, title, date, imageUrl, sourceUrl, hidden } = Astro.props; ---