diff --git a/.nvmrc b/.nvmrc index dc5f6a52..9d673278 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22.6.0 +22.8.0 diff --git a/package.json b/package.json index 31eeedf1..986f306a 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "@fontsource/baskervville": "^5.0.21", "@hookform/resolvers": "^3.9.0", "@million/lint": "1.0.0-rc.84", - "algoliasearch": "^5.2.4", + "algoliasearch": "^5.2.5", "astro": "^4.15.2", "clsx": "^2.1.1", "contentful": "^10.15.0", @@ -90,7 +90,7 @@ "@testing-library/react-hooks": "^8.0.1", "@types/add": "^2.0.3", "@types/markdown-it": "^14.1.2", - "@types/node": "^22.5.2", + "@types/node": "^22.5.3", "@types/react": "^18.3.5", "@types/react-dom": "^18.3.0", "@types/three": "^0.168.0", diff --git a/src/pages/articles/_article.css b/src/pages/articles/_article.css index bf40d2be..cb45219a 100644 --- a/src/pages/articles/_article.css +++ b/src/pages/articles/_article.css @@ -1,9 +1,14 @@ +.article__featured__image{ + max-height: 50vh; + object-fit: cover; +} + .article__wrapper { display: grid; gap: 0 1rem; grid: '. Main-Content .' / 1fr min(var(--grid-article), 100%) 1fr; line-height: var(--base-line-height); - margin: 2rem 0; + margin: 4rem 0; @supports (initial-letter: 3 2) { & > p:first-of-type::first-letter { diff --git a/src/pages/articles/index.astro b/src/pages/articles/index.astro index 36cda438..608b93f1 100644 --- a/src/pages/articles/index.astro +++ b/src/pages/articles/index.astro @@ -9,14 +9,19 @@ import "./_articles.css"; const articles = await getCollection("articles"); const featuredArticle = getFeaturedArticle(articles); + +const metadata = { + title: "Articles", + description: "Articles I wrote while drinking coffee", + ...(featuredArticle?.data.featuredImage && { image: featuredArticle.data.featuredImage.url }), +}; --- - +

The Blog

{ - featuredArticle && - + featuredArticle && }
    diff --git a/src/ui/modules/about/components/aboutIntro/AboutIntro.astro b/src/ui/modules/about/components/aboutIntro/AboutIntro.astro index 94182ccf..0a9101f9 100644 --- a/src/ui/modules/about/components/aboutIntro/AboutIntro.astro +++ b/src/ui/modules/about/components/aboutIntro/AboutIntro.astro @@ -19,7 +19,9 @@ import "./about-intro.css"; Quid de Platone aut de Democrito loquar? Summus dolor plures dies manere non potest? Si enim ita est, vide ne facinus facias, cum mori.

    - + + See my work +
    diff --git a/src/ui/modules/article/components/articleDetails/ArticleDetails.astro b/src/ui/modules/article/components/articleDetails/ArticleDetails.astro index 41b7f1ba..87b9eb06 100644 --- a/src/ui/modules/article/components/articleDetails/ArticleDetails.astro +++ b/src/ui/modules/article/components/articleDetails/ArticleDetails.astro @@ -9,20 +9,21 @@ interface ArticleDetailsProps { const { article } = Astro.props as ArticleDetailsProps; --- -
    -

    + +
    +

    {article.data.title}

    - -