Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

style(website): announce v2 with a compact hero badge

EtienneLescotf9f422c4ca1b
diff --git a/website/src/components/ReleaseBadge/index.tsx b/website/src/components/ReleaseBadge/index.tsx
new file mode 100644
index 000000000..3a2b677a8
--- /dev/null
+++ b/website/src/components/ReleaseBadge/index.tsx
@@ -0,0 +1,24 @@
+import Translate, { translate } from "@docusaurus/Translate";
+import { ArrowRight } from "lucide-react";
+
+import LocaleLink from "../LocaleLink";
+import styles from "./styles.module.css";
+
+export default function ReleaseBadge() {
+ return (
+ <LocaleLink
+ className={styles.badge}
+ to="/blog/2026/09/27/making-of-v2-a-demo-is-never-ugly/"
+ title={translate({
+ id: "announcement.v2.link",
+ message: "See what's new",
+ description: "Links to an English-only blog post. Mention English in translated labels.",
+ })}
+ data-release-announcement=""
+ >
+ <span className={styles.dot} aria-hidden="true" />
+ <Translate id="announcement.v2.title">OpenScreen v2 is here</Translate>
+ <ArrowRight size={14} aria-hidden="true" />
+ </LocaleLink>
+ );
+}
diff --git a/website/src/components/ReleaseBadge/styles.module.css b/website/src/components/ReleaseBadge/styles.module.css
new file mode 100644
index 000000000..e223814b0
--- /dev/null
+++ b/website/src/components/ReleaseBadge/styles.module.css
@@ -0,0 +1,64 @@
+.badge {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 10px;
+ max-width: 100%;
+ margin-bottom: 20px;
+ padding: 9px 14px;
+ border: 1px solid var(--os-accent-border);
+ border-radius: 999px;
+ background: var(--os-accent-wash);
+ color: var(--os-fg-emphasis);
+ font-size: 13px;
+ font-weight: 600;
+ line-height: 1.4;
+ text-decoration: none;
+ transition: background 0.15s ease, border-color 0.15s ease;
+}
+
+.badge:hover {
+ border-color: var(--os-accent);
+ background: var(--os-accent-soft);
+ color: var(--os-fg-emphasis);
+ text-decoration: none;
+}
+
+.badge:focus-visible {
+ outline: 2px solid var(--os-accent);
+ outline-offset: 4px;
+}
+
+.dot {
+ flex-shrink: 0;
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: var(--os-accent);
+ box-shadow: 0 0 10px var(--os-accent-ring);
+}
+
+.badge svg {
+ flex-shrink: 0;
+ color: var(--os-accent);
+ transition: transform 0.15s ease;
+}
+
+.badge:hover svg {
+ transform: translateX(2px);
+}
+
+@media (max-width: 600px) {
+ .badge {
+ margin-bottom: 18px;
+ padding: 8px 12px;
+ font-size: 12px;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .badge,
+ .badge svg {
+ transition: none;
+ }
+}
diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx
index 69e0a6b96..61baf3ff0 100644
--- a/website/src/pages/index.tsx
+++ b/website/src/pages/index.tsx
@@ -10,6 +10,7 @@ import AppLanguages from "../components/AppLanguages";
import Editor from "../components/Editor";
import Films from "../components/Films";
import LocaleLink from "../components/LocaleLink";
+import ReleaseBadge from "../components/ReleaseBadge";
import Showcase from "../components/Showcase";
import type { AppLanguage } from "../lib/release";
import { jsonLd, softwareApplicationLd } from "../lib/structured-data";
@@ -41,6 +42,7 @@ export default function Home() {
<header className={styles.hero} data-home-hero="">
<div className={styles.heroInner}>
<div className={styles.heroCopy}>
+ <ReleaseBadge />
<Heading as="h1" className={styles.title}>
<Translate id="home.hero.title">Great demos on the first take.</Translate>
</Heading>
diff --git a/website/src/theme/AnnouncementBar/index.tsx b/website/src/theme/AnnouncementBar/index.tsx
deleted file mode 100644
index 54d70a3c8..000000000
--- a/website/src/theme/AnnouncementBar/index.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-import Translate from "@docusaurus/Translate";
-import { ArrowRight } from "lucide-react";
-
-import LocaleLink from "../../components/LocaleLink";
-import styles from "./styles.module.css";
-
-// Layout renders this above the navbar, including on translated pages.
-export default function AnnouncementBar() {
- return (
- <div className={styles.bar} data-release-announcement="">
- <LocaleLink className={styles.link} to="/blog/2026/09/27/making-of-v2-a-demo-is-never-ugly/">
- <span className={styles.version}>V2</span>
- <span className={styles.content}>
- <span className={styles.title}>
- <Translate id="announcement.v2.title">OpenScreen v2 is here</Translate>
- </span>
- <span className={styles.cta}>
- <Translate
- id="announcement.v2.link"
- description="Links to an English-only blog post. Mention English in translated labels."
- >
- See what's new
- </Translate>
- <ArrowRight size={14} aria-hidden="true" />
- </span>
- </span>
- </LocaleLink>
- </div>
- );
-}
diff --git a/website/src/theme/AnnouncementBar/styles.module.css b/website/src/theme/AnnouncementBar/styles.module.css
deleted file mode 100644
index ff5ce383e..000000000
--- a/website/src/theme/AnnouncementBar/styles.module.css
+++ /dev/null
@@ -1,98 +0,0 @@
-.bar {
- border-bottom: 1px solid var(--os-accent-border);
- background: linear-gradient(
- 90deg,
- var(--os-surface),
- color-mix(in srgb, var(--os-accent) 12%, var(--os-surface)) 50%,
- var(--os-surface)
- );
-}
-
-.link {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 14px;
- width: fit-content;
- max-width: calc(100% - 40px);
- min-height: 48px;
- margin: 0 auto;
- padding: 10px 0;
- color: var(--os-fg-emphasis);
- text-decoration: none;
-}
-
-.link:hover {
- color: var(--os-fg-emphasis);
- text-decoration: none;
-}
-
-.version {
- flex-shrink: 0;
- padding: 5px 9px;
- border-radius: 7px;
- background: var(--os-accent);
- color: var(--os-bg);
- box-shadow: 0 0 20px var(--os-accent-soft);
- font-family: var(--ifm-font-family-monospace);
- font-size: 11px;
- font-weight: 700;
- letter-spacing: 0.04em;
-}
-
-.content {
- display: flex;
- align-items: center;
- gap: 16px;
- min-width: 0;
-}
-
-.title {
- font-size: 14px;
- font-weight: 600;
- line-height: 1.4;
-}
-
-.cta {
- display: inline-flex;
- align-items: center;
- gap: 7px;
- padding-left: 16px;
- border-left: 1px solid var(--os-accent-border);
- color: var(--os-accent);
- font-size: 12px;
- line-height: 1.4;
-}
-
-.cta svg {
- flex-shrink: 0;
- transition: transform 0.15s ease;
-}
-
-.link:hover .cta svg {
- transform: translateX(3px);
-}
-
-@media (max-width: 600px) {
- .link {
- gap: 12px;
- }
-
- .content {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: 3px;
- }
-
- .cta {
- padding-left: 0;
- border-left: 0;
- }
-}
-
-@media (prefers-reduced-motion: reduce) {
- .cta svg {
- transition: none;
- }
-}