Skip to content

Blogpost banner#977

Open
PabloCastellano wants to merge 2 commits intomainfrom
blogpost-banner
Open

Blogpost banner#977
PabloCastellano wants to merge 2 commits intomainfrom
blogpost-banner

Conversation

@PabloCastellano
Copy link
Copy Markdown
Member

Checklist

  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Adds a configurable announcement banner to the web app, rendered at the top of the page above the navigation bar. The banner is fully controlled via environment variables — no code changes are needed to enable, update, or disable it.

Three new env vars:

  • PUBLIC_BANNER_TEXT — the banner message; banner is hidden when unset/empty
  • PUBLIC_BANNER_LINK_TEXT — optional CTA button label (defaults to "Read more")
  • PUBLIC_BANNER_LINK_URL — optional link URL; button only renders when set

Motivation and Context (Optional)

We need a way to announce new blog posts (and other announcements) to users visiting the explorer. This implementation makes the banner a permanent, reusable component based on previous banner that can be toggled on/off purely through environment variables.

Related Issue (Optional)

Screenshots (if appropriate):

Adds a configurable announcement banner to the web app, rendered at the top of the page above the navigation bar.
The banner is fully controlled via environment variables — no code changes are needed to enable, update, or disable it.

Three new env vars:

PUBLIC_BANNER_TEXT — the banner message; banner is hidden when unset/empty
PUBLIC_BANNER_LINK_TEXT — optional CTA button label (defaults to "Read more")
PUBLIC_BANNER_LINK_URL — optional link URL; button only renders when set
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 6, 2026

🦋 Changeset detected

Latest commit: 85287f4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@blobscan/web Minor
@blobscan/docs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

📦 Next.js Bundle Analysis for @blobscan/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 286.7 KB (🟡 +1.48 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

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.

1 participant