Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.es-419.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- source: README.md sha256:ddc9cd7b5aea -->
<!-- source: README.md sha256:ed346d675bdf -->
# Codewhale

Un agente de código para tu terminal. Funciona con cualquier modelo; los
Expand Down
2 changes: 1 addition & 1 deletion README.ja-JP.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- source: README.md sha256:ddc9cd7b5aea -->
<!-- source: README.md sha256:ed346d675bdf -->
# Codewhale

ターミナルで動くコーディングエージェント。あらゆるモデルで動作し、オープンモデルを最優先します。
Expand Down
2 changes: 1 addition & 1 deletion README.ko-KR.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- source: README.md sha256:ddc9cd7b5aea -->
<!-- source: README.md sha256:ed346d675bdf -->
# Codewhale

터미널에서 쓰는 코딩 에이전트입니다. 어떤 모델과도 동작하며, 오픈 모델을
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ the same runtime and tools.
[![crates.io](https://img.shields.io/crates/v/codewhale-cli?label=crates.io)](https://crates.io/crates/codewhale-cli)
[![npm](https://img.shields.io/npm/v/codewhale?label=npm)](https://www.npmjs.com/package/codewhale)

![Codewhale running in a terminal](assets/screenshot.png)
![Codewhale TUI idle screen with GLM-5.2 selected through Z.ai](assets/screenshot.png)

## Install

Expand Down
2 changes: 1 addition & 1 deletion README.pt-BR.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- source: README.md sha256:ddc9cd7b5aea -->
<!-- source: README.md sha256:ed346d675bdf -->
# Codewhale

Um agente de código para o seu terminal. Funciona com qualquer modelo; modelos
Expand Down
2 changes: 1 addition & 1 deletion README.vi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- source: README.md sha256:ddc9cd7b5aea -->
<!-- source: README.md sha256:ed346d675bdf -->
# Codewhale

Một coding agent cho terminal của bạn. Hoạt động với mọi model; ưu tiên model mở.
Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- source: README.md sha256:ddc9cd7b5aea -->
<!-- source: README.md sha256:ed346d675bdf -->
# Codewhale

一个运行在终端里的编程智能体。适配任意模型;开放模型优先。
Expand Down
Binary file modified assets/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions web/app/[locale]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Image from "next/image";
import Link from "next/link";
import { InstallCodeBlock } from "@/components/install-code-block";
import { Whale } from "@/components/whale";
Expand Down Expand Up @@ -113,6 +114,17 @@ export default async function HomePage({ params }: { params: Promise<{ locale: s
</Link>
</aside>
</div>

<figure className="portal-container portal-product-shot">
<Image
src="/codewhale-tui.png"
alt="Codewhale TUI idle screen with GLM-5.2 selected through Z.ai"
width={852}
height={453}
sizes="(max-width: 760px) calc(100vw - 2rem), (max-width: 852px) calc(100vw - 2.5rem), 852px"
priority
/>
</figure>
</section>

<section className="portal-section">
Expand Down
16 changes: 16 additions & 0 deletions web/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,22 @@ a.body-link:hover { background-size: 100% 6px; color: var(--ink); }
padding-block: clamp(3.25rem, 6vw, 4.75rem);
}

.portal-product-shot {
position: relative;
width: min(100% - 2.5rem, 53.25rem);
margin-top: clamp(-1rem, -2vw, -0.5rem);
margin-bottom: clamp(2.5rem, 6vw, 4.75rem);
}

.portal-product-shot img {
display: block;
width: 100%;
height: auto;
border: 1px solid rgba(209, 235, 244, 0.26);
border-radius: 8px;
box-shadow: 0 1.5rem 3.75rem rgba(5, 12, 24, 0.2);
}

.portal-hero-copy {
max-width: 42rem;
}
Expand Down
15 changes: 15 additions & 0 deletions web/lib/public-copy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ function pageSource(path: string): string {
}

describe("public website copy contracts", () => {
it("keeps the README and website product screenshot synchronized and accessible", () => {
const home = pageSource("page.tsx");
const readme = readFileSync(new URL("../../README.md", import.meta.url), "utf8");
const readmeShot = readFileSync(new URL("../../assets/screenshot.png", import.meta.url));
const websiteShot = readFileSync(
new URL("../public/codewhale-tui.png", import.meta.url),
);
const alt = "Codewhale TUI idle screen with GLM-5.2 selected through Z.ai";

expect(readme).toContain(`![${alt}](assets/screenshot.png)`);
expect(home).toContain(`src="/codewhale-tui.png"`);
expect(home).toContain(`alt="${alt}"`);
expect(websiteShot.equals(readmeShot)).toBe(true);
});

it("keeps the docs hub on the compact ocean portal instead of the old almanac treatment", () => {
const layout = pageSource("docs/layout.tsx");
const search = readFileSync(new URL("../components/docs-search.tsx", import.meta.url), "utf8");
Expand Down
Binary file added web/public/codewhale-tui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading