Skip to content

A local-first multi-agent app development platform, built on PenguinHarness

feat(landing): the announcement bar features DeepSeek V4.1 Flash with Gemini 3.8 Flash, and Penguin Go (#747)

Yaowei Zhenga4461c18c294
diff --git a/changelog/unreleased/2026-09-16-landing-announcements.md b/changelog/unreleased/2026-09-16-landing-announcements.md
new file mode 100644
index 00000000..7f9bd7e6
--- /dev/null
+++ b/changelog/unreleased/2026-09-16-landing-announcements.md
@@ -0,0 +1,17 @@
+# The landing announcement bar features the new Flash models and Penguin Go
+
+- **Date:** 2026-09-16
+- **Type:** feature
+- **Scope:** `landing`
+- **PR:** [#747](https://github.com/Prism-Shadow/penguin-harness/pull/747)
+
+[中文版](2026-09-16-landing-announcements.zh.md)
+
+The rotating announcement bar above the landing site's navigation dropped the announcement of GLM-5.3 Flash and Qwen 3.8 Flash and the one for the AMD Developer Program's Fireworks API credits. Two new announcements took their place, in both languages.
+
+## Details
+
+- The first slide reads "DeepSeek V4.1 Flash and Gemini 3.8 Flash are now live in PenguinHarness" and links to the 0.2.11 release post, `/blog/penguinharness-0-2-11`, which covers both models. It kept the `flashModels` dictionary key.
+- The second reads "Penguin Go official Token packs are live: 50% off every Gemini model" and links to the Penguin Go site, `https://token.penguin.ooo/`. Its `penguinGo` key replaced `fireworks` in `strings.ts` and `strings-en.ts`.
+- Announcements can link off-site. Their list moved out of `announcement-bar.tsx` into `src/lib/announcements.ts`, and each item carries exactly one of `to`, a blog route followed through the router, or `href`, an `https://` URL rendered as a plain anchor that opens in a new tab (`target="_blank"`, `rel="noopener noreferrer"`) with the blog links' styling, arrow, and focus and `tabIndex` handling. The item type rejects an item with both or neither.
+- A landing test, `test/announcements.test.ts`, looks up the post behind each blog link on the bar with `getPost`, in `en` and in `zh`, and fails when either lookup finds no post or falls back to the other language.
diff --git a/changelog/unreleased/2026-09-16-landing-announcements.zh.md b/changelog/unreleased/2026-09-16-landing-announcements.zh.md
new file mode 100644
index 00000000..9bc8e672
--- /dev/null
+++ b/changelog/unreleased/2026-09-16-landing-announcements.zh.md
@@ -0,0 +1,17 @@
+# 落地页公告栏换上新的 Flash 模型与 Penguin Go
+
+- **Date:** 2026-09-16
+- **Type:** feature
+- **Scope:** `landing`
+- **PR:** [#747](https://github.com/Prism-Shadow/penguin-harness/pull/747)
+
+[English](2026-09-16-landing-announcements.md)
+
+落地页导航栏上方的轮播公告栏撤下了 GLM-5.3 Flash 与 Qwen 3.8 Flash 的公告,以及 AMD 开发者计划 Fireworks API 额度的公告,换上两条新公告,中英双语。
+
+## 细节
+
+- 第一条为「DeepSeek V4.1 Flash 与 Gemini 3.8 Flash 现已在 PenguinHarness 上线」,链接到同时介绍这两款模型的 0.2.11 发布博文 `/blog/penguinharness-0-2-11`,沿用字典键 `flashModels`。
+- 第二条为「Penguin Go 官方 Token 包上线,Gemini 全系列模型 5 折」,链接到 Penguin Go 站点 `https://token.penguin.ooo/`;其字典键 `penguinGo` 在 `strings.ts` 与 `strings-en.ts` 中取代了 `fireworks`。
+- 公告可以链接到站外。公告列表从 `announcement-bar.tsx` 移到了 `src/lib/announcements.ts`,每条公告恰好带 `to` 与 `href` 之一:`to` 是经路由跳转的博客路径,`href` 是 `https://` 地址,渲染为在新标签页打开的普通链接(`target="_blank"`、`rel="noopener noreferrer"`),样式、箭头以及焦点与 `tabIndex` 处理与博客链接一致。两者都带或都不带的条目通不过条目类型的检查。
+- 新增落地页测试 `test/announcements.test.ts`:对公告栏上的每个博客链接,用 `getPost` 分别按 `en` 与 `zh` 查找对应博文,任一查找找不到博文或回退到另一种语言即失败。
diff --git a/packages/landing/src/components/announcement-bar.tsx b/packages/landing/src/components/announcement-bar.tsx
index e4e2f5e6..5338b261 100644
--- a/packages/landing/src/components/announcement-bar.tsx
+++ b/packages/landing/src/components/announcement-bar.tsx
@@ -4,25 +4,19 @@
* direction only (a clone of the first slide follows the last one, and the track
* snaps back without animation once the clone is fully in view). No manual
* switch controls; hovering or focusing the bar pauses the rotation. Every
- * announcement is a link into the blog, with a small arrow marking it as
- * click-through.
+ * announcement is a link with a small arrow marking it as click-through: a blog
+ * post opens in place through the router, a page on another site in a new tab.
*/
import { useEffect, useState } from "react";
import { Link } from "react-router";
+import { ANNOUNCEMENTS, type Announcement } from "../lib/announcements";
import { S } from "../lib/strings";
import { ArrowRightIcon } from "./icons";
const ROTATE_MS = 6000;
-/**
- * Every announcement points at a blog post (content/blog/<slug>.*.md), newest
- * first: slide 0 is what a visitor sees before the rotation moves, so the
- * freshest news goes at the front.
- */
-const ITEMS = [
- { key: "flashModels", to: "/blog/penguinharness-0-2-6" },
- { key: "fireworks", to: "/blog/fireworks-credits-amd" },
-] as const;
+const LINK_CLASS =
+ "inline-flex min-w-0 items-center gap-1.5 text-[13px] font-medium text-brand-800 underline-offset-2 hover:underline dark:text-brand-200";
const REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
@@ -31,11 +25,7 @@ function prefersReducedMotion(): boolean {
}
export function AnnouncementBar() {
- const texts: Record<(typeof ITEMS)[number]["key"], string> = {
- flashModels: S.announcement.flashModels,
- fireworks: S.announcement.fireworks,
- };
- // pos runs 0..ITEMS.length where ITEMS.length is the clone of slide 0.
+ // pos runs 0..ANNOUNCEMENTS.length where ANNOUNCEMENTS.length is the clone of slide 0.
const [pos, setPos] = useState(0);
const [animate, setAnimate] = useState(true);
// Focus pauses like hover does: tabIndex={-1} never blurs an already focused
@@ -64,8 +54,8 @@ export function AnnouncementBar() {
// transitionend never arrives and the snap-back below never runs: those
// users wrap around the real slides instead and never land on the clone.
const advance = (p: number) => {
- if (reduced) return (p + 1) % ITEMS.length;
- return p >= ITEMS.length ? p : p + 1;
+ if (reduced) return (p + 1) % ANNOUNCEMENTS.length;
+ return p >= ANNOUNCEMENTS.length ? p : p + 1;
};
const timer = setInterval(() => setPos(advance), ROTATE_MS);
return () => clearInterval(timer);
@@ -79,7 +69,7 @@ export function AnnouncementBar() {
return () => cancelAnimationFrame(raf);
}, [animate]);
- const slides = [...ITEMS, ITEMS[0]!];
+ const slides: readonly Announcement[] = [...ANNOUNCEMENTS, ANNOUNCEMENTS[0]!];
return (
<div
@@ -100,28 +90,44 @@ export function AnnouncementBar() {
style={{ transform: `translateX(-${pos * 100}%)` }}
onTransitionEnd={(e) => {
if (e.target !== e.currentTarget || e.propertyName !== "transform") return;
- if (pos === ITEMS.length) {
+ if (pos === ANNOUNCEMENTS.length) {
setAnimate(false);
setPos(0);
}
}}
>
- {slides.map((item, i) => (
- <div
- key={`${item.key}-${i}`}
- aria-hidden={i !== pos}
- className="flex w-full shrink-0 items-center justify-center"
- >
- <Link
- to={item.to}
- tabIndex={i === pos ? 0 : -1}
- className="inline-flex min-w-0 items-center gap-1.5 text-[13px] font-medium text-brand-800 underline-offset-2 hover:underline dark:text-brand-200"
- >
- <span className="truncate">{texts[item.key]}</span>
+ {slides.map((item, i) => {
+ const tabIndex = i === pos ? 0 : -1;
+ const content = (
+ <>
+ <span className="truncate">{S.announcement[item.key]}</span>
<ArrowRightIcon className="h-3.5 w-3.5 shrink-0" aria-hidden="true" />
- </Link>
- </div>
- ))}
+ </>
+ );
+ return (
+ <div
+ key={`${item.key}-${i}`}
+ aria-hidden={i !== pos}
+ className="flex w-full shrink-0 items-center justify-center"
+ >
+ {item.to !== undefined ? (
+ <Link to={item.to} tabIndex={tabIndex} className={LINK_CLASS}>
+ {content}
+ </Link>
+ ) : (
+ <a
+ href={item.href}
+ target="_blank"
+ rel="noopener noreferrer"
+ tabIndex={tabIndex}
+ className={LINK_CLASS}
+ >
+ {content}
+ </a>
+ )}
+ </div>
+ );
+ })}
</div>
</div>
</div>
diff --git a/packages/landing/src/lib/announcements.ts b/packages/landing/src/lib/announcements.ts
new file mode 100644
index 00000000..345b8847
--- /dev/null
+++ b/packages/landing/src/lib/announcements.ts
@@ -0,0 +1,29 @@
+/**
+ * The announcements on the rotating bar above the landing page's navigation, rendered by
+ * components/announcement-bar.tsx. An item's `key` names its copy under `announcement` in
+ * strings.ts and strings-en.ts.
+ */
+
+/**
+ * Where an announcement leads, exactly one of: `to`, a blog post on this site
+ * (content/blog/<slug>.*.md) followed through the router, or `href`, a page on
+ * another site, opened in a new tab.
+ */
+type AnnouncementTarget =
+ { to: `/blog/${string}`; href?: never } | { href: `https://${string}`; to?: never };
+
+/**
+ * Newest first: slide 0 is what a visitor sees before the rotation moves, so the
+ * freshest news goes at the front.
+ */
+export const ANNOUNCEMENTS = [
+ { key: "flashModels", to: "/blog/penguinharness-0-2-11" },
+ { key: "penguinGo", href: "https://token.penguin.ooo/" },
+] as const satisfies ReadonlyArray<{ key: string } & AnnouncementTarget>;
+
+/**
+ * A slide as the renderer reads it. Typed against the target union rather than the
+ * literal list, so reading `to` and `href` still type-checks while the list holds
+ * only one kind.
+ */
+export type Announcement = { key: (typeof ANNOUNCEMENTS)[number]["key"] } & AnnouncementTarget;
diff --git a/packages/landing/src/lib/strings-en.ts b/packages/landing/src/lib/strings-en.ts
index 9c6885b6..c129ac2e 100644
--- a/packages/landing/src/lib/strings-en.ts
+++ b/packages/landing/src/lib/strings-en.ts
@@ -12,8 +12,8 @@ export const en: Strings = {
label: "Announcements",
prev: "Previous announcement",
next: "Next announcement",
- flashModels: "GLM-5.3 Flash and Qwen 3.8 Flash are now available in PenguinHarness",
- fireworks: "Claim $50 in Fireworks API credits with the AMD Developer Program",
+ flashModels: "DeepSeek V4.1 Flash and Gemini 3.8 Flash are now live in PenguinHarness",
+ penguinGo: "Penguin Go official Token packs are live: 50% off every Gemini model",
},
nav: {
diff --git a/packages/landing/src/lib/strings.ts b/packages/landing/src/lib/strings.ts
index 3126f80d..eacb95a2 100644
--- a/packages/landing/src/lib/strings.ts
+++ b/packages/landing/src/lib/strings.ts
@@ -13,8 +13,8 @@ export const zh = {
label: "公告",
prev: "上一条公告",
next: "下一条公告",
- flashModels: "GLM-5.3 Flash 与 Qwen 3.8 Flash 现已在 PenguinHarness 可用",
- fireworks: "携手 AMD 开发者计划:$50 Fireworks API 额度免费领取中",
+ flashModels: "DeepSeek V4.1 Flash 与 Gemini 3.8 Flash 现已在 PenguinHarness 上线",
+ penguinGo: "Penguin Go 官方 Token 包上线,Gemini 全系列模型 5 折",
},
nav: {
diff --git a/packages/landing/test/announcements.test.ts b/packages/landing/test/announcements.test.ts
new file mode 100644
index 00000000..b10381d4
--- /dev/null
+++ b/packages/landing/test/announcements.test.ts
@@ -0,0 +1,25 @@
+/**
+ * Every announcement that links into the blog lands on a post that exists in both languages.
+ * The link's type only promises a `/blog/…` path, so a mistyped slug still type-checks and the
+ * slide opens the not-found page. getPost falls back to the other language when the requested
+ * one is missing, so each result's `lang` is checked, not just its presence. Off-site links
+ * (`href`) are not fetched.
+ */
+import { describe, expect, it } from "vitest";
+import { ANNOUNCEMENTS, type Announcement } from "../src/lib/announcements";
+import { getPost } from "../src/lib/blog";
+
+describe("announcement blog links", () => {
+ it("resolve to a post in both languages", () => {
+ const announcements: readonly Announcement[] = ANNOUNCEMENTS;
+ for (const { to } of announcements) {
+ if (to === undefined) continue;
+ const slug = to.slice("/blog/".length);
+ for (const lang of ["en", "zh"] as const) {
+ const post = getPost(slug, lang);
+ expect(post, `${to} (${lang})`).toBeDefined();
+ expect(post?.lang, `${to} (${lang})`).toBe(lang);
+ }
+ }
+ });
+});