Skip to content

Add a release line above the fold on the landing page - #298

Merged
alcuadrado merged 1 commit into
mainfrom
landing-release-line
Sep 9, 2026
Merged

alcuadrado merged 1 commit into
mainfrom
landing-release-line

Conversation

@fzeoli

@fzeoli fzeoli commented Sep 9, 2026

Copy link
Copy Markdown
Member

Summary

Shows the latest Hardhat 3 release right under the hero CTA on the landing page, matching the Figma design:

  • A "Hardhat vX.Y.Z" link to the GitHub release, plus a one-line "Released : ".
  • Data comes from the existing githubReleases collection (only fetched on Vercel or with FORCE_GITHUB_RELEASES=1), so nothing renders when the collection is empty.
  • The release body is markdown; only the first paragraph is shown, stripped to plain text and truncated with an ellipsis.
  • On mobile the line sits below the mascots; on tablet and up it sits directly under the button. Section padding was adjusted so the hero graphic stays inside the section.
  • Removes the "Ready to use out of the box" block from the hero and its unused styles.

Test plan

  • prettier --check and astro check pass
  • Verified in light and dark themes at 500, 768, 1440 and 1920 px widths with FORCE_GITHUB_RELEASES=1 pnpm dev
  • Check the Vercel preview, where releases are fetched for real

🤖 Generated with Claude Code

Show the latest Hardhat 3 release (version link plus a one-line summary)
right under the hero CTA, matching the Figma design. The release body is
markdown, so only its first paragraph is shown, stripped to plain text
and truncated with an ellipsis.

Also removes the "Ready to use out of the box" block from the hero and
its now-unused styles.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 9, 2026 15:30
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hardhat-website Ready Ready Preview Sep 9, 2026 3:30pm UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The hero currently assumes release ordering and may render a non-latest release and/or a label that doesn’t match the stated “Hardhat vX.Y.Z” format, plus the new mobile text size is likely too small for accessibility.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a “latest Hardhat 3 release” line into the landing page hero area (right under the primary CTA), sourced from the existing githubReleases content collection and styled to match the intended responsive layout.

Changes:

  • Render the latest GitHub release (version link + “Released …: …” summary) in HeroBlock.astro when releases are available.
  • Add markdown-to-plain-text summarization for the first paragraph of the release body and truncate it via CSS.
  • Adjust hero section spacing/styling and remove the previous “Ready to use out of the box” block/styles.
File summaries
File Description
src/components/landing/HeroBlock.astro Adds latest-release UI to the hero and updates hero spacing/styles to accommodate the new above-the-fold line.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +15 to +16
const githubReleases = await getCollection("githubReleases");
const latestRelease = githubReleases[0];
rel="noopener noreferrer"
class="release-version"
>
{latestRelease.data.name}
Comment on lines +303 to +311
.release-description
margin: 0
max-width: 100%
font-weight: 400
font-size: 9px
line-height: 1.4
white-space: nowrap
overflow: hidden
text-overflow: ellipsis
@alcuadrado
alcuadrado added this pull request to stack #300 September 9, 2026 16:02
@alcuadrado
alcuadrado added this pull request to the merge queue Sep 9, 2026
Merged via the queue into main with commit d39b848 Sep 9, 2026
4 checks passed
@alcuadrado
alcuadrado deleted the landing-release-line branch September 9, 2026 18:39

This branch was successfully deployed

1 active deployment
Preview — 03766318 Deployed Sep 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants