diff --git a/README.md b/README.md index ccce63c..8ab7a7b 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Web Video Optimizer - - Web Video Optimizer + + Web Video Optimizer [![CI](https://github.com/Artsen/web-video-optimizer/actions/workflows/ci.yml/badge.svg)](https://github.com/Artsen/web-video-optimizer/actions/workflows/ci.yml) diff --git a/apps/web/index.html b/apps/web/index.html index 644b148..fd783e5 100644 --- a/apps/web/index.html +++ b/apps/web/index.html @@ -3,7 +3,7 @@ - + Local Web Video Optimizer diff --git a/apps/web/public/brand/WVO-favicon.png b/apps/web/public/brand/WVO-favicon.png new file mode 100644 index 0000000..20bba6b Binary files /dev/null and b/apps/web/public/brand/WVO-favicon.png differ diff --git a/apps/web/public/brand/WVO-logo-transparent.png b/apps/web/public/brand/WVO-logo-transparent.png new file mode 100644 index 0000000..537b6a0 Binary files /dev/null and b/apps/web/public/brand/WVO-logo-transparent.png differ diff --git a/apps/web/public/brand/WVO-logo-white-transparent.png b/apps/web/public/brand/WVO-logo-white-transparent.png new file mode 100644 index 0000000..8dc86d8 Binary files /dev/null and b/apps/web/public/brand/WVO-logo-white-transparent.png differ diff --git a/apps/web/public/favicon.svg b/apps/web/public/favicon.svg deleted file mode 100644 index 4492fc6..0000000 --- a/apps/web/public/favicon.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/apps/web/src/app/App.test.tsx b/apps/web/src/app/App.test.tsx index 4468123..7b1286d 100644 --- a/apps/web/src/app/App.test.tsx +++ b/apps/web/src/app/App.test.tsx @@ -132,7 +132,7 @@ describe("App behavior", () => { renderApp(api); expect(await screen.findByRole("heading", { name: "Ready for a source video" })).toBeInTheDocument(); - const warning = screen.getByRole("status"); + const warning = await screen.findByRole("status"); expect(warning).toHaveTextContent("Storage status"); expect(warning).not.toHaveTextContent("D:\\private"); diff --git a/apps/web/src/assets/brand/mark-monochrome.svg b/apps/web/src/assets/brand/mark-monochrome.svg deleted file mode 100644 index 41a9a19..0000000 --- a/apps/web/src/assets/brand/mark-monochrome.svg +++ /dev/null @@ -1,5 +0,0 @@ - - Web Video Optimizer monochrome mark - A one-color compression-frame mark with narrowing video bands and an output play shape. - - diff --git a/apps/web/src/assets/brand/mark.svg b/apps/web/src/assets/brand/mark.svg deleted file mode 100644 index e4ce861..0000000 --- a/apps/web/src/assets/brand/mark.svg +++ /dev/null @@ -1,14 +0,0 @@ - - Web Video Optimizer mark - A compression-frame mark with narrowing video bands and an output play shape. - - - - - - - - - - - diff --git a/apps/web/src/assets/brand/wordmark-dark.svg b/apps/web/src/assets/brand/wordmark-dark.svg deleted file mode 100644 index 712501c..0000000 --- a/apps/web/src/assets/brand/wordmark-dark.svg +++ /dev/null @@ -1,16 +0,0 @@ - - Web Video Optimizer - - - - - - - - - - - - Web Video Optimizer - Local media compression workspace - diff --git a/apps/web/src/assets/brand/wordmark-light.svg b/apps/web/src/assets/brand/wordmark-light.svg deleted file mode 100644 index 8855109..0000000 --- a/apps/web/src/assets/brand/wordmark-light.svg +++ /dev/null @@ -1,16 +0,0 @@ - - Web Video Optimizer - - - - - - - - - - - - Web Video Optimizer - Local media compression workspace - diff --git a/apps/web/src/components/ui/AppMark.test.tsx b/apps/web/src/components/ui/AppMark.test.tsx index b97ede2..7294694 100644 --- a/apps/web/src/components/ui/AppMark.test.tsx +++ b/apps/web/src/components/ui/AppMark.test.tsx @@ -1,21 +1,29 @@ import { render, screen } from "@testing-library/react"; import { describe, expect, it } from "vitest"; -import { AppMark } from "./AppMark"; +import { AppMark, WVO_LOGO_TRANSPARENT_PATH, WVO_LOGO_WHITE_TRANSPARENT_PATH } from "./AppMark"; describe("AppMark", () => { - it("renders the compression-frame brand mark as decorative SVG geometry", () => { + it("renders the approved WVO monogram variants as decorative images", () => { render(
- + Web Video Optimizer
); const mark = document.querySelector(".app-mark"); expect(mark).toHaveAttribute("aria-hidden", "true"); + expect(mark).toHaveClass("small"); expect(screen.getByText("Web Video Optimizer")).toBeVisible(); - expect(document.querySelector(".app-mark-frame")).toBeInTheDocument(); - expect(document.querySelectorAll(".app-mark-band")).toHaveLength(3); - expect(document.querySelector(".app-mark-play")).toBeInTheDocument(); + + const images = document.querySelectorAll(".app-mark-image"); + expect(images).toHaveLength(2); + expect(images[0]).toHaveAttribute("src", WVO_LOGO_TRANSPARENT_PATH); + expect(images[1]).toHaveAttribute("src", WVO_LOGO_WHITE_TRANSPARENT_PATH); + expect(images[0]).toHaveAttribute("alt", ""); + expect(images[1]).toHaveAttribute("alt", ""); + expect(images[0]).toHaveAttribute("draggable", "false"); + expect(images[1]).toHaveAttribute("draggable", "false"); + expect(mark?.querySelector("svg")).not.toBeInTheDocument(); }); }); diff --git a/apps/web/src/components/ui/AppMark.tsx b/apps/web/src/components/ui/AppMark.tsx index c1af220..347afaf 100644 --- a/apps/web/src/components/ui/AppMark.tsx +++ b/apps/web/src/components/ui/AppMark.tsx @@ -1,23 +1,16 @@ +export const WVO_LOGO_TRANSPARENT_PATH = "/brand/WVO-logo-transparent.png"; +export const WVO_LOGO_WHITE_TRANSPARENT_PATH = "/brand/WVO-logo-white-transparent.png"; + export function AppMark({ size = "default" }: { size?: "default" | "small" }) { return ( -